penpot/render-wasm/Cargo.toml
Elena Torró 8124ecf148
Improve canvas snapshot and nested drop shadows calculation (#11766)
*  Capture canvas snapshot only when the renderer is idle

*  Skip descendant silhouettes for frames with nested drop shadows

* 🔧 Add a profiling build mode for render-wasm
2026-09-18 09:21:52 +02:00

61 lines
1.2 KiB
TOML

[package]
name = "render"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/penpot/penpot"
license-file = "../LICENSE"
description = "Wasm-based canvas renderer for Penpot"
build = "build.rs"
[features]
default = []
stats = []
profile = ["profile-macros", "profile-raf"]
profile-macros = []
profile-raf = []
[[bin]]
name = "render_wasm"
path = "src/main.rs"
[dependencies]
base64 = "0.22.1"
bezier-rs = "0.4.0"
gl = "0.14.0"
glam = "0.24.2"
indexmap = "2.7.1"
macros = { path = "macros" }
skia-safe = { version = "0.93.1", default-features = false, features = [
"gl",
"svg",
"textlayout",
"binary-cache",
"webp",
"pdf",
] }
thiserror = "2.0.18"
uuid = { version = "1.11.0", features = ["v4", "js"] }
[dev-dependencies]
insta = "1"
[profile.release]
opt-level = 3
lto = "fat"
strip = true
codegen-units = 1
[profile.profiling]
inherits = "release"
strip = false
# Fat LTO inlines the shadow helpers into their caller, so a profile cannot
# attribute cost to them. Thin LTO keeps those boundaries; the code is still
# optimized, so the proportions stay representative.
lto = "thin"
codegen-units = 16
[profile.size]
inherits = "release"
opt-level = "z"