Files
raea/systems/page/Cargo.toml
shinyobjectz ee42e31469 NB2a: stat channels and pass timings chosen and read from TypeScript
io/trace's stats.rs: a stat channel is a RAEA_ variable's name without RAEA_ (bake_trace, trace, bevy_passes), on
when the composition chose it (native("stats.on", { channels }) at its top level), when RAEA_STATS lists it, or when
its variable is set, the override. The 51 reads of 24 trace and stat variables go through raea_io_trace::stat. Each
of Bevy's render passes (RenderDiagnosticsPlugin, on by bevy_passes) and PassTimer's go into the run's totals, with
the counters engine/draws and engine/updates; native("stats.read", {}) returns them, and a run that chose a channel
prints the table and keeps stats.json in its trace folder (docs/manual/reference/cli/traces.md).

tools/nobuild.sh stats checks it: every channel decided done reads through stat(); the scene choosing bevy_passes and
trace traces, reads 9 passes and 11 draws back on its last frame, prints the table and keeps stats.json; with nothing
chosen nothing prints; RAEA_TRACE=1 and RAEA_STATS give the same trace lines. 12 frames take 12 updates.

raea-render's lines stay as they were (NB4a's plugin choice folded to one line). native-calls.ts gains the two calls,
and bevy.app.*, which raea registers now that the macOS build links the plugin catalog.
2026-11-22 09:15:58 -08:00

44 lines
2.4 KiB
TOML

[package]
name = "raea-sys-page"
version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
description = "HTML and CSS pages in Bevy: a Blitz document restyled, laid out and painted by Vello on Bevy's own GPU device into a Bevy Image"
[dependencies]
raea-io-trace = { path = "../../io/trace" }
raea-sys-fonts = { path = "../fonts" }
raea-sys-image = { path = "../image" }
# a 3D view's clearColor parsed as CSS parses a colour (view3d/props.rs): linebender's, as peniko and Vello take it
color = "=0.3.3"
bevy = { version = "=0.20.0", default-features = false, features = ["std", "default_app", "bevy_render", "bevy_asset", "bevy_image", "bevy_log", "bevy_window", "ui_bevy_render", "bevy_picking", "ui_picking", "bevy_input_focus", "3d_bevy_render"] }
# the document: stylo's styles, Taffy's and Blitz's layout (floats on, as Chrome lays them out)
blitz-dom = { version = "=0.3.0-beta.4", default-features = false, features = ["svg", "woff", "system-fonts", "floats", "text-transform-icu", "complex-scripts", "custom-widget"] }
blitz-traits = "=0.3.0-beta.4"
# the paint: blitz-paint through raea-sys-filters' painter, Vello on Bevy's wgpu device (no vello_cpu, B1c)
blitz-paint = { version = "=0.3.0-beta.4", default-features = false, features = ["svg", "apple-font-embolden", "custom-widget"] }
vello = { version = "=0.11.0", default-features = false, features = ["wgpu"] }
wgpu = "=30.0.1"
# the op wire, applied (ops)
raea-sys-page-ops = { path = "../page-ops" }
raea-core-wire = { path = "../../core/wire" }
# a page's loads (net)
raea-sys-page-net = { path = "../page-net" }
# the GPU canary, bump and memory checks, and refusals
raea-gpu-device = { path = "../../gpu/device" }
# CSS filters on the GPU
raea-sys-filters = { path = "../filters" }
serde_json = "1"
# what a render says once its frames are out, as findings (render_said: #174's missing fonts)
raea-core-facts = { path = "../../core/facts" }
# text layout as Blitz lays it out (its parley, B0d); the faces are raea-sys-fonts'
parley = { version = "=0.12.0", default-features = false, features = ["std"] }
# an iframe's HTML parsed by Blitz
blitz-html = "=0.3.0-beta.4"
[dev-dependencies]
# a custom widget's scene, in widgets.rs's test
anyrender = "=0.14.0"
bevy = { version = "=0.20.0", default-features = false, features = ["std", "default_app", "bevy_render", "bevy_core_pipeline", "bevy_log", "png", "bevy_window"] }