mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
45 lines
1.3 KiB
TOML
45 lines
1.3 KiB
TOML
[package]
|
|
name = "darkfi-dao-contract"
|
|
version = "0.3.0"
|
|
authors = ["Dyne.org foundation <foundation@dyne.org>"]
|
|
license = "AGPL-3.0-only"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
darkfi-sdk = { path = "../../sdk" }
|
|
darkfi-serial = { path = "../../serial", features = ["derive", "crypto"] }
|
|
darkfi-money-contract = { path = "../money", features = ["no-entrypoint"] }
|
|
|
|
# The following dependencies are used for the client API and
|
|
# probably shouldn't be in WASM
|
|
darkfi = { path = "../../../", features = ["zk", "rpc"], optional = true }
|
|
halo2_proofs = { version = "0.2.0", optional = true }
|
|
log = { version = "0.4.17", optional = true }
|
|
rand = { version = "0.8.5", optional = true }
|
|
|
|
# These are used just for the integration tests
|
|
[dev-dependencies]
|
|
async-std = {version = "1.12.0", features = ["attributes"]}
|
|
darkfi = {path = "../../../", features = ["tx", "blockchain"]}
|
|
simplelog = "0.12.0"
|
|
sled = "0.34.7"
|
|
sqlx = {version = "0.6.2", features = ["runtime-async-std-native-tls", "sqlite"]}
|
|
|
|
# We need to disable random using "custom" which makes the crate a noop
|
|
# so the wasm32-unknown-unknown target is enabled.
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
getrandom = { version = "0.2.8", features = ["custom"] }
|
|
|
|
[features]
|
|
default = []
|
|
no-entrypoint = []
|
|
client = [
|
|
"darkfi",
|
|
"rand",
|
|
"log",
|
|
"halo2_proofs",
|
|
]
|