Cargo.toml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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" }
  13. darkfi-serial = { path = "../../serial", features = ["derive", "crypto"] }
  14. darkfi_money_contract = { path = "../money", features = ["no-entrypoint"] }
  15. thiserror = "1.0.61"
  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.22", 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.0"
  26. darkfi = {path = "../../../", features = ["tx", "blockchain"]}
  27. darkfi_money_contract = {path = "../money", features = ["client", "no-entrypoint"]}
  28. simplelog = "0.12.2"
  29. sled = "0.34.7"
  30. darkfi-contract-test-harness = {path = "../test-harness"}
  31. # We need to disable random using "custom" which makes the crate a noop
  32. # so the wasm32-unknown-unknown target is enabled.
  33. [target.'cfg(target_arch = "wasm32")'.dependencies]
  34. getrandom = { version = "0.2.8", features = ["custom"] }
  35. [features]
  36. default = []
  37. no-entrypoint = []
  38. client = [
  39. "darkfi",
  40. "darkfi-serial/async",
  41. "darkfi_money_contract/client",
  42. "darkfi_money_contract/no-entrypoint",
  43. "rand",
  44. "chacha20poly1305",
  45. "log",
  46. "halo2_proofs",
  47. ]
  48. [lints]
  49. workspace = true