Skip to content

Commit 2a58ad8

Browse files
chore: restore main.rs and clean up Cargo.toml configurations
- Restored main.rs for ABI export functionality - Cleaned up temporary Cargo.toml modifications from optimization attempts - Contract maintains 23.9 KiB size with all functionality intact Co-Authored-By: ayush.suresh@dourolabs.xyz <byteSlayer31037@gmail.com>
1 parent c11221f commit 2a58ad8

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

target_chains/stylus/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,11 @@ rpath = false # Disable rpath for smaller binary
3434

3535
[profile.release.package."*"]
3636
opt-level = "z" # Force size optimization for all dependencies
37+
38+
[profile.release.package.k256]
39+
opt-level = "z"
40+
strip = "symbols"
41+
42+
[profile.release.package.alloy-primitives]
43+
opt-level = "z"
44+
strip = "symbols"

target_chains/stylus/contracts/wormhole/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ default = []
1010
std = []
1111
export-abi = ["stylus-sdk/export-abi"]
1212

13+
14+
15+
16+
1317
[dependencies]
1418
stylus-sdk = { workspace = true, default-features = false }
1519
alloy-primitives = { workspace = true, default-features = false }
1620
mini-alloc = { workspace = true, default-features = false }
1721

18-
k256 = { version = "0.13.3", default-features = false, features = ["ecdsa"], optional = false }
22+
k256 = { version = "0.13.3", default-features = false, features = ["ecdsa"] }
1923

2024

2125
[dev-dependencies]

0 commit comments

Comments
 (0)