Cargo.toml 708 B

1234567891011121314151617181920212223242526272829303132
  1. [package]
  2. name = "darkfi_dummy_contract"
  3. version = "0.4.1"
  4. authors = ["Dyne.org foundation <foundation@dyne.org>"]
  5. license = "AGPL-3.0-only"
  6. edition = "2021"
  7. [workspace]
  8. [lib]
  9. crate-type = ["cdylib", "rlib"]
  10. [dependencies]
  11. darkfi-sdk = {path = "../../src/sdk"}
  12. # We need to disable random using "custom" which makes the crate a noop
  13. # so the wasm32-unknown-unknown target is enabled.
  14. [target.'cfg(target_arch = "wasm32")'.dependencies]
  15. getrandom = { version = "0.2.8", features = ["custom"] }
  16. [dev-dependencies]
  17. sled = "0.34.7"
  18. darkfi = {path = "../../", features = ["wasm-runtime"]}
  19. simplelog = "0.12.1"
  20. [[example]]
  21. name = "runtime"
  22. path = "src/runtime.rs"
  23. [features]
  24. default = []
  25. no-entrypoint = []