summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen-shared/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/wasm-bindgen-shared/src/lib.rs')
-rw-r--r--vendor/wasm-bindgen-shared/src/lib.rs8
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),