wasm-bindgen/crates/macro/ui-tests
Alex Crichton b762948456 Implement the local JS snippets RFC
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
2019-03-05 08:00:47 -08:00
..
attribute-fails-to-parse.rs Update UI tests 2019-01-02 08:35:05 -08:00
attribute-fails-to-parse.stderr Update UI tests 2019-01-02 08:35:05 -08:00
bad-signatures.rs Update UI tests 2019-01-02 08:35:05 -08:00
bad-signatures.stderr Update UI tests 2019-01-02 08:35:05 -08:00
Cargo.toml Assert all attributes are used by default 2018-11-28 11:42:48 -08:00
import-local.rs Implement the local JS snippets RFC 2019-03-05 08:00:47 -08:00
import-local.stderr Implement the local JS snippets RFC 2019-03-05 08:00:47 -08:00
invalid-attr.rs Update UI tests 2019-01-02 08:35:05 -08:00
invalid-attr.stderr Update UI tests 2019-01-02 08:35:05 -08:00
invalid-enums.rs Update UI tests 2019-01-02 08:35:05 -08:00
invalid-enums.stderr Update UI tests 2019-01-02 08:35:05 -08:00
invalid-imports.rs Update UI tests 2019-01-02 08:35:05 -08:00
invalid-imports.stderr Update UI tests 2019-01-02 08:35:05 -08:00
invalid-items.rs Update tests after nightly fix 2019-03-04 02:14:57 +00:00
invalid-items.stderr Update tests after nightly fix 2019-03-04 02:14:57 +00:00
invalid-methods.rs Fix conditional #[wasm_bindgen] in impls 2019-01-28 12:29:01 -08:00
invalid-methods.stderr Fix conditional #[wasm_bindgen] in impls 2019-01-28 12:29:01 -08:00
invalid-setter.rs Update UI tests 2019-01-02 08:35:05 -08:00
invalid-setter.stderr Update UI tests 2019-01-02 08:35:05 -08:00
non-public-function.rs Update UI tests 2019-01-02 08:35:05 -08:00
non-public-function.stderr Update UI tests 2019-01-02 08:35:05 -08:00
start-function.rs Update UI tests 2019-01-02 08:35:05 -08:00
start-function.stderr Update UI tests 2019-01-02 08:35:05 -08:00
structural-and-final.rs Update UI tests 2019-01-02 08:35:05 -08:00
structural-and-final.stderr Update UI tests 2019-01-02 08:35:05 -08:00
test.rs Prepare to have targeted error diagnostics (#604) 2018-08-01 17:15:27 -05:00
unused-attributes.rs Fix conditional #[wasm_bindgen] in impls 2019-01-28 12:29:01 -08:00
unused-attributes.stderr Fix conditional #[wasm_bindgen] in impls 2019-01-28 12:29:01 -08:00
update-all-references.sh Prepare to have targeted error diagnostics (#604) 2018-08-01 17:15:27 -05:00
update-references.sh Prepare to have targeted error diagnostics (#604) 2018-08-01 17:15:27 -05:00