10.1: Add Criterion dev-dependency and benchmarks for:
- matching_rules (100 rules)
- ComputedStyle::compute (empty, 5 props)
- resolve_string (no vars, 1 var, 3 vars)
10.3: Add --perf CLI flag and src/perf.rs module:
- PerfScope drop-guard timed scopes (vdom, style, render)
- Instrumented: VDOM eval (app.rs update), render (app.rs view),
style matching (style.rs compute_cached)
- Per-frame report printed to stderr at end of view()
10.2+10.4: Threshold check in perf report:
- Prints warning if total > 16ms (60 FPS frame budget)
Refactor: Move Message enum to lib.rs so benchmarks can import
the public API. Added lib.rs as library root.
30 lines
588 B
TOML
30 lines
588 B
TOML
[package]
|
|
name = "glint-runtime"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
glt = { path = "../glt" }
|
|
regex = "1.10"
|
|
clap = { version = "4.5", features = ["derive"] }
|
|
iced = { version = "0.14.0", features = ["tokio", "image", "svg", "advanced"] }
|
|
colored = "2"
|
|
indicatif = "0.17"
|
|
rhai = "1.17.1"
|
|
rustc-hash = "2"
|
|
chrono = "0.4.44"
|
|
compact_str = "0.8"
|
|
bumpalo = "3"
|
|
rayon = { version = "1.10", optional = true }
|
|
|
|
[features]
|
|
default = []
|
|
parallel = ["rayon"]
|
|
|
|
[dev-dependencies]
|
|
criterion = { version = "0.5", features = ["html_reports"] }
|
|
|
|
[[bench]]
|
|
name = "bench"
|
|
harness = false
|