mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-12 02:43:16 -04:00
Try lto=thin in rust so that the html5ever code sits together and triggers less misses which result in more memory being used.
19 lines
584 B
TOML
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
|