Cargo.toml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [workspace]
  2. members = [
  3. "contracts/wormhole",
  4. "contracts/pyth-receiver"]
  5. resolver = "2"
  6. [workspace.package]
  7. edition = "2024"
  8. license = "Apache-2.0"
  9. repository = "https://github.com/pyth-network/pyth-crosschain"
  10. version = "0.1.0"
  11. [workspace.dependencies]
  12. stylus-sdk = { version = "0.9.0", default-features = false }
  13. alloy-primitives = { version = "0.7.6", default-features = false }
  14. mini-alloc = { version = "0.4.2", default-features = false }
  15. motsu = "0.9.0"
  16. k256 = { version = "0.13.3", default-features = false, features = ["ecdsa"] }
  17. [profile.dev]
  18. panic = "abort"
  19. [profile.release]
  20. opt-level = "z" # Optimize for size instead of speed
  21. lto = "fat" # More aggressive link-time optimization
  22. strip = "symbols" # Strip all symbols including debug
  23. panic = "abort" # Smaller panic handling
  24. codegen-units = 1 # Better optimization (slower build, smaller binary)
  25. overflow-checks = false # Disable overflow checks for size
  26. debug-assertions = false # Disable debug assertions
  27. incremental = false # Disable incremental compilation for better optimization
  28. rpath = false # Disable rpath for smaller binary
  29. [profile.release.package."*"]
  30. opt-level = "z" # Force size optimization for all dependencies
  31. [profile.release.package.k256]
  32. opt-level = "z"
  33. strip = "symbols"
  34. [profile.release.package.alloy-primitives]
  35. opt-level = "z"
  36. strip = "symbols"