Disable dependency on instant when std feature is disabled

This commit is contained in:
Taiki Endo 2023-02-19 11:57:05 +09:00
parent 12e49cae87
commit fb7fe0be4c
1 changed files with 2 additions and 2 deletions

View File

@ -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"] }