mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-17 06:21:36 +03:00
b762948456
This commit is an implementation of [RFC 6] which enables crates to inline local JS snippets into the final output artifact of `wasm-bindgen`. This is accompanied with a few minor breaking changes which are intended to be relatively minor in practice: * The `module` attribute disallows paths starting with `./` and `../`. It requires paths starting with `/` to actually exist on the filesystem. * The `--browser` flag no longer emits bundler-compatible code, but rather emits an ES module that can be natively loaded into a browser. Otherwise be sure to check out [the RFC][RFC 6] for more details, and otherwise this should implement at least the MVP version of the RFC! Notably at this time JS snippets with `--nodejs` or `--no-modules` are not supported and will unconditionally generate an error. [RFC 6]: https://github.com/rustwasm/rfcs/pull/6 Closes #1311 |
||
---|---|---|
.. | ||
attribute-fails-to-parse.rs | ||
attribute-fails-to-parse.stderr | ||
bad-signatures.rs | ||
bad-signatures.stderr | ||
Cargo.toml | ||
import-local.rs | ||
import-local.stderr | ||
invalid-attr.rs | ||
invalid-attr.stderr | ||
invalid-enums.rs | ||
invalid-enums.stderr | ||
invalid-imports.rs | ||
invalid-imports.stderr | ||
invalid-items.rs | ||
invalid-items.stderr | ||
invalid-methods.rs | ||
invalid-methods.stderr | ||
invalid-setter.rs | ||
invalid-setter.stderr | ||
non-public-function.rs | ||
non-public-function.stderr | ||
start-function.rs | ||
start-function.stderr | ||
structural-and-final.rs | ||
structural-and-final.stderr | ||
test.rs | ||
unused-attributes.rs | ||
unused-attributes.stderr | ||
update-all-references.sh | ||
update-references.sh |