Cargo.toml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.4.1"
  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.44"
  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.19", optional = true }
  21. rand = { version = "0.8.5", optional = true }
  22. # These are used just for the integration tests
  23. [dev-dependencies]
  24. async-std = {version = "1.12.0", features = ["attributes"]}
  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-money-contract/client",
  41. "darkfi-money-contract/no-entrypoint",
  42. "rand",
  43. "chacha20poly1305",
  44. "log",
  45. "halo2_proofs",
  46. ]