Cargo.toml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [package]
  2. name = "darkfi_consensus_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. blake3 = "1.5.0"
  11. darkfi-sdk = { path = "../../sdk" }
  12. darkfi-serial = { path = "../../serial", features = ["derive", "crypto"] }
  13. darkfi_money_contract = { path = "../money", features = ["no-entrypoint"] }
  14. thiserror = "1.0.56"
  15. # The following dependencies are used for the client API and
  16. # probably shouldn't be in WASM
  17. chacha20poly1305 = { version = "0.10.1", optional = true }
  18. darkfi = { path = "../../../", features = ["zk", "rpc", "blockchain"], optional = true }
  19. halo2_proofs = { version = "0.3.0", optional = true }
  20. log = { version = "0.4.20", optional = true }
  21. rand = { version = "0.8.5", optional = true }
  22. # These are used just for the integration tests
  23. [dev-dependencies]
  24. smol = "1.3.0"
  25. bs58 = "0.5.0"
  26. darkfi = {path = "../../../", features = ["tx", "blockchain"]}
  27. darkfi_money_contract = { path = "../money", features = ["client", "no-entrypoint"] }
  28. darkfi-contract-test-harness = {path = "../test-harness"}
  29. simplelog = "0.12.1"
  30. sled = "0.34.7"
  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. ]