-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement the local JS snippets RFC #1295
Commits on Mar 5, 2019
-
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]: rustwasm/rfcs#6 Closes rustwasm#1311
Configuration menu - View commit details
-
Copy full SHA for b762948 - Browse repository at this point
Copy the full SHA b762948View commit details -
Paths are relative to CARGO_MANIFEST_DIR
The cwd is different for workspaces, so use the manifest env var instead.
Configuration menu - View commit details
-
Copy full SHA for 6283169 - Browse repository at this point
Copy the full SHA 6283169View commit details -
Fix a case where snippet is specified twice
When importing a file across multiple locations in a module make sure it doesn't trip an assert and it works as expected.
Configuration menu - View commit details
-
Copy full SHA for 7e62aff - Browse repository at this point
Copy the full SHA 7e62affView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5de3189 - Browse repository at this point
Copy the full SHA 5de3189View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20f1e50 - Browse repository at this point
Copy the full SHA 20f1e50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 33494a2 - Browse repository at this point
Copy the full SHA 33494a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1e391e - Browse repository at this point
Copy the full SHA f1e391eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9063a6b - Browse repository at this point
Copy the full SHA 9063a6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for bdcfcb4 - Browse repository at this point
Copy the full SHA bdcfcb4View commit details -
Update examples/without-a-bundler-no-modules/README.md
Co-Authored-By: alexcrichton <alex@alexcrichton.com>
Configuration menu - View commit details
-
Copy full SHA for 6c86d23 - Browse repository at this point
Copy the full SHA 6c86d23View commit details -
Update examples/without-a-bundler/index.html
Co-Authored-By: alexcrichton <alex@alexcrichton.com>
Configuration menu - View commit details
-
Copy full SHA for 59e8844 - Browse repository at this point
Copy the full SHA 59e8844View commit details -
Configuration menu - View commit details
-
Copy full SHA for 95ab24a - Browse repository at this point
Copy the full SHA 95ab24aView commit details -
Don't explicitly hide _INCLUDED_FILES
It's already hidden from docs!
Configuration menu - View commit details
-
Copy full SHA for 93a1301 - Browse repository at this point
Copy the full SHA 93a1301View commit details -
Remove
unsafe
usage inbackend/src/encode.rs
Using `unsafe` was just a little too eager there so let's use an off-the-shelf solution for solving the actual problem we have, which is to allocate strings with a lifetime of `Interner` rather than deduplicating strings.
Configuration menu - View commit details
-
Copy full SHA for f3f3ebe - Browse repository at this point
Copy the full SHA f3f3ebeView commit details -
Configuration menu - View commit details
-
Copy full SHA for bdf98f3 - Browse repository at this point
Copy the full SHA bdf98f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3935cc - Browse repository at this point
Copy the full SHA f3935ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for c463cc9 - Browse repository at this point
Copy the full SHA c463cc9View commit details -
Use the same crate identifier for manually included snippets as well as inline snippets to help with debugging.
Configuration menu - View commit details
-
Copy full SHA for d6e3770 - Browse repository at this point
Copy the full SHA d6e3770View commit details