diff --git a/Cargo.lock b/Cargo.lock index 83399de826eb..22e7a7974e88 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4464,7 +4464,6 @@ dependencies = [ "re_viewer_context", "rfd", "unindent", - "wasm-bindgen-futures", ] [[package]] @@ -5374,6 +5373,7 @@ dependencies = [ "smallvec", "thiserror", "uuid", + "wasm-bindgen-futures", "wgpu", ] diff --git a/crates/viewer/re_data_ui/Cargo.toml b/crates/viewer/re_data_ui/Cargo.toml index a9fc384ed9e8..2f9c4476d332 100644 --- a/crates/viewer/re_data_ui/Cargo.toml +++ b/crates/viewer/re_data_ui/Cargo.toml @@ -47,8 +47,3 @@ itertools.workspace = true nohash-hasher.workspace = true rfd.workspace = true unindent.workspace = true - - -# web -[target.'cfg(target_arch = "wasm32")'.dependencies] -wasm-bindgen-futures.workspace = true diff --git a/crates/viewer/re_viewer_context/Cargo.toml b/crates/viewer/re_viewer_context/Cargo.toml index e0d60a74f144..bec0c0b3c4fc 100644 --- a/crates/viewer/re_viewer_context/Cargo.toml +++ b/crates/viewer/re_viewer_context/Cargo.toml @@ -65,8 +65,12 @@ thiserror.workspace = true uuid = { workspace = true, features = ["serde", "v4", "js"] } wgpu.workspace = true -# Native only dependencies. +# Native dependencies: [target.'cfg(not(target_arch = "wasm32"))'.dependencies] arboard = { workspace = true, default-features = false, features = [ "image-data", ] } + +# Web dependencies: +[target.'cfg(target_arch = "wasm32")'.dependencies] +wasm-bindgen-futures.workspace = true