Skip to content

Commit

Permalink
cargo: use 'dep' for optional dependencies
Browse files Browse the repository at this point in the history
This was an oversight. The 'js-sys' and 'wasm-bindgen' dependencies
only be referenced as dependencies. They aren't features themselves.
(And they were never documented as such, so this change is justifiable
in a semver compatible release.)
  • Loading branch information
BurntSushi committed Aug 14, 2024
1 parent 7da2731 commit abae98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ tzdb-zoneinfo = ["std"]
# on Jiff directly and enable the `js` feature themselves.
#
# (This is the same dependency setup that the `getrandom` crate uses.)
js = ["wasm-bindgen", "js-sys"]
js = ["dep:wasm-bindgen", "dep:js-sys"]

[dependencies]
jiff-tzdb = { version = "0.1.0", path = "jiff-tzdb", optional = true }
Expand Down

0 comments on commit abae98e

Please sign in to comment.