Skip to content

Commit

Permalink
Disable dependency on instant when std feature is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Feb 19, 2023
1 parent 12e49ca commit fb7fe0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ exclude = ["/.*"]

[features]
default = ["std"]
std = []
std = ["instant"]

[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies]
instant = "0.1"
instant = { version = "0.1", optional = true }

[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dev-dependencies]
instant = { version = "0.1", features = ["wasm-bindgen"] }
Expand Down

0 comments on commit fb7fe0b

Please sign in to comment.