diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:42 +0000 |
commit | 837b550238aa671a591ccf282dddeab29cadb206 (patch) | |
tree | 914b6b8862bace72bd3245ca184d374b08d8a672 /vendor/wasm-bindgen-shared/src/lib.rs | |
parent | Adding debian version 1.70.0+dfsg2-1. (diff) | |
download | rustc-837b550238aa671a591ccf282dddeab29cadb206.tar.xz rustc-837b550238aa671a591ccf282dddeab29cadb206.zip |
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/wasm-bindgen-shared/src/lib.rs')
-rw-r--r-- | vendor/wasm-bindgen-shared/src/lib.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vendor/wasm-bindgen-shared/src/lib.rs b/vendor/wasm-bindgen-shared/src/lib.rs index f69d8f4a8..408613be9 100644 --- a/vendor/wasm-bindgen-shared/src/lib.rs +++ b/vendor/wasm-bindgen-shared/src/lib.rs @@ -6,7 +6,7 @@ mod schema_hash_approval; // This gets changed whenever our schema changes. // At this time versions of wasm-bindgen and wasm-bindgen-cli are required to have the exact same // SCHEMA_VERSION in order to work together. -pub const SCHEMA_VERSION: &str = "0.2.83"; +pub const SCHEMA_VERSION: &str = "0.2.84"; #[macro_export] macro_rules! shared_api { @@ -22,6 +22,7 @@ macro_rules! shared_api { inline_js: Vec<&'a str>, unique_crate_identifier: &'a str, package_json: Option<&'a str>, + linked_modules: Vec<LinkedModule<'a>>, } struct Import<'a> { @@ -30,6 +31,11 @@ macro_rules! shared_api { kind: ImportKind<'a>, } + struct LinkedModule<'a> { + module: ImportModule<'a>, + link_function_name: &'a str, + } + enum ImportModule<'a> { Named(&'a str), RawNamed(&'a str), |