Skip to content

Commit e488a13

Browse files
committed
fix!: Fixed the WASM condition
1 parent 4e29090 commit e488a13

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

sqlx-sqlite/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ _unstable-docs = [
5454
"_unstable-all-sqlite-features",
5555
]
5656

57-
[target.'cfg(not(any(target_os = "wasi", target_os = "emscripten")))'.dependencies.libsqlite3-sys]
57+
[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies.libsqlite3-sys]
5858
# See `sqlx-sqlite/src/lib.rs` for details.
5959
version = ">=0.30.0, <0.36.0"
6060
default-features = false
@@ -63,7 +63,7 @@ features = [
6363
"vcpkg",
6464
]
6565

66-
[target.'cfg(any(target_os = "wasi", target_os = "emscripten"))'.dependencies]
66+
[target.'cfg(any(target_arch = "wasm32", target_arch = "wasm64"))'.dependencies]
6767
sqlite-wasm-rs = { version = "0.4.3", default-features = false, features = ["precompiled"] }
6868

6969
[dependencies]

sqlx-sqlite/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@
7272
#[macro_use]
7373
extern crate sqlx_core;
7474

75-
#[cfg(not(any(target_os = "wasi", target_os = "emscripten")))]
75+
#[cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))]
7676
pub(crate) use libsqlite3_sys as sqlite_lib;
7777

78-
#[cfg(any(target_os = "wasi", target_os = "emscripten"))]
78+
#[cfg(any(target_arch = "wasm32", target_arch = "wasm64"))]
7979
pub(crate) use sqlite_wasm_rs as sqlite_lib;
8080

8181
use std::sync::atomic::AtomicBool;

0 commit comments

Comments
 (0)