Skip to content

Commit

Permalink
make wasmbindgen and js-sys non-optional for wasm
Browse files Browse the repository at this point in the history
fix wasmbind feature, make ci folder changes trigger the ci

run on all branches
  • Loading branch information
esheppa committed Jul 28, 2022
1 parent 01f5b49 commit 6e2a859
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -4,8 +4,8 @@ on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- ".ci/**"
- "**.rs"
- .github/**
- Cargo.toml
Expand Down
5 changes: 2 additions & 3 deletions Cargo.toml
Expand Up @@ -26,7 +26,6 @@ libc = []
std = []
clock = ["std", "winapi"]
oldtime = ["time"]
wasmbind = ["wasm-bindgen", "js-sys"]
unstable-locales = ["pure-rust-locales", "alloc"]
__internal_bench = ["criterion"]
__doctest = []
Expand All @@ -42,8 +41,8 @@ criterion = { version = "0.3", optional = true }
rkyv = {version = "0.7", optional = true}

[target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dependencies]
wasm-bindgen = { version = "0.2", optional = true }
js-sys = { version = "0.3", optional = true } # contains FFI bindings for the JS Date API
wasm-bindgen = { version = "0.2" }
js-sys = { version = "0.3" } # contains FFI bindings for the JS Date API

[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.0", features = ["std", "minwinbase", "minwindef", "timezoneapi"], optional = true }
Expand Down

0 comments on commit 6e2a859

Please sign in to comment.