Cargo.toml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. [package]
  2. name = "darkfi-money-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. darkfi-sdk = { path = "../../sdk" }
  11. darkfi-serial = { path = "../../serial", features = ["derive", "crypto"] }
  12. thiserror = "1.0.38"
  13. # The following dependencies are used for the client API and
  14. # probably shouldn't be in WASM
  15. chacha20poly1305 = { version = "0.10.1", optional = true }
  16. darkfi = { path = "../../../", features = ["zk", "rpc", "blockchain"], optional = true }
  17. halo2_proofs = { version = "0.2.0", optional = true }
  18. log = { version = "0.4.17", optional = true }
  19. rand = { version = "0.8.5", optional = true }
  20. # These are used just for the integration tests
  21. [dev-dependencies]
  22. async-std = {version = "1.12.0", features = ["attributes"]}
  23. darkfi = {path = "../../../", features = ["tx", "blockchain"]}
  24. simplelog = "0.12.0"
  25. sled = "0.34.7"
  26. sqlx = {version = "0.6.2", features = ["runtime-async-std-rustls", "sqlite"]}
  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. [features]
  32. default = []
  33. no-entrypoint = []
  34. client = [
  35. "darkfi",
  36. "rand",
  37. "chacha20poly1305",
  38. "log",
  39. "halo2_proofs",
  40. ]