Skip to content

Commit

Permalink
Fix web build
Browse files Browse the repository at this point in the history
  • Loading branch information
asny committed Oct 14, 2022
1 parent 5412e1e commit d71423e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Expand Up @@ -19,7 +19,7 @@ targets = ["x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows
[features]
default = ["window"]
window = ["glutin", "winit"] # Window module
egui-gui = ["egui_glow", "egui"] # Additional GUI features
egui-gui = ["egui_glow", "egui", "getrandom"] # Additional GUI features

[dependencies]
glow = "0.11"
Expand All @@ -29,6 +29,7 @@ thiserror = "1"
winit = {version = "0.27", optional = true}
egui = { version = "0.19", optional = true }
egui_glow = { version = "0.19", optional = true }
getrandom = { version = "0.2", features = ["js"], optional = true }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
glutin = { version = "0.29", optional = true }
Expand Down

0 comments on commit d71423e

Please sign in to comment.