Skip to content

Commit

Permalink
Fix web build
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Aug 12, 2024
1 parent be57912 commit 0699b2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4464,7 +4464,6 @@ dependencies = [
"re_viewer_context",
"rfd",
"unindent",
"wasm-bindgen-futures",
]

[[package]]
Expand Down Expand Up @@ -5374,6 +5373,7 @@ dependencies = [
"smallvec",
"thiserror",
"uuid",
"wasm-bindgen-futures",
"wgpu",
]

Expand Down
5 changes: 0 additions & 5 deletions crates/viewer/re_data_ui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion crates/viewer/re_viewer_context/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0699b2e

Please sign in to comment.