We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 304a47a commit be1bacdCopy full SHA for be1bacd
2 files changed
wasm/lib/Cargo.toml
@@ -13,6 +13,7 @@ crate-type = ["cdylib", "rlib"]
13
[features]
14
default = ["freeze-stdlib"]
15
freeze-stdlib = ["rustpython-vm/freeze-stdlib"]
16
+no-start-func = []
17
18
[dependencies]
19
rustpython-parser = { path = "../../parser" }
wasm/lib/src/lib.rs
@@ -38,6 +38,7 @@ pub fn panic_hook(info: &panic::PanicInfo) {
38
}
39
40
#[doc(hidden)]
41
+#[cfg(not(feature = "no-start-func"))]
42
#[wasm_bindgen(start)]
43
pub fn _setup_console_error() {
44
std::panic::set_hook(Box::new(panic_hook));
0 commit comments