forked from returnString/wasm-init
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the implementation of the crate and fix returnString#1 at th…
…e same time. Drops the `paste` crate and does not bother to use `#[wasm_bindgen]` to generate the exported init function. Instead, exports a plain `extern "C"` function and uses uses `#[export = name]` to set its name, as `wasm-bindgen` would have done. This is both simpler, and also does not require that the calling crate have `wasm_bindgen` as a direct dependency, so it fixes returnString#1 at the same time.
- Loading branch information
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters