@@ -12,20 +12,25 @@ version = "0.1.0"
12
12
13
13
[workspace .dependencies ]
14
14
stylus-sdk = { version = " 0.6.0" , default-features = false }
15
- alloy-primitives = { version = " 0.7.6" , default-features = false , features = [" tiny-keccak" ] }
16
- alloy-sol-types = { version = " 0.7.6" , default-features = false }
17
- mini-alloc = " 0.4.2"
15
+ alloy-primitives = { version = " 0.7.6" , default-features = false }
16
+ mini-alloc = { version = " 0.4.2" , default-features = false }
18
17
motsu = " 0.1.0"
19
- keccak-const = " 0.2.0 "
18
+
20
19
k256 = { version = " 0.13.3" , default-features = false , features = [" ecdsa" ] }
21
- libsecp256k1 = { version = " 0.7.1" , default-features = false , features = [" static-context" , " hmac" ] }
22
20
23
21
[profile .dev ]
24
22
panic = " abort"
25
23
26
24
[profile .release ]
27
25
opt-level = " z" # Optimize for size instead of speed
28
- lto = true # Link -time optimization
29
- strip = true # Strip debug symbols
26
+ lto = " fat " # More aggressive link -time optimization
27
+ strip = " symbols " # Strip all symbols including debug
30
28
panic = " abort" # Smaller panic handling
31
29
codegen-units = 1 # Better optimization (slower build, smaller binary)
30
+ overflow-checks = false # Disable overflow checks for size
31
+ debug-assertions = false # Disable debug assertions
32
+ incremental = false # Disable incremental compilation for better optimization
33
+ rpath = false # Disable rpath for smaller binary
34
+
35
+ [profile .release .package ."*" ]
36
+ opt-level = " z" # Force size optimization for all dependencies
0 commit comments