File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -312,7 +312,6 @@ blake2 = { opt-level = 3 }
312312blake3 = { opt-level = 3 }
313313blake2b_simd = { opt-level = 3 }
314314blst = { opt-level = 3 }
315- rust-kzg-blst = { opt-level = 3 }
316315chacha20 = { opt-level = 3 }
317316chacha20poly1305 = { opt-level = 3 }
318317cranelift-codegen = { opt-level = 3 }
@@ -360,6 +359,15 @@ x25519-dalek = { opt-level = 3 }
360359yamux = { opt-level = 3 }
361360zeroize = { opt-level = 3 }
362361
362+ # These crates are always compiled with small code size, to mitigate farmer stack overflows.
363+ # For details, see: https://github.com/autonomys/subspace/issues/3698
364+ rust-kzg-blst = { opt-level = " s" }
365+ rayon-core = { opt-level = " s" }
366+
367+ [profile .release .package ]
368+ rust-kzg-blst = { opt-level = " s" }
369+ rayon-core = { opt-level = " s" }
370+
363371[profile .release ]
364372# Substrate runtime requires unwinding.
365373panic = " unwind"
You can’t perform that action at this time.
0 commit comments