Skip to content

Commit 499c6d8

Browse files
Only enable wasmbind feature on wasm32 target
1 parent 72ce744 commit 499c6d8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

oauth2/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,15 @@ serde_json = "1.0"
5858
sha2 = "0.10"
5959
ureq = { version = "2", optional = true }
6060
url = { version = "2.1", features = ["serde"] }
61-
chrono = { version = "0.4.31", default-features = false, features = ["clock", "serde", "std", "wasmbind"] }
6261
serde_path_to_error = "0.1.2"
6362

6463
[target.'cfg(target_arch = "wasm32")'.dependencies]
6564
getrandom = { version = "0.2", features = ["js"] }
65+
chrono = { version = "0.4.31", default-features = false, features = ["clock", "serde", "std", "wasmbind"] }
6666

6767
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
6868
curl = { version = "0.4.0", optional = true }
69+
chrono = { version = "0.4.31", default-features = false, features = ["clock", "serde", "std"] }
6970

7071
[dev-dependencies]
7172
hex = "0.4"

0 commit comments

Comments
 (0)