Skip to content

Commit

Permalink
Fix: Fix it tries to use wasm_bindgen in wasm32-unknown-emscripten en…
Browse files Browse the repository at this point in the history
…vironment
  • Loading branch information
sevenc-nanashi committed Mar 16, 2024
1 parent bf83753 commit 9d0627d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ core-foundation-sys = "0.8.3"
[target.'cfg(target_os = "windows")'.dependencies]
windows-core = { version = ">=0.50, <=0.52" }

[target.'cfg(target_arch = "wasm32")'.dependencies]
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
js-sys = "0.3.50"
wasm-bindgen = "0.2.70"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies]
wasm-bindgen-test = "0.3"

[target.'cfg(target_os = "haiku")'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ mod ffi_utils;
#[cfg_attr(target_os = "windows", path = "tz_windows.rs")]
#[cfg_attr(any(target_os = "macos", target_os = "ios"), path = "tz_macos.rs")]
#[cfg_attr(
all(target_arch = "wasm32", not(target_os = "wasi")),
all(target_arch = "wasm32", target_os = "unknown"),
path = "tz_wasm32.rs"
)]
#[cfg_attr(
Expand Down

0 comments on commit 9d0627d

Please sign in to comment.