Fix wasm32-unknown-unknown target build (#6278)

This commit is contained in:
Lee Dogeon authored and GitHub committed 2025-11-16 22:16:34 +09:00
1 parent 1568d2a7fb
commit 7c4c1eabf0
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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"
+1 -2
View File
@@ -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 }
+1
View File
@@ -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();