summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen/tests/wasm/main.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:41:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:41:41 +0000
commit10ee2acdd26a7f1298c6f6d6b7af9b469fe29b87 (patch)
treebdffd5d80c26cf4a7a518281a204be1ace85b4c1 /vendor/wasm-bindgen/tests/wasm/main.rs
parentReleasing progress-linux version 1.70.0+dfsg1-9~progress7.99u1. (diff)
downloadrustc-10ee2acdd26a7f1298c6f6d6b7af9b469fe29b87.tar.xz
rustc-10ee2acdd26a7f1298c6f6d6b7af9b469fe29b87.zip
Merging upstream version 1.70.0+dfsg2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/wasm-bindgen/tests/wasm/main.rs')
-rw-r--r--vendor/wasm-bindgen/tests/wasm/main.rs56
1 files changed, 56 insertions, 0 deletions
diff --git a/vendor/wasm-bindgen/tests/wasm/main.rs b/vendor/wasm-bindgen/tests/wasm/main.rs
new file mode 100644
index 000000000..51e6dcafe
--- /dev/null
+++ b/vendor/wasm-bindgen/tests/wasm/main.rs
@@ -0,0 +1,56 @@
+#![cfg(target_arch = "wasm32")]
+
+extern crate js_sys;
+extern crate wasm_bindgen;
+extern crate wasm_bindgen_test;
+extern crate wasm_bindgen_test_crate_a;
+extern crate wasm_bindgen_test_crate_b;
+
+#[cfg(feature = "serde-serialize")]
+#[macro_use]
+extern crate serde_derive;
+
+use wasm_bindgen::prelude::*;
+
+pub mod api;
+pub mod arg_names;
+pub mod bigint;
+pub mod char;
+pub mod classes;
+pub mod closures;
+pub mod comments;
+pub mod duplicate_deps;
+pub mod duplicates;
+pub mod enums;
+#[path = "final.rs"]
+pub mod final_;
+pub mod futures;
+pub mod getters_and_setters;
+pub mod import_class;
+pub mod imports;
+pub mod intrinsics;
+pub mod js_keywords;
+pub mod js_objects;
+pub mod jscast;
+pub mod math;
+pub mod no_shims;
+pub mod node;
+pub mod option;
+pub mod optional_primitives;
+pub mod result;
+pub mod result_jserror;
+pub mod rethrow;
+pub mod simple;
+pub mod slice;
+pub mod structural;
+pub mod truthy_falsy;
+pub mod usize;
+pub mod validate_prt;
+pub mod variadic;
+pub mod vendor_prefix;
+
+// should not be executed
+#[wasm_bindgen(start)]
+pub fn start() {
+ panic!();
+}