Skip to content

Commit 46fe191

Browse files
authored
Example: Dining cryptographers (#102)
1 parent e4412d4 commit 46fe191

File tree

10 files changed

+725
-98
lines changed

10 files changed

+725
-98
lines changed

Cargo.lock

Lines changed: 15 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/Cargo.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,24 @@ repository = "https://github.com/entropyxyz/manul/examples"
99
readme = "README.md"
1010

1111
[dependencies]
12-
manul = { path = "../manul" }
12+
manul = { path = "../manul", features = ["dev"] }
1313
postcard = { version = "1", features = ["alloc"] }
1414
serde = "1"
1515
sha3 = "0.10"
16-
rand_core = "0.6"
16+
rand_core = { version = "0.6.4", default-features = false, features = ["getrandom"] }
1717
tracing = "0.1"
1818
displaydoc = "0.2"
19+
tracing-subscriber = "0.3"
20+
21+
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
22+
getrandom = { version = "0.2", features = ["js"] }
1923

2024
[dev-dependencies]
2125
tokio = { version = "1", features = ["rt", "sync", "time", "macros"] }
22-
rand = "0.8"
2326
digest = "0.10"
2427
manul = { path = "../manul", features = ["dev", "tokio"] }
2528
test-log = { version = "0.2", features = ["trace", "color"] }
29+
30+
[[bin]]
31+
name = "dining-cryptographers"
32+
path = "dining_cryptographers.rs"

0 commit comments

Comments
 (0)