Cargo.toml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [package]
  2. name = "darkfi_deployooor_contract"
  3. version = "0.5.0"
  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", features = ["wasm"] }
  11. darkfi-serial = { path = "../../serial", features = ["derive", "crypto"] }
  12. thiserror = "2.0.18"
  13. wasmparser = "0.249.0"
  14. # The following dependencies are used for the client API and
  15. # probably shouldn't be in WASM
  16. darkfi = { path = "../../../", features = ["zk"], optional = true }
  17. tracing = { version = "0.1.44", optional = true }
  18. rand = { version = "0.8.6", optional = true }
  19. # These are used for integration tests
  20. [dev-dependencies]
  21. darkfi-contract-test-harness = {path = "../test-harness"}
  22. smol = "2.0.2"
  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. darkfi-sdk = { path = "../../sdk", features = ["wasm"] }
  28. [features]
  29. default = []
  30. no-entrypoint = []
  31. client = [
  32. "darkfi",
  33. "darkfi-sdk/async",
  34. "darkfi-serial/async",
  35. "tracing",
  36. "rand",
  37. ]
  38. [lints]
  39. workspace = true