diff --git a/Cargo.toml b/Cargo.toml index 54e4f1b6429..5f8f7a5b555 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -162,7 +162,7 @@ ascii = "1.1" bitflags = "2.9.4" bstr = "1" cfg-if = "1.0" -chrono = "0.4.42" +chrono = { version = "0.4.42", default-features = false, features = ["clock", "oldtime", "std"] } constant_time_eq = "0.4" criterion = { version = "0.7", features = ["html_reports"] } crossbeam-utils = "0.8.21" diff --git a/crates/vm/Cargo.toml b/crates/vm/Cargo.toml index ffd58361789..1e12454a6ba 100644 --- a/crates/vm/Cargo.toml +++ b/crates/vm/Cargo.toml @@ -46,7 +46,7 @@ bitflags = { workspace = true } bstr = { workspace = true } cfg-if = { workspace = true } crossbeam-utils = { workspace = true } -chrono = { workspace = true, features = ["wasmbind"] } +chrono = { workspace = true } constant_time_eq = { workspace = true } flame = { workspace = true, optional = true } getrandom = { workspace = true } @@ -150,7 +150,6 @@ features = [ [target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] wasm-bindgen = { workspace = true, optional = true } -getrandom = { workspace = true } [build-dependencies] glob = { workspace = true } diff --git a/wasm/wasm-unknown-test/src/lib.rs b/wasm/wasm-unknown-test/src/lib.rs index a3beead8900..aae922864dd 100644 --- a/wasm/wasm-unknown-test/src/lib.rs +++ b/wasm/wasm-unknown-test/src/lib.rs @@ -1,5 +1,6 @@ use rustpython_vm::{Interpreter, eval}; +#[unsafe(no_mangle)] pub unsafe extern "C" fn eval(s: *const u8, l: usize) -> u32 { let src = std::slice::from_raw_parts(s, l); let src = std::str::from_utf8(src).unwrap();