1#![cfg_attr(not(feature = "std"), no_std)]
6#![deny(missing_docs)]
7
8extern crate alloc;
9
10pub use wasm_bindgen_test_macro::wasm_bindgen_test;
11
12#[cfg(all(test, feature = "gg-alloc"))]
15#[global_allocator]
16static A: gg_alloc::GgAlloc<std::alloc::System> = gg_alloc::GgAlloc::new(std::alloc::System);
17
18#[macro_export]
21macro_rules! console_error {
22 ($($arg:tt)*) => (
23 $crate::__rt::console_error(&format_args!($($arg)*))
24 )
25}
26
27#[macro_export]
30macro_rules! console_log {
31 ($($arg:tt)*) => (
32 $crate::__rt::console_log(&format_args!($($arg)*))
33 )
34}
35
36#[macro_export]
60macro_rules! wasm_bindgen_test_configure {
61 (run_in_browser $($others:tt)*) => (
62 const _: () = {
63 #[link_section = "__wasm_bindgen_test_unstable"]
64 #[cfg(target_arch = "wasm32")]
65 pub static __WBG_TEST_RUN_IN_BROWSER: [u8; 1] = [0x01];
66 $crate::wasm_bindgen_test_configure!($($others)*);
67 };
68 );
69 (run_in_worker $($others:tt)*) => (
70 const _: () = {
71 #[link_section = "__wasm_bindgen_test_unstable"]
72 #[cfg(target_arch = "wasm32")]
73 pub static __WBG_TEST_RUN_IN_DEDICATED_WORKER: [u8; 1] = [0x02];
74 $crate::wasm_bindgen_test_configure!($($others)*);
75 };
76 );
77 (run_in_dedicated_worker $($others:tt)*) => (
78 const _: () = {
79 #[link_section = "__wasm_bindgen_test_unstable"]
80 #[cfg(target_arch = "wasm32")]
81 pub static __WBG_TEST_RUN_IN_DEDICATED_WORKER: [u8; 1] = [0x02];
82 $crate::wasm_bindgen_test_configure!($($others)*);
83 };
84 );
85 (run_in_shared_worker $($others:tt)*) => (
86 const _: () = {
87 #[link_section = "__wasm_bindgen_test_unstable"]
88 #[cfg(target_arch = "wasm32")]
89 pub static __WBG_TEST_RUN_IN_SHARED_WORKER: [u8; 1] = [0x03];
90 $crate::wasm_bindgen_test_configure!($($others)*);
91 };
92 );
93 (run_in_service_worker $($others:tt)*) => (
94 const _: () = {
95 #[link_section = "__wasm_bindgen_test_unstable"]
96 #[cfg(target_arch = "wasm32")]
97 pub static __WBG_TEST_RUN_IN_SERVICE_WORKER: [u8; 1] = [0x04];
98 $crate::wasm_bindgen_test_configure!($($others)*);
99 };
100 );
101 (run_in_node_experimental $($others:tt)*) => (
102 const _: () = {
103 #[link_section = "__wasm_bindgen_test_unstable"]
104 #[cfg(target_arch = "wasm32")]
105 pub static __WBG_TEST_run_in_node_experimental: [u8; 1] = [0x05];
106 $crate::wasm_bindgen_test_configure!($($others)*);
107 };
108 );
109 () => ()
110}
111
112#[path = "rt/mod.rs"]
113pub mod __rt;
114
115#[cfg(target_arch = "wasm32")]
119mod coverage;