Cargo.toml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [package]
  2. name = "darkfi-map-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.40"
  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. # why is darkfi undeclared?
  17. darkfi = { path = "../../../", features = ["zk", "rpc", "blockchain"], optional = true }
  18. halo2_proofs = { version = "0.3.0", optional = true }
  19. log = { version = "0.4.17", optional = true }
  20. rand = { version = "0.8.5", optional = true }
  21. # These are used just for the integration tests
  22. [dev-dependencies]
  23. async-std = {version = "1.12.0", features = ["attributes"]}
  24. bs58 = "0.4.0"
  25. darkfi = {path = "../../../", features = ["tx", "blockchain"]}
  26. simplelog = "0.12.1"
  27. sled = "0.34.7"
  28. sqlx = {version = "0.6.3", features = ["runtime-async-std-rustls", "sqlite"]}
  29. # We need to disable random using "custom" which makes the crate a noop
  30. # so the wasm32-unknown-unknown target is enabled.
  31. [target.'cfg(target_arch = "wasm32")'.dependencies]
  32. getrandom = { version = "0.2.8", features = ["custom"] }
  33. [features]
  34. default = []
  35. no-entrypoint = []
  36. client = [
  37. "darkfi",
  38. "rand",
  39. "chacha20poly1305",
  40. "log",
  41. "halo2_proofs",
  42. ]