Cargo.toml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. [package]
  2. name = "example-cw-contract"
  3. version = "0.1.0"
  4. authors = ["Pyth Data Foundation"]
  5. edition = "2018"
  6. exclude = [
  7. # Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
  8. "contract.wasm",
  9. "hash.txt",
  10. ]
  11. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  12. [lib]
  13. crate-type = ["cdylib", "rlib"]
  14. [features]
  15. # for more explicit tests, cargo test --features=backtraces
  16. backtraces = ["cosmwasm-std/backtraces"]
  17. # use library feature to disable all instantiate/execute/query exports
  18. library = []
  19. [package.metadata.scripts]
  20. optimize = """docker run --rm -v "$(pwd)":/code \
  21. --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
  22. --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
  23. cosmwasm/rust-optimizer:0.12.5
  24. """
  25. [dependencies]
  26. cosmwasm-std = { version = "1.0.0" }
  27. cosmwasm-storage = { version = "1.0.0" }
  28. cw-storage-plus = "0.13.4"
  29. schemars = "0.8"
  30. serde = { version = "1.0", default-features = false, features = ["derive"] }
  31. pyth-sdk-cw = "0.1.0"
  32. cosmwasm-schema = "1.1.9"