Skip to content

Commit

Permalink
fix: Enable WASM support for getrandom in room-contract
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Jan 19, 2025
1 parent 8663928 commit aeda64d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion contracts/room-contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,24 @@ strip = true
default = ["freenet-main-contract"]
contract = ["freenet-stdlib/contract"]
freenet-main-contract = []
trace = ["freenet-stdlib/trace"]
trace = ["freenet-stdlib/trace"][package]
name = "room-contract"
version = "0.1.0"
edition = "2021"

[dependencies]
ciborium.workspace = true
serde.workspace = true
ed25519-dalek.workspace = true
rand.workspace = true
freenet-stdlib.workspace = true
getrandom = { workspace = true, features = ["js", "wasm-bindgen"], default-features = false }

[lib]
crate-type = ["cdylib", "rlib"]

[features]
default = ["freenet-main-contract"]
contract = ["freenet-stdlib/contract"]
freenet-main-contract = []
trace = ["freenet-stdlib/trace"]

0 comments on commit aeda64d

Please sign in to comment.