Skip to content

Commit

Permalink
Remove the exposed web feature (#304)
Browse files Browse the repository at this point in the history
- The `web` feature was previously exposed by the example crate. This isn't really necessary.
- See #276 for discussion
  • Loading branch information
parasyte authored Aug 19, 2022
1 parent 6605951 commit 881033c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/minimal-web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ publish = false

[features]
optimize = ["log/release_max_level_warn"]
web = ["wgpu/webgl"]
default = ["optimize"]

[dependencies]
log = "0.4"
pixels = { path = "../.." }
wgpu = "0.13"
winit = "0.26"
winit_input_helper = "0.12"

Expand All @@ -23,6 +21,7 @@ console_log = "0.2"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
web-sys = "0.3"
wgpu = { version = "0.13", features = ["webgl"] }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger = "0.9"
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ serve package: (build package)
build package:
mkdir -p ./target/{{package}}/
cp ./examples/{{package}}/index.html ./target/{{package}}/
cargo build --release --package {{package}} --target wasm32-unknown-unknown --features web
cargo build --release --package {{package}} --target wasm32-unknown-unknown
wasm-bindgen --target web --no-typescript --out-dir ./target/{{package}}/ ./target/wasm32-unknown-unknown/release/{{package}}.wasm

clean package:
Expand Down

0 comments on commit 881033c

Please sign in to comment.