Commit 01d3563
committed
fix(ffi): exclude nodedb-lite-ffi from wasm32 targets
Gate the crate's dependencies under
`[target.'cfg(not(target_arch = "wasm32"))'.dependencies]` and add a
top-level `#![cfg(not(target_arch = "wasm32"))]` attribute so the FFI
crate is a no-op when the workspace is compiled for
`wasm32-unknown-unknown`. This prevents C/JNI symbols from being pulled
into the WASM build, which has no use for them.1 parent b72df15 commit 01d3563
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
0 commit comments