Rust release profiles strip symbols and debug info (desktop: fat LTO, panic=abort), the web app and site ship without source maps, and wasm-opt drops debug, producer and name sections from the engine. Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
37 lines
1.6 KiB
TOML
37 lines
1.6 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = ["engine/core", "engine/wasm", "workers/render", "workers/faces"]
|
|
# The desktop shell needs WebKitGTK/WebView2 system libraries, so it builds on its own (desktop release workflow).
|
|
exclude = ["apps/desktop/src-tauri"]
|
|
|
|
[workspace.package]
|
|
edition = "2024"
|
|
publish = false
|
|
|
|
[workspace.dependencies]
|
|
# LightCraft is consumed, never forked. Bump `rev` deliberately and run the reference-image tests.
|
|
lightcraft-develop = { git = "https://github.com/storytold/lightcraft", rev = "0dd6593d9db55a17ab559261bac4d766f015c345" }
|
|
lightcraft-codecs = { git = "https://github.com/storytold/lightcraft", rev = "0dd6593d9db55a17ab559261bac4d766f015c345", default-features = false }
|
|
lightcraft-pipeline = { git = "https://github.com/storytold/lightcraft", rev = "0dd6593d9db55a17ab559261bac4d766f015c345" }
|
|
lightcraft-raster = { git = "https://github.com/storytold/lightcraft", rev = "0dd6593d9db55a17ab559261bac4d766f015c345" }
|
|
lightcraft-geom = { git = "https://github.com/storytold/lightcraft", rev = "0dd6593d9db55a17ab559261bac4d766f015c345" }
|
|
lightcraft-faces = { git = "https://github.com/storytold/lightcraft", rev = "0dd6593d9db55a17ab559261bac4d766f015c345" }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
thiserror = "2"
|
|
|
|
# Server workers and the base of every other profile: no symbols or debug info in what ships.
|
|
[profile.release]
|
|
lto = "thin"
|
|
strip = true
|
|
debug = false
|
|
|
|
# The browser module: small and fast enough for slider drags (same trade-off as LightCraft's `web` profile).
|
|
[profile.wasm]
|
|
inherits = "release"
|
|
opt-level = 3
|
|
lto = "fat"
|
|
codegen-units = 1
|
|
panic = "abort"
|
|
strip = true
|