Skip to content

Commit

Permalink
Target specific dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonDyer64 committed Oct 29, 2023
1 parent cf06e86 commit 185f208
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@ rust-version = "1.67.0"
[dependencies]
serde_json = "1.0"
serde = {version = "1.0", features = ["derive"] }
ring = { version = "0.17.4", features = ["std", "wasm32_unknown_unknown_js"] }
base64 = "0.21.0"
# For PEM decoding
pem = {version = "3", optional = true}
simple_asn1 = {version = "0.6", optional = true}

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
ring = { version = "0.17.4", features = ["std"] }


[target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = "0.3"
ring = { version = "0.17.4", features = ["std", "wasm32_unknown_unknown_js"] }

[dev-dependencies]
# For the custom time example
Expand Down

0 comments on commit 185f208

Please sign in to comment.