Cargo.toml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. [workspace]
  2. members = [
  3. "contracts",
  4. "examples/pyth-example",
  5. "examples/extend-pyth-example",
  6. "examples/function-example",
  7. "benches"
  8. ]
  9. default-members = [
  10. "contracts",
  11. "examples/pyth-example",
  12. "examples/extend-pyth-example",
  13. "examples/function-example",
  14. ]
  15. # Explicitly set the resolver to version 2, which is the default for packages
  16. # with edition >= 2021.
  17. # https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html
  18. resolver = "2"
  19. [workspace.package]
  20. authors = ["Ifechukwu Daniel"]
  21. edition = "2021"
  22. license = "Apache-2.0"
  23. repository = "https://github.com/pyth-network/pyth-crosschain"
  24. version = "0.1.0"
  25. [workspace.lints.rust]
  26. missing_docs = "warn"
  27. unreachable_pub = "warn"
  28. rust_2021_compatibility = { level = "warn", priority = -1 }
  29. [workspace.dependencies]
  30. # stylus-related
  31. stylus-sdk = { version = "0.6.0", default-features = false }
  32. mini-alloc = "0.4.2"
  33. alloy = { version = "0.1.4", features = [
  34. "contract",
  35. "network",
  36. "providers",
  37. "provider-http",
  38. "rpc-client",
  39. "rpc-types-eth",
  40. "signer-local",
  41. "getrandom",
  42. ] }
  43. # Even though `alloy` includes `alloy-primitives` and `alloy-sol-types` we need
  44. # to keep both versions for compatibility with the Stylus SDK. Once they start
  45. # using `alloy` we can remove these.
  46. alloy-primitives = { version = "0.7.6", default-features = false }
  47. alloy-sol-types = { version = "0.7.6", default-features = false }
  48. alloy-sol-macro = { version = "0.7.6", default-features = false }
  49. alloy-sol-macro-expander = { version = "0.7.6", default-features = false }
  50. alloy-sol-macro-input = { version = "0.7.6", default-features = false }
  51. dotenv = "0.15.0"
  52. const-hex = { version = "1.11.1", default-features = false }
  53. eyre = "0.6.8"
  54. keccak-const = "0.2.0"
  55. koba = "0.2.0"
  56. once_cell = "1.19.0"
  57. rand = "0.8.5"
  58. regex = "1.10.4"
  59. tiny-keccak = { version = "2.0.2", features = ["keccak"] }
  60. tokio = { version = "1.12.0", features = ["full"] }
  61. futures = "0.3.30"
  62. # procedural macros
  63. syn = { version = "2.0.58", features = ["full"] }
  64. proc-macro2 = "1.0.79"
  65. quote = "1.0.35"
  66. # members
  67. motsu = "0.1.0"
  68. e2e = { git = "https://github.com/Ifechukwudaniel/e2e-stylus"}
  69. pyth-stylus ={path ="contracts"}
  70. [profile.release]
  71. codegen-units = 1
  72. panic = "abort"
  73. opt-level = "z"
  74. strip = true
  75. lto = true
  76. debug = false
  77. rpath = false
  78. debug-assertions = false
  79. incremental = false
  80. [profile.dev]
  81. panic = "abort"