/ example / wasm-hello-world / Cargo.toml
Cargo.toml
 1  [package]
 2  name = "wasm_hello_world"
 3  version = "0.0.1"
 4  authors = ["Dyne.org foundation <foundation@dyne.org>"]
 5  license = "AGPL-3.0-only"
 6  edition = "2021"
 7  
 8  [workspace]
 9  
10  [lib]
11  crate-type = ["cdylib", "rlib"]
12  
13  [dependencies]
14  darkfi-sdk = { path = "../../src/sdk", features = ["wasm"] }
15  darkfi-serial = { version = "0.5.0", features = ["derive", "crypto"] }
16  
17  # We need to disable random using "custom" which makes the crate a noop
18  # so the wasm32-unknown-unknown target is enabled.
19  [target.'cfg(target_arch = "wasm32")'.dependencies]
20  getrandom = { version = "0.2.8", features = ["custom"] }
21  
22  [features]
23  default = []
24  no-entrypoint = []
25  client = [ "darkfi-serial/async" ]