Skip to content

Commit

Permalink
feat: add wasm support
Browse files Browse the repository at this point in the history
  • Loading branch information
Atilogit authored and hoodie committed Jul 21, 2023
1 parent 1268fa4 commit 336dee7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ features = ["clock", "std", "wasmbind"]
version = "7"
optional = true

[dependencies.uuid]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.uuid]
features = ["v4"]
version = "1"

[target.'cfg(target_arch = "wasm32")'.dependencies.uuid]
features = ["v4", "js"]
version = "1"

[dev-dependencies]
pretty_assertions = "1"

Expand Down

0 comments on commit 336dee7

Please sign in to comment.