Cargo.toml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [package]
  2. name = "membership"
  3. version = "0.0.1"
  4. homepage = "https://dark.fi"
  5. description = "Template smart contract"
  6. authors = ["Dyne.org foundation <foundation@dyne.org>"]
  7. license = "AGPL-3.0-only"
  8. edition = "2021"
  9. [lib]
  10. crate-type = ["cdylib", "lib"]
  11. [dependencies]
  12. # The main smart contract dependencies necessary for each/most contracts
  13. darkfi-sdk = { git = "https://git.dark.fi/darkrenaissance/darkfi", features = ["wasm"] }
  14. darkfi-serial = { git = "https://git.dark.fi/darkrenaissance/darkfi", features = ["derive", "crypto"] }
  15. # The client-side dependencies used for transaction creation. These aren't
  16. # needed in WASM so they are optional, and enabled through the `client`
  17. # feature.
  18. rand = { version = "0.8.5", optional = true }
  19. [dependencies.darkfi]
  20. git = "https://git.dark.fi/darkrenaissance/darkfi"
  21. optional = true
  22. features = ["util", "zk", "zkas"]
  23. ## We need to disable random using "custom" which makes the crate a noop
  24. # so the wasm32-unknown-unknown target is enabled.
  25. [target.'cfg(target_arch = "wasm32")'.dependencies]
  26. getrandom = { version = "0.2.8", features = ["custom"] }
  27. [features]
  28. default = []
  29. no-entrypoint = []
  30. client = ["darkfi", "rand"]
  31. # The client helper binary
  32. [[bin]]
  33. name = "membership"
  34. path = "client/main.rs"
  35. [patch.crates-io]
  36. halo2_proofs = {git="https://github.com/parazyd/halo2", branch="v050"}
  37. halo2_gadgets = {git="https://github.com/parazyd/halo2", branch="v050"}