Cargo.toml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [package]
  2. name = "darkfi_dao_contract"
  3. version = "0.4.1"
  4. authors = ["Dyne.org foundation <foundation@dyne.org>"]
  5. license = "AGPL-3.0-only"
  6. edition = "2021"
  7. [lib]
  8. crate-type = ["cdylib", "rlib"]
  9. [dependencies]
  10. blake2b_simd = "1.0.2"
  11. bs58 = "0.5.1"
  12. darkfi-sdk = { path = "../../sdk", features = ["wasm"] }
  13. darkfi-serial = { version = "0.4.2", features = ["derive", "crypto"] }
  14. darkfi_money_contract = { path = "../money", features = ["no-entrypoint"] }
  15. thiserror = "2.0.11"
  16. # The following dependencies are used for the client API and
  17. # probably shouldn't be in WASM
  18. chacha20poly1305 = { version = "0.10.1", optional = true }
  19. darkfi = { path = "../../../", features = ["zk", "rpc", "blockchain"], optional = true }
  20. halo2_proofs = { version = "0.3.0", optional = true }
  21. log = { version = "0.4.25", optional = true }
  22. rand = { version = "0.8.5", optional = true }
  23. # These are used just for the integration tests
  24. [dev-dependencies]
  25. smol = "2.0.2"
  26. darkfi-contract-test-harness = {path = "../test-harness"}
  27. # We need to disable random using "custom" which makes the crate a noop
  28. # so the wasm32-unknown-unknown target is enabled.
  29. [target.'cfg(target_arch = "wasm32")'.dependencies]
  30. getrandom = { version = "0.2.8", features = ["custom"] }
  31. darkfi-sdk = { path = "../../sdk", features = ["wasm"] }
  32. [features]
  33. default = []
  34. no-entrypoint = []
  35. client = [
  36. "darkfi",
  37. "darkfi-serial/async",
  38. "darkfi_money_contract/client",
  39. "darkfi_money_contract/no-entrypoint",
  40. "rand",
  41. "chacha20poly1305",
  42. "log",
  43. "halo2_proofs",
  44. ]
  45. [lints]
  46. workspace = true