Add a raw_module attribute to #[wasm_bindgen]

This allows subverting the checks and resolution performed by the
`module` attribute added as part of [RFC 6] and has been discussed in #1343.

Closes #1343

[RFC 6]: https://github.com/rustwasm/rfcs/pull/6
This commit is contained in:
Alex Crichton
2019-03-15 08:04:25 -07:00
parent 9e74085f4b
commit 0d592fffb0
8 changed files with 61 additions and 21 deletions

View File

@ -28,6 +28,7 @@ macro_rules! shared_api {
enum ImportModule<'a> {
None,
Named(&'a str),
RawNamed(&'a str),
Inline(u32),
}