Skip to content

Commit

Permalink
Compile under wasm-pack
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens authored and cmyr committed Jan 24, 2025
1 parent 3128c51 commit d50b59c
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 @@ -22,9 +22,13 @@ default = []
kurbo = ["dep:kurbo"]
rayon = ["dep:rayon"]

[target.'cfg(not(target_family = "wasm"))'.dependencies]
uuid = { version = "1.2", features = ["v4"] }
[target.'cfg(target_family = "wasm")'.dependencies]
uuid = { version = "1.2", features = ["v4", "js"] }

[dependencies]
plist = { version = "1.4.1", features = ["serde"] }
uuid = { version = "1.2", features = ["v4"] }
serde = { version = "1.0", features = ["rc", "derive"] }
serde_derive = "1.0"
serde_repr = "0.1"
Expand Down

0 comments on commit d50b59c

Please sign in to comment.