Files
browser/src/rust/Cargo.toml
T
Karl Seguin 0c24db4a00 mem: try lto=thin
Try lto=thin in rust so that the html5ever code sits together and triggers less
misses which result in more memory being used.
2026-08-25 17:02:56 +08:00

19 lines
584 B
TOML

# One workspace, one staticlib: Rust bundles libstd into every staticlib, so
# two of them in the same binary collide (duplicate symbols, two allocators).
# Domain crates are rlibs; `ffi` links them all into the single archive Zig
# consumes.
[workspace]
resolver = "2"
members = ["ffi", "html5ever", "render"]
# Debug builds keep our own crates unoptimized but optimize dependencies
# (parley/tiny-skia/png are 10x slower when not optimized).
[profile.dev.package."*"]
opt-level = 3
debug-assertions = false
overflow-checks = false
[profile.release]
lto = "thin"
codegen-units = 1