You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by pi...@apache.org on 2026/04/02 12:38:06 UTC
(iggy) branch simulator_ui updated: Refactor simulator to use Bevy
This is an automated email from the ASF dual-hosted git repository.
piotr pushed a commit to branch simulator_ui
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/simulator_ui by this push:
new d383e9495 Refactor simulator to use Bevy
d383e9495 is described below
commit d383e9495b0d4fa7e4f29cff396303b189216a9d
Author: spetz <pi...@gmail.com>
AuthorDate: Thu Apr 2 14:37:45 2026 +0200
Refactor simulator to use Bevy
---
Cargo.lock | 3445 +++++++++++++++++++++----
core/simulator_ui/Cargo.toml | 14 +-
core/simulator_ui/Trunk.toml | 2 +-
core/simulator_ui/assets/style.css | 2 +-
core/simulator_ui/index.html | 30 +-
core/simulator_ui/src/app.rs | 563 ----
core/simulator_ui/src/brand.rs | 42 -
core/simulator_ui/src/controls/fault_panel.rs | 160 --
core/simulator_ui/src/controls/mod.rs | 21 -
core/simulator_ui/src/controls/playback.rs | 19 -
core/simulator_ui/src/main.rs | 2871 ++++++++++++++++++++-
core/simulator_ui/src/render/cluster_view.rs | 139 -
core/simulator_ui/src/render/message_arc.rs | 62 -
core/simulator_ui/src/render/mod.rs | 23 -
core/simulator_ui/src/render/replica_node.rs | 310 ---
core/simulator_ui/src/render/timeline.rs | 156 --
core/simulator_ui/src/state/animation.rs | 136 -
core/simulator_ui/src/state/mod.rs | 20 -
core/simulator_ui/src/vsr/events.rs | 1 +
core/simulator_ui/src/vsr/mod.rs | 1 -
core/simulator_ui/src/vsr/types.rs | 26 +-
21 files changed, 5819 insertions(+), 2224 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index ad8d91987..900d9451b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -18,6 +18,63 @@ version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618"
+[[package]]
+name = "accesskit"
+version = "0.21.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf203f9d3bd8f29f98833d1fbef628df18f759248a547e7e01cfbf63cda36a99"
+
+[[package]]
+name = "accesskit_consumer"
+version = "0.31.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "db81010a6895d8707f9072e6ce98070579b43b717193d2614014abd5cb17dd43"
+dependencies = [
+ "accesskit",
+ "hashbrown 0.15.5",
+]
+
+[[package]]
+name = "accesskit_macos"
+version = "0.22.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a0089e5c0ac0ca281e13ea374773898d9354cc28d15af9f0f7394d44a495b575"
+dependencies = [
+ "accesskit",
+ "accesskit_consumer",
+ "hashbrown 0.15.5",
+ "objc2 0.5.2",
+ "objc2-app-kit",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "accesskit_windows"
+version = "0.29.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2d63dd5041e49c363d83f5419a896ecb074d309c414036f616dc0b04faca971"
+dependencies = [
+ "accesskit",
+ "accesskit_consumer",
+ "hashbrown 0.15.5",
+ "static_assertions",
+ "windows 0.61.3",
+ "windows-core 0.61.2",
+]
+
+[[package]]
+name = "accesskit_winit"
+version = "0.29.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c8cfabe59d0eaca7412bfb1f70198dd31e3b0496fee7e15b066f9c36a1a140a0"
+dependencies = [
+ "accesskit",
+ "accesskit_macos",
+ "accesskit_windows",
+ "raw-window-handle",
+ "winit",
+]
+
[[package]]
name = "actix-codec"
version = "0.5.2"
@@ -354,6 +411,28 @@ version = "0.2.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
+[[package]]
+name = "alsa"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed7572b7ba83a31e20d1b48970ee402d2e3e0537dcfe0a3ff4d6eb7508617d43"
+dependencies = [
+ "alsa-sys",
+ "bitflags 2.11.0",
+ "cfg-if",
+ "libc",
+]
+
+[[package]]
+name = "alsa-sys"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "db8fee663d06c4e303404ef5f40488a53e062f89ba8bfed81f42325aafad1527"
+dependencies = [
+ "libc",
+ "pkg-config",
+]
+
[[package]]
name = "android-activity"
version = "0.6.1"
@@ -366,10 +445,11 @@ dependencies = [
"jni 0.22.4",
"libc",
"log",
- "ndk",
+ "ndk 0.9.0",
"ndk-context",
- "ndk-sys",
+ "ndk-sys 0.6.0+11769913",
"num_enum",
+ "simd_cesu8",
"thiserror 2.0.18",
]
@@ -379,6 +459,12 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04"
+[[package]]
+name = "android_log-sys"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "84521a3cf562bc62942e294181d9eef17eb38ceb8c68677bc49f144e4c3d4f8d"
+
[[package]]
name = "android_system_properties"
version = "0.1.5"
@@ -470,30 +556,19 @@ dependencies = [
]
[[package]]
-name = "arbitrary"
-version = "1.4.2"
+name = "approx"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
+checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"
+dependencies = [
+ "num-traits",
+]
[[package]]
-name = "arboard"
-version = "3.6.1"
+name = "arbitrary"
+version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0348a1c054491f4bfe6ab86a7b6ab1e44e45d899005de92f58b3df180b36ddaf"
-dependencies = [
- "clipboard-win",
- "image",
- "log",
- "objc2 0.6.4",
- "objc2-app-kit 0.3.2",
- "objc2-core-foundation",
- "objc2-core-graphics",
- "objc2-foundation 0.3.2",
- "parking_lot",
- "percent-encoding",
- "windows-sys 0.60.2",
- "x11rb",
-]
+checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
[[package]]
name = "arc-swap"
@@ -717,6 +792,12 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0f477b951e452a0b6b4a10b53ccd569042d1d01729b519e02074a9c0958a063"
+[[package]]
+name = "as-raw-xcb-connection"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b"
+
[[package]]
name = "as-slice"
version = "0.2.1"
@@ -726,6 +807,15 @@ dependencies = [
"stable_deref_trait",
]
+[[package]]
+name = "ash"
+version = "0.38.0+1.3.281"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f"
+dependencies = [
+ "libloading",
+]
+
[[package]]
name = "asn1-rs"
version = "0.7.1"
@@ -780,6 +870,17 @@ dependencies = [
"wait-timeout",
]
+[[package]]
+name = "assert_type_match"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f548ad2c4031f2902e3edc1f29c29e835829437de49562d8eb5dc5584d3a1043"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "astral-tokio-tar"
version = "0.6.0"
@@ -790,7 +891,7 @@ dependencies = [
"futures-core",
"libc",
"portable-atomic",
- "rustc-hash",
+ "rustc-hash 2.1.1",
"tokio",
"tokio-stream",
"xattr",
@@ -872,6 +973,49 @@ dependencies = [
"tokio",
]
+[[package]]
+name = "async-executor"
+version = "1.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a"
+dependencies = [
+ "async-task",
+ "concurrent-queue",
+ "fastrand",
+ "futures-lite",
+ "pin-project-lite",
+ "slab",
+]
+
+[[package]]
+name = "async-fs"
+version = "2.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8034a681df4aed8b8edbd7fbe472401ecf009251c8b40556b304567052e294c5"
+dependencies = [
+ "async-lock",
+ "blocking",
+ "futures-lite",
+]
+
+[[package]]
+name = "async-io"
+version = "2.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc"
+dependencies = [
+ "autocfg",
+ "cfg-if",
+ "concurrent-queue",
+ "futures-io",
+ "futures-lite",
+ "parking",
+ "polling",
+ "rustix 1.1.4",
+ "slab",
+ "windows-sys 0.61.2",
+]
+
[[package]]
name = "async-lock"
version = "3.4.2"
@@ -921,6 +1065,9 @@ name = "async-task"
version = "4.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
+dependencies = [
+ "portable-atomic",
+]
[[package]]
name = "async-trait"
@@ -980,6 +1127,19 @@ name = "atomic-waker"
version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
+dependencies = [
+ "portable-atomic",
+]
+
+[[package]]
+name = "atomicow"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f52e8890bb9844440d0c412fa74b67fd2f14e85248b6e00708059b6da9e5f8bf"
+dependencies = [
+ "portable-atomic",
+ "portable-atomic-util",
+]
[[package]]
name = "autocfg"
@@ -1276,105 +1436,1439 @@ dependencies = [
]
[[package]]
-name = "bigdecimal"
-version = "0.4.10"
+name = "bevy"
+version = "0.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4d6867f1565b3aad85681f1015055b087fcfd840d6aeee6eee7f2da317603695"
+checksum = "1fd310426290cec560221f9750c2f4484be4a8eeea7de3483c423329b465c40e"
dependencies = [
- "autocfg",
- "libm",
- "num-bigint",
- "num-integer",
- "num-traits",
- "serde",
+ "bevy_internal",
]
[[package]]
-name = "bimap"
-version = "0.6.3"
+name = "bevy_a11y"
+version = "0.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "230c5f1ca6a325a32553f8640d31ac9b49f2411e901e427570154868b46da4f7"
+checksum = "e887b25c84f384ffe3278a17cf0e4b405eaa3c8fbc3db24d05d560a11780676d"
+dependencies = [
+ "accesskit",
+ "bevy_app",
+ "bevy_derive",
+ "bevy_ecs",
+ "bevy_reflect",
+]
[[package]]
-name = "bincode"
-version = "1.3.3"
+name = "bevy_android"
+version = "0.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
+checksum = "a8c58de772ac1148884112e8a456c4f127a94b95a0e42ab5b160b7a11895a241"
dependencies = [
+ "android-activity",
+]
+
+[[package]]
+name = "bevy_animation"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "be5bf5b285f0d3fab983b4505e62e195e06930a29007ffc95bdabde834e163a2"
+dependencies = [
+ "bevy_animation_macros",
+ "bevy_app",
+ "bevy_asset",
+ "bevy_color",
+ "bevy_derive",
+ "bevy_ecs",
+ "bevy_math",
+ "bevy_mesh",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_time",
+ "bevy_transform",
+ "bevy_utils",
+ "blake3",
+ "derive_more",
+ "downcast-rs 2.0.2",
+ "either",
+ "petgraph",
+ "ron",
"serde",
+ "smallvec",
+ "thiserror 2.0.18",
+ "thread_local",
+ "tracing",
+ "uuid",
]
[[package]]
-name = "bindgen"
-version = "0.71.1"
+name = "bevy_animation_macros"
+version = "0.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f58bf3d7db68cfbac37cfc485a8d711e87e064c3d0fe0435b92f7a407f9d6b3"
+checksum = "7cf35516d0e7ac9ec25df533be1bf8cbaa20596a8e65f36838a3f7803a267d6d"
dependencies = [
- "bitflags 2.11.0",
- "cexpr",
- "clang-sys",
- "itertools 0.13.0",
- "log",
- "prettyplease",
- "proc-macro2",
+ "bevy_macro_utils",
"quote",
- "regex",
- "rustc-hash",
- "shlex",
"syn 2.0.117",
]
[[package]]
-name = "bit-set"
-version = "0.8.0"
+name = "bevy_anti_alias"
+version = "0.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
-dependencies = [
- "bit-vec 0.8.0",
+checksum = "726cc494eb7d6a84ce6291c23636fd451fa4846604dc059fa93febca4e60a928"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_core_pipeline",
+ "bevy_derive",
+ "bevy_diagnostic",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_math",
+ "bevy_reflect",
+ "bevy_render",
+ "bevy_shader",
+ "bevy_utils",
+ "tracing",
]
[[package]]
-name = "bit-set"
-version = "0.9.1"
+name = "bevy_app"
+version = "0.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34ddef2995421ab6a5c779542c81ee77c115206f4ad9d5a8e05f4ff49716a3dd"
+checksum = "def9f41aa5bf9b9dec8beda307a332798609cffb9d44f71005e0cfb45164f2f6"
dependencies = [
- "bit-vec 0.9.1",
+ "bevy_derive",
+ "bevy_ecs",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_tasks",
+ "bevy_utils",
+ "cfg-if",
+ "console_error_panic_hook",
+ "ctrlc",
+ "downcast-rs 2.0.2",
+ "log",
+ "thiserror 2.0.18",
+ "variadics_please",
+ "wasm-bindgen",
+ "web-sys",
]
[[package]]
-name = "bit-vec"
-version = "0.8.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
-
-[[package]]
-name = "bit-vec"
-version = "0.9.1"
+name = "bevy_asset"
+version = "0.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51"
+checksum = "29f86fed15972b9fb1a3f7b092cf0390e67131caaedab15a2707c043e3a3c886"
dependencies = [
+ "async-broadcast",
+ "async-channel",
+ "async-fs",
+ "async-io",
+ "async-lock",
+ "atomicow",
+ "bevy_android",
+ "bevy_app",
+ "bevy_asset_macros",
+ "bevy_diagnostic",
+ "bevy_ecs",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_tasks",
+ "bevy_utils",
+ "bitflags 2.11.0",
+ "blake3",
+ "crossbeam-channel",
+ "derive_more",
+ "disqualified",
+ "downcast-rs 2.0.2",
+ "either",
+ "futures-io",
+ "futures-lite",
+ "futures-util",
+ "js-sys",
+ "ron",
"serde",
+ "stackfuture",
+ "thiserror 2.0.18",
+ "tracing",
+ "uuid",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
]
[[package]]
-name = "bit_field"
-version = "0.10.3"
+name = "bevy_asset_macros"
+version = "0.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6"
+checksum = "12cb8d948365b06561b43b7d709282e62a6abb756baac5d8e295206d5e156168"
+dependencies = [
+ "bevy_macro_utils",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
[[package]]
-name = "bitflags"
-version = "1.3.2"
+name = "bevy_audio"
+version = "0.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+checksum = "9d68da32468ce7f4bb2863b71326acfaaa88e9aef8da8306257cd487d40cede4"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_ecs",
+ "bevy_math",
+ "bevy_reflect",
+ "bevy_transform",
+ "coreaudio-sys",
+ "cpal",
+ "rodio",
+ "tracing",
+]
[[package]]
-name = "bitflags"
-version = "2.11.0"
+name = "bevy_camera"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "37ed9eed054e14341852236d06a7244597b1ace39ff9ae023fbd188ffde88619"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_color",
+ "bevy_derive",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_math",
+ "bevy_mesh",
+ "bevy_reflect",
+ "bevy_transform",
+ "bevy_utils",
+ "bevy_window",
+ "derive_more",
+ "downcast-rs 2.0.2",
+ "serde",
+ "smallvec",
+ "thiserror 2.0.18",
+ "wgpu-types",
+]
+
+[[package]]
+name = "bevy_color"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2eb41e8310a85811d14a4e75cfc2d6c07ac70661d6a4883509fc960f622970a8"
+dependencies = [
+ "bevy_math",
+ "bevy_reflect",
+ "bytemuck",
+ "derive_more",
+ "encase",
+ "serde",
+ "thiserror 2.0.18",
+ "wgpu-types",
+]
+
+[[package]]
+name = "bevy_core_pipeline"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4d0810e85c2436e50c67448d48a83bf0bb1b5849899619ae2c7ea817221e9172"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_color",
+ "bevy_derive",
+ "bevy_diagnostic",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_math",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_render",
+ "bevy_shader",
+ "bevy_transform",
+ "bevy_utils",
+ "bevy_window",
+ "bitflags 2.11.0",
+ "nonmax",
+ "radsort",
+ "smallvec",
+ "thiserror 2.0.18",
+ "tracing",
+]
+
+[[package]]
+name = "bevy_derive"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "318ee0532c3da93749859d18f89a889c638fbc56aabac4d866583df7b951d103"
+dependencies = [
+ "bevy_macro_utils",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "bevy_dev_tools"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a4f1464a3f5ef5c23d917987714ee89881f9f791e9ff97ecf6600ee846b9569e"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_color",
+ "bevy_diagnostic",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_input",
+ "bevy_math",
+ "bevy_picking",
+ "bevy_reflect",
+ "bevy_render",
+ "bevy_shader",
+ "bevy_state",
+ "bevy_text",
+ "bevy_time",
+ "bevy_transform",
+ "bevy_ui",
+ "bevy_ui_render",
+ "bevy_window",
+ "tracing",
+]
+
+[[package]]
+name = "bevy_diagnostic"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec8543a0f7afd56d3499ba80ffab6ef0bad12f93c2d2ca9aa7b1f1b8816c3980"
+dependencies = [
+ "atomic-waker",
+ "bevy_app",
+ "bevy_ecs",
+ "bevy_platform",
+ "bevy_tasks",
+ "bevy_time",
+ "const-fnv1a-hash",
+ "log",
+ "serde",
+ "sysinfo 0.37.2",
+]
+
+[[package]]
+name = "bevy_ecs"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c9cf7a3ee41342dd7b5a5d82e200d0e8efb933169247fce853b4ad633d51e87d"
+dependencies = [
+ "arrayvec",
+ "bevy_ecs_macros",
+ "bevy_platform",
+ "bevy_ptr",
+ "bevy_reflect",
+ "bevy_tasks",
+ "bevy_utils",
+ "bitflags 2.11.0",
+ "bumpalo",
+ "concurrent-queue",
+ "derive_more",
+ "fixedbitset",
+ "indexmap 2.13.0",
+ "log",
+ "nonmax",
+ "serde",
+ "slotmap",
+ "smallvec",
+ "thiserror 2.0.18",
+ "variadics_please",
+]
+
+[[package]]
+name = "bevy_ecs_macros"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "908baf585e2ea16bd53ef0da57b69580478af0059d2dbdb4369991ac9794b618"
+dependencies = [
+ "bevy_macro_utils",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "bevy_encase_derive"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4fee46eeddcbc00a805ae00ffa973f224671fc5cf0fe1a796963804faeade90"
+dependencies = [
+ "bevy_macro_utils",
+ "encase_derive_impl",
+]
+
+[[package]]
+name = "bevy_feathers"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1cb29be8f8443c5cc44e1c4710bbe02877e73703c60228ca043f20529a5496c6"
+dependencies = [
+ "accesskit",
+ "bevy_a11y",
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_color",
+ "bevy_derive",
+ "bevy_ecs",
+ "bevy_input_focus",
+ "bevy_log",
+ "bevy_math",
+ "bevy_picking",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_render",
+ "bevy_shader",
+ "bevy_text",
+ "bevy_ui",
+ "bevy_ui_render",
+ "bevy_ui_widgets",
+ "bevy_window",
+ "smol_str",
+]
+
+[[package]]
+name = "bevy_gilrs"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "611827ab0ce43b88c0a695e6603901b5f34687efecaf526c861456c9d8e6fedb"
+dependencies = [
+ "bevy_app",
+ "bevy_ecs",
+ "bevy_input",
+ "bevy_platform",
+ "bevy_time",
+ "gilrs",
+ "thiserror 2.0.18",
+ "tracing",
+]
+
+[[package]]
+name = "bevy_gizmos"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6aaff0dd5f405c83d290c5cd591835f1ae8009894947ab19dadcb323062bd7e7"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_color",
+ "bevy_ecs",
+ "bevy_gizmos_macros",
+ "bevy_light",
+ "bevy_math",
+ "bevy_reflect",
+ "bevy_time",
+ "bevy_transform",
+ "bevy_utils",
+]
+
+[[package]]
+name = "bevy_gizmos_macros"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6960ea308d7e94adcac5c712553ff86614bba6b663511f3f3812f6bec028b51e"
+dependencies = [
+ "bevy_macro_utils",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "bevy_gizmos_render"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4a8d18c089102de4c5e9326023ad96ba618a6961029f8102a33640b966883237"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_core_pipeline",
+ "bevy_ecs",
+ "bevy_gizmos",
+ "bevy_image",
+ "bevy_math",
+ "bevy_mesh",
+ "bevy_pbr",
+ "bevy_render",
+ "bevy_shader",
+ "bevy_sprite_render",
+ "bevy_transform",
+ "bevy_utils",
+ "bytemuck",
+ "tracing",
+]
+
+[[package]]
+name = "bevy_gltf"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5f37fb52655d0439656ca0a1db027d46926e463c81d893d4b1639668e5d7f1c1"
+dependencies = [
+ "async-lock",
+ "base64 0.22.1",
+ "bevy_animation",
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_color",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_light",
+ "bevy_math",
+ "bevy_mesh",
+ "bevy_pbr",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_render",
+ "bevy_scene",
+ "bevy_tasks",
+ "bevy_transform",
+ "fixedbitset",
+ "gltf",
+ "itertools 0.14.0",
+ "percent-encoding",
+ "serde",
+ "serde_json",
+ "smallvec",
+ "thiserror 2.0.18",
+ "tracing",
+]
+
+[[package]]
+name = "bevy_image"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a71daf9b2afdd032c2b1122d1d501f99126218cb3e9983b3604ec381daa35f22"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_color",
+ "bevy_ecs",
+ "bevy_math",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_utils",
+ "bitflags 2.11.0",
+ "bytemuck",
+ "futures-lite",
+ "guillotiere",
+ "half",
+ "image",
+ "ktx2",
+ "rectangle-pack",
+ "ruzstd",
+ "serde",
+ "thiserror 2.0.18",
+ "tracing",
+ "wgpu-types",
+]
+
+[[package]]
+name = "bevy_input"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dbc8ffbd02df34dfc52faf420a5263985973765e228043adf542fd0d790a6b21"
+dependencies = [
+ "bevy_app",
+ "bevy_ecs",
+ "bevy_math",
+ "bevy_platform",
+ "bevy_reflect",
+ "derive_more",
+ "log",
+ "smol_str",
+ "thiserror 2.0.18",
+]
+
+[[package]]
+name = "bevy_input_focus"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "08d48a5bceccb9157549a39ab3de4017f5368b65db6471605e9a3f1c19d91bbc"
+dependencies = [
+ "bevy_app",
+ "bevy_ecs",
+ "bevy_input",
+ "bevy_math",
+ "bevy_picking",
+ "bevy_reflect",
+ "bevy_window",
+ "log",
+ "thiserror 2.0.18",
+]
+
+[[package]]
+name = "bevy_internal"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6a11df62e49897def470471551c02f13c6fb488e55dddb5ab7ef098132e07754"
+dependencies = [
+ "bevy_a11y",
+ "bevy_android",
+ "bevy_animation",
+ "bevy_anti_alias",
+ "bevy_app",
+ "bevy_asset",
+ "bevy_audio",
+ "bevy_camera",
+ "bevy_color",
+ "bevy_core_pipeline",
+ "bevy_derive",
+ "bevy_dev_tools",
+ "bevy_diagnostic",
+ "bevy_ecs",
+ "bevy_feathers",
+ "bevy_gilrs",
+ "bevy_gizmos",
+ "bevy_gizmos_render",
+ "bevy_gltf",
+ "bevy_image",
+ "bevy_input",
+ "bevy_input_focus",
+ "bevy_light",
+ "bevy_log",
+ "bevy_math",
+ "bevy_mesh",
+ "bevy_pbr",
+ "bevy_picking",
+ "bevy_platform",
+ "bevy_post_process",
+ "bevy_ptr",
+ "bevy_reflect",
+ "bevy_render",
+ "bevy_scene",
+ "bevy_shader",
+ "bevy_sprite",
+ "bevy_sprite_render",
+ "bevy_state",
+ "bevy_tasks",
+ "bevy_text",
+ "bevy_time",
+ "bevy_transform",
+ "bevy_ui",
+ "bevy_ui_render",
+ "bevy_utils",
+ "bevy_window",
+ "bevy_winit",
+]
+
+[[package]]
+name = "bevy_light"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4d9d2ac64390a9baacb3c0fa0f5456ac1553959d5a387874c102a09aab8b92cc"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_color",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_math",
+ "bevy_mesh",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_transform",
+ "bevy_utils",
+ "tracing",
+]
+
+[[package]]
+name = "bevy_log"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2aac1187f83a1ab2eae887564f7fb14b4abb3fbe8b2267a6426663463923120"
+dependencies = [
+ "android_log-sys",
+ "bevy_app",
+ "bevy_ecs",
+ "bevy_platform",
+ "bevy_utils",
+ "tracing",
+ "tracing-log",
+ "tracing-oslog",
+ "tracing-subscriber",
+ "tracing-wasm",
+]
+
+[[package]]
+name = "bevy_macro_utils"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b147843b81a7ec548876ff97fa7bfdc646ef2567cb465566259237b39664438"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+ "toml_edit 0.23.10+spec-1.0.0",
+]
+
+[[package]]
+name = "bevy_math"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e931fa969f89c83498b22c97432383afe90e90fd1a5e04fa07be8da4d3bcac84"
+dependencies = [
+ "approx",
+ "arrayvec",
+ "bevy_reflect",
+ "derive_more",
+ "glam",
+ "itertools 0.14.0",
+ "libm",
+ "rand 0.9.2",
+ "rand_distr",
+ "serde",
+ "thiserror 2.0.18",
+ "variadics_please",
+]
+
+[[package]]
+name = "bevy_mesh"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "288f590c8173d4cca3cae5f2ba579accd5ed1a35dd3fab338f427eb39d55f05e"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_derive",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_math",
+ "bevy_mikktspace",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_transform",
+ "bitflags 2.11.0",
+ "bytemuck",
+ "derive_more",
+ "hexasphere",
+ "thiserror 2.0.18",
+ "tracing",
+ "wgpu-types",
+]
+
+[[package]]
+name = "bevy_mikktspace"
+version = "0.17.0-dev"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7ef8e4b7e61dfe7719bb03c884dc270cd46a82efb40f93e9933b990c5c190c59"
+
+[[package]]
+name = "bevy_pbr"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a5ab6944ffc6fd71604c0fbca68cc3e2a3654edfcdbfd232f9d8b88e3d20fdc0"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_color",
+ "bevy_core_pipeline",
+ "bevy_derive",
+ "bevy_diagnostic",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_light",
+ "bevy_log",
+ "bevy_math",
+ "bevy_mesh",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_render",
+ "bevy_shader",
+ "bevy_transform",
+ "bevy_utils",
+ "bitflags 2.11.0",
+ "bytemuck",
+ "derive_more",
+ "fixedbitset",
+ "nonmax",
+ "offset-allocator",
+ "smallvec",
+ "static_assertions",
+ "thiserror 2.0.18",
+ "tracing",
+]
+
+[[package]]
+name = "bevy_picking"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b7d524dbc8f2c9e73f7ab70c148c8f7886f3c24b8aa8c252a38ba68ed06cbf10"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_derive",
+ "bevy_ecs",
+ "bevy_input",
+ "bevy_math",
+ "bevy_mesh",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_time",
+ "bevy_transform",
+ "bevy_window",
+ "crossbeam-channel",
+ "tracing",
+ "uuid",
+]
+
+[[package]]
+name = "bevy_platform"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec6b36504169b644acd26a5469fd8d371aa6f1d73ee5c01b1b1181ae1cefbf9b"
+dependencies = [
+ "critical-section",
+ "foldhash 0.2.0",
+ "futures-channel",
+ "hashbrown 0.16.1",
+ "js-sys",
+ "portable-atomic",
+ "portable-atomic-util",
+ "serde",
+ "spin 0.10.0",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-time",
+]
+
+[[package]]
+name = "bevy_post_process"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f77a4e894aea992e3d6938f1d5898a1cdbb87dba6eebfb95cb4038d0a2600e9"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_color",
+ "bevy_core_pipeline",
+ "bevy_derive",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_math",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_render",
+ "bevy_shader",
+ "bevy_transform",
+ "bevy_utils",
+ "bevy_window",
+ "bitflags 2.11.0",
+ "nonmax",
+ "radsort",
+ "smallvec",
+ "thiserror 2.0.18",
+ "tracing",
+]
+
+[[package]]
+name = "bevy_prototype_lyon"
+version = "0.16.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4c172d3d743eab7ca2b50844e5a0bd9e8b0ecaace8acd9ccc7233b30446425f1"
+dependencies = [
+ "bevy",
+ "lyon_algorithms",
+ "lyon_tessellation",
+ "svgtypes",
+]
+
+[[package]]
+name = "bevy_ptr"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c7a9329e8dc4e01ced480eeec4902e6d7cb56e56ec37f6fbc4323e5c937290a7"
+
+[[package]]
+name = "bevy_reflect"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d1dfeb67a9fe4f59003a84f5f99ba6302141c70e926601cbc6abfd4a1eea9ca9"
+dependencies = [
+ "assert_type_match",
+ "bevy_platform",
+ "bevy_ptr",
+ "bevy_reflect_derive",
+ "bevy_utils",
+ "derive_more",
+ "disqualified",
+ "downcast-rs 2.0.2",
+ "erased-serde",
+ "foldhash 0.2.0",
+ "glam",
+ "indexmap 2.13.0",
+ "inventory",
+ "petgraph",
+ "serde",
+ "smallvec",
+ "smol_str",
+ "thiserror 2.0.18",
+ "uuid",
+ "variadics_please",
+ "wgpu-types",
+]
+
+[[package]]
+name = "bevy_reflect_derive"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "475f68c93e9cd5f17e9167635c8533a4f388f12d38245a202359e4c2721d87ba"
+dependencies = [
+ "bevy_macro_utils",
+ "indexmap 2.13.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+ "uuid",
+]
+
+[[package]]
+name = "bevy_render"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "243523e33fe5dfcebc4240b1eb2fc16e855c5d4c0ea6a8393910740956770f44"
+dependencies = [
+ "async-channel",
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_color",
+ "bevy_derive",
+ "bevy_diagnostic",
+ "bevy_ecs",
+ "bevy_encase_derive",
+ "bevy_image",
+ "bevy_math",
+ "bevy_mesh",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_render_macros",
+ "bevy_shader",
+ "bevy_tasks",
+ "bevy_time",
+ "bevy_transform",
+ "bevy_utils",
+ "bevy_window",
+ "bitflags 2.11.0",
+ "bytemuck",
+ "derive_more",
+ "downcast-rs 2.0.2",
+ "encase",
+ "fixedbitset",
+ "glam",
+ "image",
+ "indexmap 2.13.0",
+ "js-sys",
+ "naga",
+ "nonmax",
+ "offset-allocator",
+ "send_wrapper",
+ "smallvec",
+ "thiserror 2.0.18",
+ "tracing",
+ "variadics_please",
+ "wasm-bindgen",
+ "web-sys",
+ "wgpu",
+]
+
+[[package]]
+name = "bevy_render_macros"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "66b6325e9c495a71270446784611e8d7f446f927eac8506c4c099fd10cb4c3ed"
+dependencies = [
+ "bevy_macro_utils",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "bevy_scene"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34cc1047d85ec8048261b63ef675c12f1e6b5782dc0b422fbcee0c140d026bd4"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_derive",
+ "bevy_ecs",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_transform",
+ "bevy_utils",
+ "derive_more",
+ "ron",
+ "serde",
+ "thiserror 2.0.18",
+ "uuid",
+]
+
+[[package]]
+name = "bevy_shader"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9eea95f0273c32be13d6a0b799a93bc256ad7830759ede595c404d5234302da2"
+dependencies = [
+ "bevy_asset",
+ "bevy_platform",
+ "bevy_reflect",
+ "naga",
+ "naga_oil",
+ "serde",
+ "thiserror 2.0.18",
+ "tracing",
+ "wgpu-types",
+]
+
+[[package]]
+name = "bevy_sprite"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "96ec5bc0cbdee551b610a46f41d30374bbe42b8951ffc676253c6243ab2b9395"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_color",
+ "bevy_derive",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_math",
+ "bevy_mesh",
+ "bevy_picking",
+ "bevy_reflect",
+ "bevy_text",
+ "bevy_transform",
+ "bevy_window",
+ "radsort",
+ "tracing",
+ "wgpu-types",
+]
+
+[[package]]
+name = "bevy_sprite_render"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b82cb08905e7ddcea2694a95f757ae7f1fd01e6a7304076bad595d2158e4bfe0"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_color",
+ "bevy_core_pipeline",
+ "bevy_derive",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_math",
+ "bevy_mesh",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_render",
+ "bevy_shader",
+ "bevy_sprite",
+ "bevy_text",
+ "bevy_transform",
+ "bevy_utils",
+ "bitflags 2.11.0",
+ "bytemuck",
+ "derive_more",
+ "fixedbitset",
+ "nonmax",
+ "tracing",
+]
+
+[[package]]
+name = "bevy_state"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ae0682968e97d29c1eccc8c6bb6283f2678d362779bc03f1bb990967059473b"
+dependencies = [
+ "bevy_app",
+ "bevy_ecs",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_state_macros",
+ "bevy_utils",
+ "log",
+ "variadics_please",
+]
+
+[[package]]
+name = "bevy_state_macros"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73d32f90f9cfcef5a44401db7ce206770daaa1707b0fb95eb7a96a6933f54f1b"
+dependencies = [
+ "bevy_macro_utils",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "bevy_tasks"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "384eb04d80aa38664d69988fd30cbbe03e937ecb65c66aa6abe60ce0bca826aa"
+dependencies = [
+ "async-channel",
+ "async-executor",
+ "async-task",
+ "atomic-waker",
+ "bevy_platform",
+ "concurrent-queue",
+ "crossbeam-queue",
+ "derive_more",
+ "futures-lite",
+ "heapless 0.9.2",
+ "pin-project",
+]
+
+[[package]]
+name = "bevy_text"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fdc5233291dfc22e584de2535f2e37ae9766d37cb5a01652de2133ba202dcb9b"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_color",
+ "bevy_derive",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_log",
+ "bevy_math",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_utils",
+ "cosmic-text",
+ "serde",
+ "smallvec",
+ "sys-locale",
+ "thiserror 2.0.18",
+ "tracing",
+ "wgpu-types",
+]
+
+[[package]]
+name = "bevy_time"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b5ef9af4e523195e561074cf60fbfad0f4cb8d1db504855fee3c4ce8896c7244"
+dependencies = [
+ "bevy_app",
+ "bevy_ecs",
+ "bevy_platform",
+ "bevy_reflect",
+ "crossbeam-channel",
+ "log",
+ "serde",
+]
+
+[[package]]
+name = "bevy_transform"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3c3bb3de7842fef699344beb03f22bdbff16599d788fe0f47fbb3b1e6fa320eb"
+dependencies = [
+ "bevy_app",
+ "bevy_ecs",
+ "bevy_log",
+ "bevy_math",
+ "bevy_reflect",
+ "bevy_tasks",
+ "bevy_utils",
+ "derive_more",
+ "serde",
+ "thiserror 2.0.18",
+]
+
+[[package]]
+name = "bevy_ui"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1691a411014085e0d35f8bb8208e5f973edd7ace061a4b1c41c83de21579dc70"
+dependencies = [
+ "accesskit",
+ "bevy_a11y",
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_color",
+ "bevy_derive",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_input",
+ "bevy_input_focus",
+ "bevy_math",
+ "bevy_picking",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_sprite",
+ "bevy_text",
+ "bevy_transform",
+ "bevy_utils",
+ "bevy_window",
+ "derive_more",
+ "smallvec",
+ "taffy",
+ "thiserror 2.0.18",
+ "tracing",
+ "uuid",
+]
+
+[[package]]
+name = "bevy_ui_render"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2c35402d8a052f512e3fec1f36b26e83eee713fcca57f965c244ee795e1fcb0"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_camera",
+ "bevy_color",
+ "bevy_core_pipeline",
+ "bevy_derive",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_math",
+ "bevy_mesh",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_render",
+ "bevy_shader",
+ "bevy_sprite",
+ "bevy_sprite_render",
+ "bevy_text",
+ "bevy_transform",
+ "bevy_ui",
+ "bevy_utils",
+ "bytemuck",
+ "derive_more",
+ "tracing",
+]
+
+[[package]]
+name = "bevy_ui_widgets"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6a63cb818b0de41bdb14990e0ce1aaaa347f871750ab280f80c427e83d72712"
+dependencies = [
+ "accesskit",
+ "bevy_a11y",
+ "bevy_app",
+ "bevy_camera",
+ "bevy_ecs",
+ "bevy_input",
+ "bevy_input_focus",
+ "bevy_log",
+ "bevy_math",
+ "bevy_picking",
+ "bevy_reflect",
+ "bevy_ui",
+]
+
+[[package]]
+name = "bevy_utils"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2111910cd7a4b1e6ce07eaaeb6f68a2c0ea0ca609ed0d0d506e3eb161101435b"
+dependencies = [
+ "bevy_platform",
+ "disqualified",
+ "thread_local",
+]
+
+[[package]]
+name = "bevy_window"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6df06e6993a0896bae2fe7644ae6def29a1a92b45dfb1bcebbd92af782be3638"
+dependencies = [
+ "bevy_app",
+ "bevy_asset",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_input",
+ "bevy_math",
+ "bevy_platform",
+ "bevy_reflect",
+ "log",
+ "raw-window-handle",
+ "serde",
+]
+
+[[package]]
+name = "bevy_winit"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2de1c13d32ab8528435b58eca7ab874a1068184c6d6f266ee11433ae99d4069"
+dependencies = [
+ "accesskit",
+ "accesskit_winit",
+ "approx",
+ "bevy_a11y",
+ "bevy_android",
+ "bevy_app",
+ "bevy_asset",
+ "bevy_derive",
+ "bevy_ecs",
+ "bevy_image",
+ "bevy_input",
+ "bevy_input_focus",
+ "bevy_log",
+ "bevy_math",
+ "bevy_platform",
+ "bevy_reflect",
+ "bevy_tasks",
+ "bevy_window",
+ "bytemuck",
+ "cfg-if",
+ "js-sys",
+ "tracing",
+ "wasm-bindgen",
+ "web-sys",
+ "wgpu-types",
+ "winit",
+]
+
+[[package]]
+name = "bigdecimal"
+version = "0.4.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4d6867f1565b3aad85681f1015055b087fcfd840d6aeee6eee7f2da317603695"
+dependencies = [
+ "autocfg",
+ "libm",
+ "num-bigint",
+ "num-integer",
+ "num-traits",
+ "serde",
+]
+
+[[package]]
+name = "bimap"
+version = "0.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "230c5f1ca6a325a32553f8640d31ac9b49f2411e901e427570154868b46da4f7"
+
+[[package]]
+name = "bincode"
+version = "1.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "bindgen"
+version = "0.71.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5f58bf3d7db68cfbac37cfc485a8d711e87e064c3d0fe0435b92f7a407f9d6b3"
+dependencies = [
+ "bitflags 2.11.0",
+ "cexpr",
+ "clang-sys",
+ "itertools 0.13.0",
+ "log",
+ "prettyplease",
+ "proc-macro2",
+ "quote",
+ "regex",
+ "rustc-hash 2.1.1",
+ "shlex",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "bindgen"
+version = "0.72.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
+dependencies = [
+ "bitflags 2.11.0",
+ "cexpr",
+ "clang-sys",
+ "itertools 0.13.0",
+ "proc-macro2",
+ "quote",
+ "regex",
+ "rustc-hash 2.1.1",
+ "shlex",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "bit-set"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
+dependencies = [
+ "bit-vec 0.8.0",
+]
+
+[[package]]
+name = "bit-set"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34ddef2995421ab6a5c779542c81ee77c115206f4ad9d5a8e05f4ff49716a3dd"
+dependencies = [
+ "bit-vec 0.9.1",
+]
+
+[[package]]
+name = "bit-vec"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
+
+[[package]]
+name = "bit-vec"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "bit_field"
+version = "0.10.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6"
+
+[[package]]
+name = "bitflags"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+
+[[package]]
+name = "bitflags"
+version = "2.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af"
dependencies = [
+ "bytemuck",
"serde_core",
]
@@ -1422,6 +2916,12 @@ dependencies = [
"cpufeatures 0.2.17",
]
+[[package]]
+name = "block"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"
+
[[package]]
name = "block-buffer"
version = "0.10.4"
@@ -1449,6 +2949,19 @@ dependencies = [
"objc2 0.6.4",
]
+[[package]]
+name = "blocking"
+version = "1.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e83f8d02be6967315521be875afa792a316e28d57b5a2d401897e2a7921b7f21"
+dependencies = [
+ "async-channel",
+ "async-task",
+ "futures-io",
+ "futures-lite",
+ "piper",
+]
+
[[package]]
name = "bnum"
version = "0.12.1"
@@ -1759,27 +3272,14 @@ dependencies = [
"thiserror 1.0.69",
]
-[[package]]
-name = "calloop"
-version = "0.14.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4dbf9978365bac10f54d1d4b04f7ce4427e51f71d61f2fe15e3fed5166474df7"
-dependencies = [
- "bitflags 2.11.0",
- "polling",
- "rustix 1.1.4",
- "slab",
- "tracing",
-]
-
[[package]]
name = "calloop-wayland-source"
-version = "0.4.1"
+version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "138efcf0940a02ebf0cc8d1eff41a1682a46b431630f4c52450d6265876021fa"
+checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20"
dependencies = [
- "calloop 0.14.4",
- "rustix 1.1.4",
+ "calloop",
+ "rustix 0.38.44",
"wayland-backend",
"wayland-client",
]
@@ -1876,15 +3376,6 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
-[[package]]
-name = "cgl"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ced0551234e87afee12411d535648dd89d2e7f34c78b753395567aff3d447ff"
-dependencies = [
- "libc",
-]
-
[[package]]
name = "chacha20"
version = "0.10.0"
@@ -2013,15 +3504,6 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
-[[package]]
-name = "clipboard-win"
-version = "5.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bde03770d3df201d4fb868f2c9c59e66a3e4e2bd06692a0fe701e7103c7e84d4"
-dependencies = [
- "error-code",
-]
-
[[package]]
name = "clock"
version = "0.1.0"
@@ -2047,6 +3529,17 @@ dependencies = [
"thiserror 2.0.18",
]
+[[package]]
+name = "codespan-reporting"
+version = "0.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fe6d2e5af09e8c8ad56c969f2157a3d4238cebc7c55f0a517728c38f7b200f81"
+dependencies = [
+ "serde",
+ "termcolor",
+ "unicode-width 0.2.2",
+]
+
[[package]]
name = "color_quant"
version = "1.1.0"
@@ -2234,7 +3727,7 @@ dependencies = [
"futures-util",
"libc",
"quinn-proto",
- "rustc-hash",
+ "rustc-hash 2.1.1",
"rustls",
"synchrony",
"thiserror 2.0.18",
@@ -2319,6 +3812,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"
dependencies = [
"crossbeam-utils",
+ "portable-atomic",
]
[[package]]
@@ -2389,6 +3883,12 @@ dependencies = [
"wasm-bindgen",
]
+[[package]]
+name = "const-fnv1a-hash"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32b13ea120a812beba79e34316b3942a857c86ec1593cb34f27bb28272ce2cca"
+
[[package]]
name = "const-oid"
version = "0.9.6"
@@ -2415,12 +3915,36 @@ dependencies = [
"tiny-keccak",
]
+[[package]]
+name = "const_panic"
+version = "0.2.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e262cdaac42494e3ae34c43969f9cdeb7da178bdb4b66fa6a1ea2edb4c8ae652"
+dependencies = [
+ "typewit",
+]
+
+[[package]]
+name = "const_soft_float"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "87ca1caa64ef4ed453e68bb3db612e51cf1b2f5b871337f0fcab1c8f87cc3dff"
+
[[package]]
name = "constant_time_eq"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b"
+[[package]]
+name = "constgebra"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e1aaf9b65849a68662ac6c0810c8893a765c960b907dd7cfab9c4a50bf764fbc"
+dependencies = [
+ "const_soft_float",
+]
+
[[package]]
name = "convert_case"
version = "0.6.0"
@@ -2490,7 +4014,7 @@ checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081"
dependencies = [
"bitflags 1.3.2",
"core-foundation 0.9.4",
- "core-graphics-types",
+ "core-graphics-types 0.1.3",
"foreign-types 0.5.0",
"libc",
]
@@ -2506,6 +4030,17 @@ dependencies = [
"libc",
]
+[[package]]
+name = "core-graphics-types"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"
+dependencies = [
+ "bitflags 2.11.0",
+ "core-foundation 0.10.1",
+ "libc",
+]
+
[[package]]
name = "core2"
version = "0.4.0"
@@ -2535,6 +4070,73 @@ dependencies = [
"libm",
]
+[[package]]
+name = "coreaudio-rs"
+version = "0.11.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "321077172d79c662f64f5071a03120748d5bb652f5231570141be24cfcd2bace"
+dependencies = [
+ "bitflags 1.3.2",
+ "core-foundation-sys",
+ "coreaudio-sys",
+]
+
+[[package]]
+name = "coreaudio-sys"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ceec7a6067e62d6f931a2baf6f3a751f4a892595bcec1461a3c94ef9949864b6"
+dependencies = [
+ "bindgen 0.72.1",
+]
+
+[[package]]
+name = "cosmic-text"
+version = "0.16.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4cadaea21e24c49c0c82116f2b465ae6a49d63c90e428b0f8d9ae1f638ac91f"
+dependencies = [
+ "bitflags 2.11.0",
+ "fontdb",
+ "harfrust",
+ "linebender_resource_handle",
+ "log",
+ "rangemap",
+ "rustc-hash 1.1.0",
+ "self_cell",
+ "skrifa 0.39.0",
+ "smol_str",
+ "swash",
+ "sys-locale",
+ "unicode-bidi",
+ "unicode-linebreak",
+ "unicode-script",
+ "unicode-segmentation",
+]
+
+[[package]]
+name = "cpal"
+version = "0.15.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "873dab07c8f743075e57f524c583985fbaf745602acbe916a01539364369a779"
+dependencies = [
+ "alsa",
+ "core-foundation-sys",
+ "coreaudio-rs",
+ "dasp_sample",
+ "jni 0.21.1",
+ "js-sys",
+ "libc",
+ "mach2",
+ "ndk 0.8.0",
+ "ndk-context",
+ "oboe",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+ "windows 0.54.0",
+]
+
[[package]]
name = "cpufeatures"
version = "0.2.17"
@@ -2765,7 +4367,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0b1fab2ae45819af2d0731d60f2afe17227ebb1a1538a236da84c93e9a60162"
dependencies = [
"dispatch2",
- "nix",
+ "nix 0.31.2",
"windows-sys 0.61.2",
]
@@ -3036,6 +4638,12 @@ dependencies = [
"parking_lot_core",
]
+[[package]]
+name = "dasp_sample"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c87e182de0887fd5361989c677c4e8f5000cd9491d6d563161a8f3a5519fc7f"
+
[[package]]
name = "data-encoding"
version = "2.10.0"
@@ -3391,6 +4999,12 @@ dependencies = [
"syn 2.0.117",
]
+[[package]]
+name = "disqualified"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c9c272297e804878a2a4b707cfcfc6d2328b5bb936944613b4fdf2b9269afdfd"
+
[[package]]
name = "dissimilar"
version = "1.0.11"
@@ -3476,6 +5090,12 @@ version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2"
+[[package]]
+name = "downcast-rs"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "117240f60069e65410b3ae1bb213295bd828f707b5bec6596a1afc8793ce0cbc"
+
[[package]]
name = "dpi"
version = "0.1.2"
@@ -3498,155 +5118,59 @@ dependencies = [
]
[[package]]
-name = "dtor-proc-macro"
-version = "0.0.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5"
-
-[[package]]
-name = "dunce"
-version = "1.0.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
-
-[[package]]
-name = "dyn-clone"
-version = "1.0.20"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
-
-[[package]]
-name = "ecdsa"
-version = "0.16.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca"
-dependencies = [
- "der",
- "digest",
- "elliptic-curve",
- "rfc6979",
- "signature",
- "spki",
-]
-
-[[package]]
-name = "ecolor"
-version = "0.31.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bc4feb366740ded31a004a0e4452fbf84e80ef432ecf8314c485210229672fd1"
-dependencies = [
- "bytemuck",
- "emath",
-]
-
-[[package]]
-name = "ed25519"
-version = "2.2.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53"
-dependencies = [
- "pkcs8",
- "signature",
-]
-
-[[package]]
-name = "ed25519-dalek"
-version = "2.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9"
-dependencies = [
- "curve25519-dalek",
- "ed25519",
- "serde",
- "sha2",
- "subtle",
- "zeroize",
-]
-
-[[package]]
-name = "eframe"
-version = "0.31.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d0dfe0859f3fb1bc6424c57d41e10e9093fe938f426b691e42272c2f336d915c"
-dependencies = [
- "ahash 0.8.12",
- "bytemuck",
- "document-features",
- "egui",
- "egui-winit",
- "egui_glow",
- "glow",
- "glutin",
- "glutin-winit",
- "image",
- "js-sys",
- "log",
- "objc2 0.5.2",
- "objc2-app-kit 0.2.2",
- "objc2-foundation 0.2.2",
- "parking_lot",
- "percent-encoding",
- "profiling",
- "raw-window-handle",
- "static_assertions",
- "wasm-bindgen",
- "wasm-bindgen-futures",
- "web-sys",
- "web-time",
- "winapi",
- "windows-sys 0.59.0",
- "winit",
-]
+name = "dtor-proc-macro"
+version = "0.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5"
[[package]]
-name = "egui"
-version = "0.31.1"
+name = "dunce"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
+
+[[package]]
+name = "dyn-clone"
+version = "1.0.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
+
+[[package]]
+name = "ecdsa"
+version = "0.16.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "25dd34cec49ab55d85ebf70139cb1ccd29c977ef6b6ba4fe85489d6877ee9ef3"
+checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca"
dependencies = [
- "ahash 0.8.12",
- "bitflags 2.11.0",
- "emath",
- "epaint",
- "log",
- "nohash-hasher",
- "profiling",
+ "der",
+ "digest",
+ "elliptic-curve",
+ "rfc6979",
+ "signature",
+ "spki",
]
[[package]]
-name = "egui-winit"
-version = "0.31.1"
+name = "ed25519"
+version = "2.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7d9dfbb78fe4eb9c3a39ad528b90ee5915c252e77bbab9d4ebc576541ab67e13"
+checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53"
dependencies = [
- "ahash 0.8.12",
- "arboard",
- "bytemuck",
- "egui",
- "log",
- "profiling",
- "raw-window-handle",
- "smithay-clipboard",
- "web-time",
- "webbrowser",
- "winit",
+ "pkcs8",
+ "signature",
]
[[package]]
-name = "egui_glow"
-version = "0.31.1"
+name = "ed25519-dalek"
+version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "910906e3f042ea6d2378ec12a6fd07698e14ddae68aed2d819ffe944a73aab9e"
+checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9"
dependencies = [
- "ahash 0.8.12",
- "bytemuck",
- "egui",
- "glow",
- "log",
- "memoffset",
- "profiling",
- "wasm-bindgen",
- "web-sys",
+ "curve25519-dalek",
+ "ed25519",
+ "serde",
+ "sha2",
+ "subtle",
+ "zeroize",
]
[[package]]
@@ -3702,15 +5226,6 @@ dependencies = [
"zeroize",
]
-[[package]]
-name = "emath"
-version = "0.31.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9e4cadcff7a5353ba72b7fea76bf2122b5ebdbc68e8155aa56dfdea90083fe1b"
-dependencies = [
- "bytemuck",
-]
-
[[package]]
name = "embedded-io"
version = "0.4.0"
@@ -3723,6 +5238,37 @@ version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edd0f118536f44f5ccd48bcb8b111bdc3de888b58c74639dfb034a357d0f206d"
+[[package]]
+name = "encase"
+version = "0.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e3e0ff2ee0b7aa97428308dd9e1e42369cb22f5fb8dc1c55546637443a60f1e"
+dependencies = [
+ "const_panic",
+ "encase_derive",
+ "thiserror 2.0.18",
+]
+
+[[package]]
+name = "encase_derive"
+version = "0.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a4d90c5d7d527c6cb8a3b114efd26a6304d9ab772656e73d8f4e32b1f3d601a2"
+dependencies = [
+ "encase_derive_impl",
+]
+
+[[package]]
+name = "encase_derive_impl"
+version = "0.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c8bad72d8308f7a382de2391ec978ddd736e0103846b965d7e2a63a75768af30"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "encode_unicode"
version = "1.0.0"
@@ -3771,53 +5317,6 @@ dependencies = [
"syn 2.0.117",
]
-[[package]]
-name = "env_filter"
-version = "1.0.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32e90c2accc4b07a8456ea0debdc2e7587bdd890680d71173a15d4ae604f6eef"
-dependencies = [
- "log",
- "regex",
-]
-
-[[package]]
-name = "env_logger"
-version = "0.11.10"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0621c04f2196ac3f488dd583365b9c09be011a4ab8b9f37248ffcc8f6198b56a"
-dependencies = [
- "anstream",
- "anstyle",
- "env_filter",
- "jiff",
- "log",
-]
-
-[[package]]
-name = "epaint"
-version = "0.31.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41fcc0f5a7c613afd2dee5e4b30c3e6acafb8ad6f0edb06068811f708a67c562"
-dependencies = [
- "ab_glyph",
- "ahash 0.8.12",
- "bytemuck",
- "ecolor",
- "emath",
- "epaint_default_fonts",
- "log",
- "nohash-hasher",
- "parking_lot",
- "profiling",
-]
-
-[[package]]
-name = "epaint_default_fonts"
-version = "0.31.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc7e7a64c02cf7a5b51e745a9e45f60660a286f151c238b9d397b3e923f5082f"
-
[[package]]
name = "equator"
version = "0.4.2"
@@ -3874,12 +5373,6 @@ dependencies = [
"windows-sys 0.61.2",
]
-[[package]]
-name = "error-code"
-version = "3.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dea2df4cf52843e0452895c455a1a2cfbb842a1e7329671acf418fdc53ed4c59"
-
[[package]]
name = "error_set"
version = "0.9.1"
@@ -4144,6 +5637,12 @@ version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
+[[package]]
+name = "fixedbitset"
+version = "0.5.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99"
+
[[package]]
name = "flatbuffers"
version = "25.12.19"
@@ -4180,6 +5679,12 @@ dependencies = [
"num-traits",
]
+[[package]]
+name = "float_next_after"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8bf7cc16383c4b8d58b9905a8509f02926ce3058053c056376248d958c9df1e8"
+
[[package]]
name = "flume"
version = "0.11.1"
@@ -4188,7 +5693,7 @@ checksum = "da0e4dd2a88388a1f4ccc7c9ce104604dab68d9f408dc34cd45823d5a9069095"
dependencies = [
"futures-core",
"futures-sink",
- "spin",
+ "spin 0.9.8",
]
[[package]]
@@ -4200,7 +5705,7 @@ dependencies = [
"fastrand",
"futures-core",
"futures-sink",
- "spin",
+ "spin 0.9.8",
]
[[package]]
@@ -4221,6 +5726,24 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
+[[package]]
+name = "font-types"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "39a654f404bbcbd48ea58c617c2993ee91d1cb63727a37bf2323a4edeed1b8c5"
+dependencies = [
+ "bytemuck",
+]
+
+[[package]]
+name = "font-types"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73829a7b5c91198af28a99159b7ae4afbb252fb906159ff7f189f3a2ceaa3df2"
+dependencies = [
+ "bytemuck",
+]
+
[[package]]
name = "fontconfig-parser"
version = "0.5.8"
@@ -4607,6 +6130,40 @@ dependencies = [
"weezl",
]
+[[package]]
+name = "gilrs"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3fa85c2e35dc565c90511917897ea4eae16b77f2773d5223536f7b602536d462"
+dependencies = [
+ "fnv",
+ "gilrs-core",
+ "log",
+ "uuid",
+ "vec_map",
+]
+
+[[package]]
+name = "gilrs-core"
+version = "0.6.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d23f2cc5144060a7f8d9e02d3fce5d06705376568256a509cdbc3c24d47e4f04"
+dependencies = [
+ "inotify",
+ "js-sys",
+ "libc",
+ "libudev-sys",
+ "log",
+ "nix 0.30.1",
+ "objc2-core-foundation",
+ "objc2-io-kit",
+ "uuid",
+ "vec_map",
+ "wasm-bindgen",
+ "web-sys",
+ "windows 0.62.2",
+]
+
[[package]]
name = "git2"
version = "0.20.4"
@@ -4631,6 +6188,19 @@ dependencies = [
"xml-rs",
]
+[[package]]
+name = "glam"
+version = "0.30.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "19fc433e8437a212d1b6f1e68c7824af3aed907da60afa994e7f542d18d12aa9"
+dependencies = [
+ "bytemuck",
+ "encase",
+ "libm",
+ "rand 0.9.2",
+ "serde_core",
+]
+
[[package]]
name = "glob"
version = "0.3.3"
@@ -4858,47 +6428,39 @@ dependencies = [
]
[[package]]
-name = "glutin"
-version = "0.32.3"
+name = "gltf"
+version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "12124de845cacfebedff80e877bb37b5b75c34c5a4c89e47e1cdd67fb6041325"
+checksum = "e3ce1918195723ce6ac74e80542c5a96a40c2b26162c1957a5cd70799b8cacf7"
dependencies = [
- "bitflags 2.11.0",
- "cfg_aliases",
- "cgl",
- "dispatch2",
- "glutin_egl_sys",
- "glutin_wgl_sys",
- "libloading",
- "objc2 0.6.4",
- "objc2-app-kit 0.3.2",
- "objc2-core-foundation",
- "objc2-foundation 0.3.2",
- "once_cell",
- "raw-window-handle",
- "windows-sys 0.52.0",
+ "byteorder",
+ "gltf-json",
+ "lazy_static",
+ "serde_json",
]
[[package]]
-name = "glutin-winit"
-version = "0.5.0"
+name = "gltf-derive"
+version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "85edca7075f8fc728f28cb8fbb111a96c3b89e930574369e3e9c27eb75d3788f"
+checksum = "14070e711538afba5d6c807edb74bcb84e5dbb9211a3bf5dea0dfab5b24f4c51"
dependencies = [
- "cfg_aliases",
- "glutin",
- "raw-window-handle",
- "winit",
+ "inflections",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
]
[[package]]
-name = "glutin_egl_sys"
-version = "0.7.1"
+name = "gltf-json"
+version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4c4680ba6195f424febdc3ba46e7a42a0e58743f2edb115297b86d7f8ecc02d2"
+checksum = "e6176f9d60a7eab0a877e8e96548605dedbde9190a7ae1e80bbcc1c9af03ab14"
dependencies = [
- "gl_generator",
- "windows-sys 0.52.0",
+ "gltf-derive",
+ "serde",
+ "serde_derive",
+ "serde_json",
]
[[package]]
@@ -4933,15 +6495,82 @@ dependencies = [
"web-time",
]
+[[package]]
+name = "gpu-alloc"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fbcd2dba93594b227a1f57ee09b8b9da8892c34d55aa332e034a228d0fe6a171"
+dependencies = [
+ "bitflags 2.11.0",
+ "gpu-alloc-types",
+]
+
+[[package]]
+name = "gpu-alloc-types"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "98ff03b468aa837d70984d55f5d3f846f6ec31fe34bbb97c4f85219caeee1ca4"
+dependencies = [
+ "bitflags 2.11.0",
+]
+
+[[package]]
+name = "gpu-allocator"
+version = "0.27.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c151a2a5ef800297b4e79efa4f4bec035c5f51d5ae587287c9b952bdf734cacd"
+dependencies = [
+ "log",
+ "presser",
+ "thiserror 1.0.69",
+ "windows 0.58.0",
+]
+
+[[package]]
+name = "gpu-descriptor"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b89c83349105e3732062a895becfc71a8f921bb71ecbbdd8ff99263e3b53a0ca"
+dependencies = [
+ "bitflags 2.11.0",
+ "gpu-descriptor-types",
+ "hashbrown 0.15.5",
+]
+
+[[package]]
+name = "gpu-descriptor-types"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fdf242682df893b86f33a73828fb09ca4b2d3bb6cc95249707fc684d27484b91"
+dependencies = [
+ "bitflags 2.11.0",
+]
+
+[[package]]
+name = "grid"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f9e2d4c0a8296178d8802098410ca05d86b17a10bb5ab559b3fb404c1f948220"
+
[[package]]
name = "group"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63"
+checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63"
+dependencies = [
+ "ff",
+ "rand_core 0.6.4",
+ "subtle",
+]
+
+[[package]]
+name = "guillotiere"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b62d5865c036cb1393e23c50693df631d3f5d7bcca4c04fe4cc0fd592e74a782"
dependencies = [
- "ff",
- "rand_core 0.6.4",
- "subtle",
+ "euclid",
+ "svg_fmt",
]
[[package]]
@@ -5029,6 +6658,19 @@ dependencies = [
"thiserror 2.0.18",
]
+[[package]]
+name = "harfrust"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e0caaee032384c10dd597af4579c67dee16650d862a9ccbe1233ff1a379abc07"
+dependencies = [
+ "bitflags 2.11.0",
+ "bytemuck",
+ "core_maths",
+ "read-fonts 0.36.0",
+ "smallvec",
+]
+
[[package]]
name = "harness_derive"
version = "0.1.0"
@@ -5047,6 +6689,15 @@ dependencies = [
"byteorder",
]
+[[package]]
+name = "hash32"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "47d60b12902ba28e2730cd37e95b8c9223af2808df9e902d4df49588d1470606"
+dependencies = [
+ "byteorder",
+]
+
[[package]]
name = "hash32"
version = "1.0.0"
@@ -5088,6 +6739,8 @@ dependencies = [
"allocator-api2",
"equivalent",
"foldhash 0.2.0",
+ "serde",
+ "serde_core",
]
[[package]]
@@ -5109,7 +6762,18 @@ dependencies = [
"hash32 0.2.1",
"rustc_version",
"serde",
- "spin",
+ "spin 0.9.8",
+ "stable_deref_trait",
+]
+
+[[package]]
+name = "heapless"
+version = "0.9.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2af2455f757db2b292a9b1768c4b70186d443bcb3b316252d6b540aec1cd89ed"
+dependencies = [
+ "hash32 0.3.1",
+ "portable-atomic",
"stable_deref_trait",
]
@@ -5131,6 +6795,23 @@ version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
+[[package]]
+name = "hexasphere"
+version = "16.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29a164ceff4500f2a72b1d21beaa8aa8ad83aec2b641844c659b190cb3ea2e0b"
+dependencies = [
+ "constgebra",
+ "glam",
+ "tinyvec",
+]
+
+[[package]]
+name = "hexf-parse"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df"
+
[[package]]
name = "hickory-proto"
version = "0.25.2"
@@ -5911,7 +7592,7 @@ dependencies = [
"iobuf",
"lending-iterator",
"moka",
- "nix",
+ "nix 0.31.2",
"once_cell",
"papaya",
"rcgen",
@@ -6740,6 +8421,17 @@ dependencies = [
"zeroize",
]
+[[package]]
+name = "khronos-egl"
+version = "6.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76"
+dependencies = [
+ "libc",
+ "libloading",
+ "pkg-config",
+]
+
[[package]]
name = "khronos_api"
version = "3.1.0"
@@ -6766,6 +8458,15 @@ dependencies = [
"libc",
]
+[[package]]
+name = "ktx2"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ff7f53bdf698e7aa7ec916411bbdc8078135da11b66db5182675b2227f6c0d07"
+dependencies = [
+ "bitflags 2.11.0",
+]
+
[[package]]
name = "kurbo"
version = "0.11.3"
@@ -6789,7 +8490,7 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
dependencies = [
- "spin",
+ "spin 0.9.8",
]
[[package]]
@@ -6840,6 +8541,17 @@ dependencies = [
"syn 1.0.109",
]
+[[package]]
+name = "lewton"
+version = "0.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "777b48df9aaab155475a83a7df3070395ea1ac6902f5cd062b8f2b028075c030"
+dependencies = [
+ "byteorder",
+ "ogg",
+ "tinyvec",
+]
+
[[package]]
name = "lexical-core"
version = "1.0.6"
@@ -7009,6 +8721,16 @@ dependencies = [
"vcpkg",
]
+[[package]]
+name = "libudev-sys"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3c8469b4a23b962c1396b9b451dda50ef5b283e8dd309d69033475fa9b334324"
+dependencies = [
+ "libc",
+ "pkg-config",
+]
+
[[package]]
name = "libz-sys"
version = "1.1.25"
@@ -7021,6 +8743,12 @@ dependencies = [
"vcpkg",
]
+[[package]]
+name = "linebender_resource_handle"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
+
[[package]]
name = "linked-hash-map"
version = "0.5.6"
@@ -7146,6 +8874,48 @@ version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"
+[[package]]
+name = "lyon_algorithms"
+version = "1.0.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9815fac08e6fd96733a11dce4f9d15a3f338e96a2e2311ee21e1b738efc2bc0f"
+dependencies = [
+ "lyon_path",
+ "num-traits",
+]
+
+[[package]]
+name = "lyon_geom"
+version = "1.0.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4336502e29e32af93cf2dad2214ed6003c17ceb5bd499df77b1de663b9042b92"
+dependencies = [
+ "arrayvec",
+ "euclid",
+ "num-traits",
+]
+
+[[package]]
+name = "lyon_path"
+version = "1.0.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c463f9c428b7fc5ec885dcd39ce4aa61e29111d0e33483f6f98c74e89d8621e"
+dependencies = [
+ "lyon_geom",
+ "num-traits",
+]
+
+[[package]]
+name = "lyon_tessellation"
+version = "1.0.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e43b7e44161571868f5c931d12583592c223c5583eef86b08aa02b7048a3552"
+dependencies = [
+ "float_next_after",
+ "lyon_path",
+ "num-traits",
+]
+
[[package]]
name = "lz4_flex"
version = "0.12.1"
@@ -7164,6 +8934,15 @@ dependencies = [
"twox-hash",
]
+[[package]]
+name = "mach2"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d640282b302c0bb0a2a8e0233ead9035e3bed871f0b7e81fe4a1ec829765db44"
+dependencies = [
+ "libc",
+]
+
[[package]]
name = "macro_magic"
version = "0.5.1"
@@ -7228,6 +9007,15 @@ version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "58093314a45e00c77d5c508f76e77c3396afbbc0d01506e7fae47b018bac2b1d"
+[[package]]
+name = "malloc_buf"
+version = "0.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb"
+dependencies = [
+ "libc",
+]
+
[[package]]
name = "matchers"
version = "0.2.0"
@@ -7278,15 +9066,6 @@ dependencies = [
"libc",
]
-[[package]]
-name = "memoffset"
-version = "0.9.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
-dependencies = [
- "autocfg",
-]
-
[[package]]
name = "message_bus"
version = "0.1.0"
@@ -7320,6 +9099,21 @@ dependencies = [
"tracing",
]
+[[package]]
+name = "metal"
+version = "0.32.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "00c15a6f673ff72ddcc22394663290f870fb224c1bfce55734a75c414150e605"
+dependencies = [
+ "bitflags 2.11.0",
+ "block",
+ "core-graphics-types 0.2.0",
+ "foreign-types 0.5.0",
+ "log",
+ "objc",
+ "paste",
+]
+
[[package]]
name = "miette"
version = "7.6.0"
@@ -7533,6 +9327,64 @@ version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9252111cf132ba0929b6f8e030cac2a24b507f3a4d6db6fb2896f27b354c714b"
+[[package]]
+name = "naga"
+version = "27.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "066cf25f0e8b11ee0df221219010f213ad429855f57c494f995590c861a9a7d8"
+dependencies = [
+ "arrayvec",
+ "bit-set 0.8.0",
+ "bitflags 2.11.0",
+ "cfg-if",
+ "cfg_aliases",
+ "codespan-reporting",
+ "half",
+ "hashbrown 0.16.1",
+ "hexf-parse",
+ "indexmap 2.13.0",
+ "libm",
+ "log",
+ "num-traits",
+ "once_cell",
+ "pp-rs",
+ "rustc-hash 1.1.0",
+ "spirv",
+ "thiserror 2.0.18",
+ "unicode-ident",
+]
+
+[[package]]
+name = "naga_oil"
+version = "0.20.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "310c347db1b30e69581f3b84dc9a5c311ed583f67851b39b77953cb7a066c97f"
+dependencies = [
+ "codespan-reporting",
+ "data-encoding",
+ "indexmap 2.13.0",
+ "naga",
+ "regex",
+ "rustc-hash 1.1.0",
+ "thiserror 2.0.18",
+ "tracing",
+ "unicode-ident",
+]
+
+[[package]]
+name = "ndk"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2076a31b7010b17a38c01907c45b945e8f11495ee4dd588309718901b1f7a5b7"
+dependencies = [
+ "bitflags 2.11.0",
+ "jni-sys 0.3.1",
+ "log",
+ "ndk-sys 0.5.0+25.2.9519653",
+ "num_enum",
+ "thiserror 1.0.69",
+]
+
[[package]]
name = "ndk"
version = "0.9.0"
@@ -7542,7 +9394,7 @@ dependencies = [
"bitflags 2.11.0",
"jni-sys 0.3.1",
"log",
- "ndk-sys",
+ "ndk-sys 0.6.0+11769913",
"num_enum",
"raw-window-handle",
"thiserror 1.0.69",
@@ -7554,6 +9406,15 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"
+[[package]]
+name = "ndk-sys"
+version = "0.5.0+25.2.9519653"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8c196769dd60fd4f363e11d948139556a344e79d451aeb2fa2fd040738ef7691"
+dependencies = [
+ "jni-sys 0.3.1",
+]
+
[[package]]
name = "ndk-sys"
version = "0.6.0+11769913"
@@ -7577,9 +9438,9 @@ checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
[[package]]
name = "nix"
-version = "0.31.2"
+version = "0.30.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5d6d0705320c1e6ba1d912b5e37cf18071b6c2e9b7fa8215a1e8a7651966f5d3"
+checksum = "74523f3a35e05aba87a1d978330aef40f67b0304ac79c1c00b294c9830543db6"
dependencies = [
"bitflags 2.11.0",
"cfg-if",
@@ -7588,10 +9449,16 @@ dependencies = [
]
[[package]]
-name = "nohash-hasher"
-version = "0.2.0"
+name = "nix"
+version = "0.31.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"
+checksum = "5d6d0705320c1e6ba1d912b5e37cf18071b6c2e9b7fa8215a1e8a7651966f5d3"
+dependencies = [
+ "bitflags 2.11.0",
+ "cfg-if",
+ "cfg_aliases",
+ "libc",
+]
[[package]]
name = "nom"
@@ -7623,6 +9490,12 @@ dependencies = [
"nom 8.0.0",
]
+[[package]]
+name = "nonmax"
+version = "0.5.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "610a5acd306ec67f907abe5567859a3c693fb9886eb1f012ab8f2a47bef3db51"
+
[[package]]
name = "nonzero_ext"
version = "0.3.0"
@@ -7878,6 +9751,15 @@ dependencies = [
"libc",
]
+[[package]]
+name = "objc"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1"
+dependencies = [
+ "malloc_buf",
+]
+
[[package]]
name = "objc-sys"
version = "0.3.5"
@@ -7915,23 +9797,10 @@ dependencies = [
"objc2 0.5.2",
"objc2-core-data",
"objc2-core-image",
- "objc2-foundation 0.2.2",
+ "objc2-foundation",
"objc2-quartz-core",
]
-[[package]]
-name = "objc2-app-kit"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"
-dependencies = [
- "bitflags 2.11.0",
- "objc2 0.6.4",
- "objc2-core-foundation",
- "objc2-core-graphics",
- "objc2-foundation 0.3.2",
-]
-
[[package]]
name = "objc2-cloud-kit"
version = "0.2.2"
@@ -7942,7 +9811,7 @@ dependencies = [
"block2 0.5.1",
"objc2 0.5.2",
"objc2-core-location",
- "objc2-foundation 0.2.2",
+ "objc2-foundation",
]
[[package]]
@@ -7953,7 +9822,7 @@ checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889"
dependencies = [
"block2 0.5.1",
"objc2 0.5.2",
- "objc2-foundation 0.2.2",
+ "objc2-foundation",
]
[[package]]
@@ -7965,7 +9834,7 @@ dependencies = [
"bitflags 2.11.0",
"block2 0.5.1",
"objc2 0.5.2",
- "objc2-foundation 0.2.2",
+ "objc2-foundation",
]
[[package]]
@@ -7975,21 +9844,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
dependencies = [
"bitflags 2.11.0",
- "dispatch2",
- "objc2 0.6.4",
-]
-
-[[package]]
-name = "objc2-core-graphics"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
-dependencies = [
- "bitflags 2.11.0",
- "dispatch2",
- "objc2 0.6.4",
- "objc2-core-foundation",
- "objc2-io-surface",
]
[[package]]
@@ -8000,7 +9854,7 @@ checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80"
dependencies = [
"block2 0.5.1",
"objc2 0.5.2",
- "objc2-foundation 0.2.2",
+ "objc2-foundation",
"objc2-metal",
]
@@ -8013,7 +9867,7 @@ dependencies = [
"block2 0.5.1",
"objc2 0.5.2",
"objc2-contacts",
- "objc2-foundation 0.2.2",
+ "objc2-foundation",
]
[[package]]
@@ -8024,46 +9878,25 @@ checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"
[[package]]
name = "objc2-foundation"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"
-dependencies = [
- "bitflags 2.11.0",
- "block2 0.5.1",
- "dispatch",
- "libc",
- "objc2 0.5.2",
-]
-
-[[package]]
-name = "objc2-foundation"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
-dependencies = [
- "bitflags 2.11.0",
- "objc2 0.6.4",
- "objc2-core-foundation",
-]
-
-[[package]]
-name = "objc2-io-kit"
-version = "0.3.2"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33fafba39597d6dc1fb709123dfa8289d39406734be322956a69f0931c73bb15"
+checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"
dependencies = [
+ "bitflags 2.11.0",
+ "block2 0.5.1",
+ "dispatch",
"libc",
- "objc2-core-foundation",
+ "objc2 0.5.2",
]
[[package]]
-name = "objc2-io-surface"
+name = "objc2-io-kit"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
+checksum = "33fafba39597d6dc1fb709123dfa8289d39406734be322956a69f0931c73bb15"
dependencies = [
"bitflags 2.11.0",
- "objc2 0.6.4",
+ "libc",
"objc2-core-foundation",
]
@@ -8075,8 +9908,8 @@ checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398"
dependencies = [
"block2 0.5.1",
"objc2 0.5.2",
- "objc2-app-kit 0.2.2",
- "objc2-foundation 0.2.2",
+ "objc2-app-kit",
+ "objc2-foundation",
]
[[package]]
@@ -8088,7 +9921,7 @@ dependencies = [
"bitflags 2.11.0",
"block2 0.5.1",
"objc2 0.5.2",
- "objc2-foundation 0.2.2",
+ "objc2-foundation",
]
[[package]]
@@ -8100,7 +9933,7 @@ dependencies = [
"bitflags 2.11.0",
"block2 0.5.1",
"objc2 0.5.2",
- "objc2-foundation 0.2.2",
+ "objc2-foundation",
"objc2-metal",
]
@@ -8111,7 +9944,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc"
dependencies = [
"objc2 0.5.2",
- "objc2-foundation 0.2.2",
+ "objc2-foundation",
]
[[package]]
@@ -8127,7 +9960,7 @@ dependencies = [
"objc2-core-data",
"objc2-core-image",
"objc2-core-location",
- "objc2-foundation 0.2.2",
+ "objc2-foundation",
"objc2-link-presentation",
"objc2-quartz-core",
"objc2-symbols",
@@ -8143,7 +9976,7 @@ checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe"
dependencies = [
"block2 0.5.1",
"objc2 0.5.2",
- "objc2-foundation 0.2.2",
+ "objc2-foundation",
]
[[package]]
@@ -8156,7 +9989,30 @@ dependencies = [
"block2 0.5.1",
"objc2 0.5.2",
"objc2-core-location",
- "objc2-foundation 0.2.2",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "oboe"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e8b61bebd49e5d43f5f8cc7ee2891c16e0f41ec7954d36bcb6c14c5e0de867fb"
+dependencies = [
+ "jni 0.21.1",
+ "ndk 0.8.0",
+ "ndk-context",
+ "num-derive",
+ "num-traits",
+ "oboe-sys",
+]
+
+[[package]]
+name = "oboe-sys"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6c8bb09a4a2b1d668170cfe0a7d5bc103f8999fb316c98099b6a9939c9f2e79d"
+dependencies = [
+ "cc",
]
[[package]]
@@ -8201,6 +10057,25 @@ dependencies = [
"web-time",
]
+[[package]]
+name = "offset-allocator"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e234d535da3521eb95106f40f0b73483d80bfb3aacf27c40d7e2b72f1a3e00a2"
+dependencies = [
+ "log",
+ "nonmax",
+]
+
+[[package]]
+name = "ogg"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6951b4e8bf21c8193da321bcce9c9dd2e13c858fe078bf9054a288b419ae5d6e"
+dependencies = [
+ "byteorder",
+]
+
[[package]]
name = "oid-registry"
version = "0.8.1"
@@ -8788,6 +10663,19 @@ dependencies = [
"sha2",
]
+[[package]]
+name = "petgraph"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8701b58ea97060d5e5b155d383a69952a60943f0e6dfe30b04c287beb0b27455"
+dependencies = [
+ "fixedbitset",
+ "hashbrown 0.15.5",
+ "indexmap 2.13.0",
+ "serde",
+ "serde_derive",
+]
+
[[package]]
name = "pico-args"
version = "0.5.0"
@@ -8837,6 +10725,17 @@ dependencies = [
"thiserror 1.0.69",
]
+[[package]]
+name = "piper"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1"
+dependencies = [
+ "atomic-waker",
+ "fastrand",
+ "futures-io",
+]
+
[[package]]
name = "pkcs1"
version = "0.7.5"
@@ -8952,7 +10851,7 @@ dependencies = [
"cobs",
"embedded-io 0.4.0",
"embedded-io 0.6.1",
- "heapless",
+ "heapless 0.7.17",
"serde",
]
@@ -8971,6 +10870,15 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
+[[package]]
+name = "pp-rs"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb458bb7f6e250e6eb79d5026badc10a3ebb8f9a15d1fff0f13d17c71f4d6dee"
+dependencies = [
+ "unicode-xid",
+]
+
[[package]]
name = "ppv-lite86"
version = "0.2.21"
@@ -9010,6 +10918,12 @@ dependencies = [
"termtree",
]
+[[package]]
+name = "presser"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa"
+
[[package]]
name = "prettyplease"
version = "0.2.37"
@@ -9332,7 +11246,7 @@ dependencies = [
"pin-project-lite",
"quinn-proto",
"quinn-udp",
- "rustc-hash",
+ "rustc-hash 2.1.1",
"rustls",
"socket2 0.6.3",
"thiserror 2.0.18",
@@ -9354,7 +11268,7 @@ dependencies = [
"lru-slab",
"rand 0.9.2",
"ring",
- "rustc-hash",
+ "rustc-hash 2.1.1",
"rustls",
"rustls-pki-types",
"rustls-platform-verifier",
@@ -9406,6 +11320,12 @@ version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09"
+[[package]]
+name = "radsort"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "019b4b213425016d7d84a153c4c73afb0946fbb4840e4eece7ba8848b9d6da22"
+
[[package]]
name = "rand"
version = "0.8.5"
@@ -9482,6 +11402,16 @@ version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c8d0fd677905edcbeedbf2edb6494d676f0e98d54d5cf9bda0b061cb8fb8aba"
+[[package]]
+name = "rand_distr"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6a8615d50dcf34fa31f7ab52692afec947c4dd0ab803cc87cb3b0b4570ff7463"
+dependencies = [
+ "num-traits",
+ "rand 0.9.2",
+]
+
[[package]]
name = "rand_xoshiro"
version = "0.7.0"
@@ -9500,6 +11430,18 @@ dependencies = [
"rand_core 0.10.0",
]
+[[package]]
+name = "range-alloc"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca45419789ae5a7899559e9512e58ca889e41f04f1f2445e9f4b290ceccd1d08"
+
+[[package]]
+name = "rangemap"
+version = "1.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "973443cf09a9c8656b574a866ab68dfa19f0867d0340648c7d2f6a71b8a8ea68"
+
[[package]]
name = "rav1e"
version = "0.8.1"
@@ -9599,6 +11541,33 @@ dependencies = [
"yasna",
]
+[[package]]
+name = "read-fonts"
+version = "0.36.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5eaa2941a4c05443ee3a7b26ab076a553c343ad5995230cc2b1d3e993bdc6345"
+dependencies = [
+ "bytemuck",
+ "core_maths",
+ "font-types 0.10.1",
+]
+
+[[package]]
+name = "read-fonts"
+version = "0.37.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7b634fabf032fab15307ffd272149b622260f55974d9fad689292a5d33df02e5"
+dependencies = [
+ "bytemuck",
+ "font-types 0.11.1",
+]
+
+[[package]]
+name = "rectangle-pack"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a0d463f2884048e7153449a55166f91028d5b0ea53c79377099ce4e8cf0cf9bb"
+
[[package]]
name = "redox_syscall"
version = "0.4.1"
@@ -9701,6 +11670,12 @@ dependencies = [
"bytecheck",
]
+[[package]]
+name = "renderdoc-sys"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832"
+
[[package]]
name = "reqsign"
version = "0.16.5"
@@ -10039,6 +12014,16 @@ dependencies = [
"byteorder",
]
+[[package]]
+name = "rodio"
+version = "0.20.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7ceb6607dd738c99bc8cb28eff249b7cd5c8ec88b9db96c0608c1480d140fb1"
+dependencies = [
+ "cpal",
+ "lewton",
+]
+
[[package]]
name = "rolling-file"
version = "0.2.0"
@@ -10048,6 +12033,20 @@ dependencies = [
"chrono",
]
+[[package]]
+name = "ron"
+version = "0.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4147b952f3f819eca0e99527022f7d6a8d05f111aeb0a62960c74eb283bec8fc"
+dependencies = [
+ "bitflags 2.11.0",
+ "once_cell",
+ "serde",
+ "serde_derive",
+ "typeid",
+ "unicode-ident",
+]
+
[[package]]
name = "route-recognizer"
version = "0.3.1"
@@ -10140,6 +12139,12 @@ dependencies = [
"serde_json",
]
+[[package]]
+name = "rustc-hash"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
+
[[package]]
name = "rustc-hash"
version = "2.1.1"
@@ -10310,6 +12315,15 @@ dependencies = [
"unicode-script",
]
+[[package]]
+name = "ruzstd"
+version = "0.8.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5ff0cc5e135c8870a775d3320910cd9b564ec036b4dc0b8741629020be63f01"
+dependencies = [
+ "twox-hash",
+]
+
[[package]]
name = "ryu"
version = "1.0.23"
@@ -10393,6 +12407,19 @@ version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+[[package]]
+name = "sctk-adwaita"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6277f0217056f77f1d8f49f2950ac6c278c0d607c45f5ee99328d792ede24ec"
+dependencies = [
+ "ab_glyph",
+ "log",
+ "memmap2",
+ "smithay-client-toolkit",
+ "tiny-skia",
+]
+
[[package]]
name = "sdd"
version = "3.0.10"
@@ -10473,6 +12500,12 @@ dependencies = [
"windows-sys 0.61.2",
]
+[[package]]
+name = "self_cell"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b12e76d157a900eb52e81bc6e9f3069344290341720e9178cde2407113ac8d89"
+
[[package]]
name = "semver"
version = "1.0.27"
@@ -10756,7 +12789,7 @@ dependencies = [
"metadata",
"mimalloc",
"mime_guess",
- "nix",
+ "nix 0.31.2",
"opentelemetry",
"opentelemetry-appender-tracing",
"opentelemetry-otlp",
@@ -10969,17 +13002,13 @@ dependencies = [
name = "simulator-ui"
version = "0.1.0"
dependencies = [
- "eframe",
- "egui",
- "env_logger",
+ "bevy",
+ "bevy_prototype_lyon",
"getrandom 0.3.4",
- "image",
"rand 0.9.2",
"rand_xoshiro 0.7.0",
"strum 0.28.0",
"strum_macros 0.28.0",
- "wasm-bindgen-futures",
- "web-sys",
]
[[package]]
@@ -10988,6 +13017,26 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b2aa850e253778c88a04c3d7323b043aeda9d3e30d5971937c1855769763678e"
+[[package]]
+name = "skrifa"
+version = "0.39.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c9eb0b904a04d09bd68c65d946617b8ff733009999050f3b851c32fb3cfb60e"
+dependencies = [
+ "bytemuck",
+ "read-fonts 0.36.0",
+]
+
+[[package]]
+name = "skrifa"
+version = "0.40.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7fbdfe3d2475fbd7ddd1f3e5cf8288a30eb3e5f95832829570cd88115a7434ac"
+dependencies = [
+ "bytemuck",
+ "read-fonts 0.37.0",
+]
+
[[package]]
name = "slab"
version = "0.4.12"
@@ -11031,42 +13080,29 @@ checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c"
[[package]]
name = "smithay-client-toolkit"
-version = "0.20.0"
+version = "0.19.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0512da38f5e2b31201a93524adb8d3136276fa4fe4aafab4e1f727a82b534cc0"
+checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016"
dependencies = [
"bitflags 2.11.0",
- "calloop 0.14.4",
+ "calloop",
"calloop-wayland-source",
"cursor-icon",
"libc",
"log",
"memmap2",
- "rustix 1.1.4",
- "thiserror 2.0.18",
+ "rustix 0.38.44",
+ "thiserror 1.0.69",
"wayland-backend",
"wayland-client",
"wayland-csd-frame",
"wayland-cursor",
"wayland-protocols",
- "wayland-protocols-experimental",
- "wayland-protocols-misc",
"wayland-protocols-wlr",
"wayland-scanner",
"xkeysym",
]
-[[package]]
-name = "smithay-clipboard"
-version = "0.7.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "71704c03f739f7745053bde45fa203a46c58d25bc5c4efba1d9a60e9dba81226"
-dependencies = [
- "libc",
- "smithay-client-toolkit",
- "wayland-backend",
-]
-
[[package]]
name = "smol_str"
version = "0.2.2"
@@ -11134,7 +13170,7 @@ dependencies = [
"data-encoding",
"debugid",
"if_chain",
- "rustc-hash",
+ "rustc-hash 2.1.1",
"serde",
"serde_json",
"unicode-id-start",
@@ -11150,6 +13186,15 @@ dependencies = [
"lock_api",
]
+[[package]]
+name = "spin"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d5fe4ccb98d9c292d56fec89a5e07da7fc4cf0dc11e156b41793132775d3e591"
+dependencies = [
+ "portable-atomic",
+]
+
[[package]]
name = "spinning_top"
version = "0.3.0"
@@ -11159,6 +13204,15 @@ dependencies = [
"lock_api",
]
+[[package]]
+name = "spirv"
+version = "0.3.0+sdk-1.3.268.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eda41003dc44290527a59b13432d4a0379379fa074b70174882adfbdfd917844"
+dependencies = [
+ "bitflags 2.11.0",
+]
+
[[package]]
name = "spki"
version = "0.7.3"
@@ -11386,6 +13440,15 @@ version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
+[[package]]
+name = "stackfuture"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "115beb9c69db2393ff10b75a1b8587a51716e5551d015001e55320ed279d32f9"
+dependencies = [
+ "const_panic",
+]
+
[[package]]
name = "static-toml"
version = "1.3.0"
@@ -11509,6 +13572,12 @@ version = "2.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
+[[package]]
+name = "svg_fmt"
+version = "0.4.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0193cc4331cfd2f3d2011ef287590868599a2f33c3e69bc22c1a3d3acf9e02fb"
+
[[package]]
name = "svgtypes"
version = "0.15.3"
@@ -11519,6 +13588,17 @@ dependencies = [
"siphasher",
]
+[[package]]
+name = "swash"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "842f3cd369c2ba38966204f983eaa5e54a8e84a7d7159ed36ade2b6c335aae64"
+dependencies = [
+ "skrifa 0.40.0",
+ "yazi",
+ "zeno",
+]
+
[[package]]
name = "syn"
version = "1.0.109"
@@ -11604,6 +13684,15 @@ dependencies = [
"syn 2.0.117",
]
+[[package]]
+name = "sys-locale"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8eab9a99a024a169fe8a903cf9d4a3b3601109bcc13bd9e3c6fff259138626c4"
+dependencies = [
+ "libc",
+]
+
[[package]]
name = "sys_traits"
version = "0.1.26"
@@ -11652,6 +13741,18 @@ dependencies = [
"windows 0.62.2",
]
+[[package]]
+name = "taffy"
+version = "0.9.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41ba83ebaf2954d31d05d67340fd46cebe99da2b7133b0dd68d70c65473a437b"
+dependencies = [
+ "arrayvec",
+ "grid",
+ "serde",
+ "slotmap",
+]
+
[[package]]
name = "tagptr"
version = "0.2.0"
@@ -11694,6 +13795,15 @@ dependencies = [
"windows-sys 0.61.2",
]
+[[package]]
+name = "termcolor"
+version = "1.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
+dependencies = [
+ "winapi-util",
+]
+
[[package]]
name = "terminal_size"
version = "0.4.4"
@@ -12099,6 +14209,15 @@ dependencies = [
"serde",
]
+[[package]]
+name = "toml_datetime"
+version = "0.7.5+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347"
+dependencies = [
+ "serde_core",
+]
+
[[package]]
name = "toml_datetime"
version = "1.1.0+spec-1.1.0"
@@ -12133,6 +14252,18 @@ dependencies = [
"winnow 0.7.15",
]
+[[package]]
+name = "toml_edit"
+version = "0.23.10+spec-1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "84c8b9f757e028cee9fa244aea147aab2a9ec09d5325a9b01e0a49730c2b5269"
+dependencies = [
+ "indexmap 2.13.0",
+ "toml_datetime 0.7.5+spec-1.1.0",
+ "toml_parser",
+ "winnow 0.7.15",
+]
+
[[package]]
name = "toml_edit"
version = "0.25.8+spec-1.1.0"
@@ -12346,6 +14477,18 @@ dependencies = [
"web-time",
]
+[[package]]
+name = "tracing-oslog"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d76902d2a8d5f9f55a81155c08971734071968c90f2d9bfe645fe700579b2950"
+dependencies = [
+ "cc",
+ "cfg-if",
+ "tracing-core",
+ "tracing-subscriber",
+]
+
[[package]]
name = "tracing-subscriber"
version = "0.3.23"
@@ -12364,6 +14507,17 @@ dependencies = [
"tracing-log",
]
+[[package]]
+name = "tracing-wasm"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4575c663a174420fa2d78f4108ff68f65bf2fbb7dd89f33749b6e826b3626e07"
+dependencies = [
+ "tracing",
+ "tracing-subscriber",
+ "wasm-bindgen",
+]
+
[[package]]
name = "trait-variant"
version = "0.1.2"
@@ -12538,6 +14692,12 @@ dependencies = [
"syn 2.0.117",
]
+[[package]]
+name = "typewit"
+version = "1.14.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8c1ae7cc0fdb8b842d65d127cb981574b0d2b249b74d1c7a2986863dc134f71"
+
[[package]]
name = "ucd-trie"
version = "0.1.7"
@@ -12803,7 +14963,7 @@ version = "137.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33995a1fee055ff743281cde33a41f0d618ee0bdbe8bdf6859e11864499c2595"
dependencies = [
- "bindgen",
+ "bindgen 0.71.1",
"bitflags 2.11.0",
"fslock",
"gzip-header",
@@ -12848,12 +15008,29 @@ dependencies = [
"ryu",
]
+[[package]]
+name = "variadics_please"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41b6d82be61465f97d42bd1d15bf20f3b0a3a0905018f38f9d6f6962055b0b5c"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "vcpkg"
version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
+[[package]]
+name = "vec_map"
+version = "0.8.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
+
[[package]]
name = "vergen"
version = "9.1.0"
@@ -13123,7 +15300,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2857dd20b54e916ec7253b3d6b4d5c4d7d4ca2c33c2e11c6c76a99bd8744755d"
dependencies = [
"cc",
- "downcast-rs",
+ "downcast-rs 1.2.1",
"rustix 1.1.4",
"scoped-tls",
"smallvec",
@@ -13177,23 +15354,10 @@ dependencies = [
]
[[package]]
-name = "wayland-protocols-experimental"
-version = "20250721.0.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "40a1f863128dcaaec790d7b4b396cc9b9a7a079e878e18c47e6c2d2c5a8dcbb1"
-dependencies = [
- "bitflags 2.11.0",
- "wayland-backend",
- "wayland-client",
- "wayland-protocols",
- "wayland-scanner",
-]
-
-[[package]]
-name = "wayland-protocols-misc"
+name = "wayland-protocols-plasma"
version = "0.3.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e9567599ef23e09b8dad6e429e5738d4509dfc46b3b21f32841a304d16b29c8"
+checksum = "2b6d8cf1eb2c1c31ed1f5643c88a6e53538129d4af80030c8cabd1f9fa884d91"
dependencies = [
"bitflags 2.11.0",
"wayland-backend",
@@ -13234,7 +15398,6 @@ checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be"
dependencies = [
"dlib",
"log",
- "once_cell",
"pkg-config",
]
@@ -13259,22 +15422,6 @@ dependencies = [
"wasm-bindgen",
]
-[[package]]
-name = "webbrowser"
-version = "1.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fe985f41e291eecef5e5c0770a18d28390addb03331c043964d9e916453d6f16"
-dependencies = [
- "core-foundation 0.10.1",
- "jni 0.22.4",
- "log",
- "ndk-context",
- "objc2 0.6.4",
- "objc2-foundation 0.3.2",
- "url",
- "web-sys",
-]
-
[[package]]
name = "webpki-root-certs"
version = "1.0.6"
@@ -13308,6 +15455,156 @@ version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88"
+[[package]]
+name = "wgpu"
+version = "27.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bfe68bac7cde125de7a731c3400723cadaaf1703795ad3f4805f187459cd7a77"
+dependencies = [
+ "arrayvec",
+ "bitflags 2.11.0",
+ "cfg-if",
+ "cfg_aliases",
+ "document-features",
+ "hashbrown 0.16.1",
+ "js-sys",
+ "log",
+ "naga",
+ "portable-atomic",
+ "profiling",
+ "raw-window-handle",
+ "smallvec",
+ "static_assertions",
+ "wasm-bindgen",
+ "web-sys",
+ "wgpu-core",
+ "wgpu-hal",
+ "wgpu-types",
+]
+
+[[package]]
+name = "wgpu-core"
+version = "27.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "27a75de515543b1897b26119f93731b385a19aea165a1ec5f0e3acecc229cae7"
+dependencies = [
+ "arrayvec",
+ "bit-set 0.8.0",
+ "bit-vec 0.8.0",
+ "bitflags 2.11.0",
+ "bytemuck",
+ "cfg_aliases",
+ "document-features",
+ "hashbrown 0.16.1",
+ "indexmap 2.13.0",
+ "log",
+ "naga",
+ "once_cell",
+ "parking_lot",
+ "portable-atomic",
+ "profiling",
+ "raw-window-handle",
+ "rustc-hash 1.1.0",
+ "smallvec",
+ "thiserror 2.0.18",
+ "wgpu-core-deps-apple",
+ "wgpu-core-deps-wasm",
+ "wgpu-core-deps-windows-linux-android",
+ "wgpu-hal",
+ "wgpu-types",
+]
+
+[[package]]
+name = "wgpu-core-deps-apple"
+version = "27.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0772ae958e9be0c729561d5e3fd9a19679bcdfb945b8b1a1969d9bfe8056d233"
+dependencies = [
+ "wgpu-hal",
+]
+
+[[package]]
+name = "wgpu-core-deps-wasm"
+version = "27.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b1027dcf3b027a877e44819df7ceb0e2e98578830f8cd34cd6c3c7c2a7a50b7"
+dependencies = [
+ "wgpu-hal",
+]
+
+[[package]]
+name = "wgpu-core-deps-windows-linux-android"
+version = "27.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "71197027d61a71748e4120f05a9242b2ad142e3c01f8c1b47707945a879a03c3"
+dependencies = [
+ "wgpu-hal",
+]
+
+[[package]]
+name = "wgpu-hal"
+version = "27.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5b21cb61c57ee198bc4aff71aeadff4cbb80b927beb912506af9c780d64313ce"
+dependencies = [
+ "android_system_properties",
+ "arrayvec",
+ "ash",
+ "bit-set 0.8.0",
+ "bitflags 2.11.0",
+ "block",
+ "bytemuck",
+ "cfg-if",
+ "cfg_aliases",
+ "core-graphics-types 0.2.0",
+ "glow",
+ "glutin_wgl_sys",
+ "gpu-alloc",
+ "gpu-allocator",
+ "gpu-descriptor",
+ "hashbrown 0.16.1",
+ "js-sys",
+ "khronos-egl",
+ "libc",
+ "libloading",
+ "log",
+ "metal",
+ "naga",
+ "ndk-sys 0.6.0+11769913",
+ "objc",
+ "once_cell",
+ "ordered-float 4.6.0",
+ "parking_lot",
+ "portable-atomic",
+ "portable-atomic-util",
+ "profiling",
+ "range-alloc",
+ "raw-window-handle",
+ "renderdoc-sys",
+ "smallvec",
+ "thiserror 2.0.18",
+ "wasm-bindgen",
+ "web-sys",
+ "wgpu-types",
+ "windows 0.58.0",
+ "windows-core 0.58.0",
+]
+
+[[package]]
+name = "wgpu-types"
+version = "27.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "afdcf84c395990db737f2dd91628706cb31e86d72e53482320d368e52b5da5eb"
+dependencies = [
+ "bitflags 2.11.0",
+ "bytemuck",
+ "js-sys",
+ "log",
+ "serde",
+ "thiserror 2.0.18",
+ "web-sys",
+]
+
[[package]]
name = "which"
version = "6.0.3"
@@ -13367,6 +15664,26 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+[[package]]
+name = "windows"
+version = "0.54.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9252e5725dbed82865af151df558e754e4a3c2c30818359eb17465f1346a1b49"
+dependencies = [
+ "windows-core 0.54.0",
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows"
+version = "0.58.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6"
+dependencies = [
+ "windows-core 0.58.0",
+ "windows-targets 0.52.6",
+]
+
[[package]]
name = "windows"
version = "0.61.3"
@@ -13410,14 +15727,37 @@ dependencies = [
"windows-core 0.62.2",
]
+[[package]]
+name = "windows-core"
+version = "0.54.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "12661b9c89351d684a50a8a643ce5f608e20243b9fb84687800163429f161d65"
+dependencies = [
+ "windows-result 0.1.2",
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-core"
+version = "0.58.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99"
+dependencies = [
+ "windows-implement 0.58.0",
+ "windows-interface 0.58.0",
+ "windows-result 0.2.0",
+ "windows-strings 0.1.0",
+ "windows-targets 0.52.6",
+]
+
[[package]]
name = "windows-core"
version = "0.61.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"
dependencies = [
- "windows-implement",
- "windows-interface",
+ "windows-implement 0.60.2",
+ "windows-interface 0.59.3",
"windows-link 0.1.3",
"windows-result 0.3.4",
"windows-strings 0.4.2",
@@ -13429,8 +15769,8 @@ version = "0.62.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
dependencies = [
- "windows-implement",
- "windows-interface",
+ "windows-implement 0.60.2",
+ "windows-interface 0.59.3",
"windows-link 0.2.1",
"windows-result 0.4.1",
"windows-strings 0.5.1",
@@ -13458,6 +15798,17 @@ dependencies = [
"windows-threading 0.2.1",
]
+[[package]]
+name = "windows-implement"
+version = "0.58.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "windows-implement"
version = "0.60.2"
@@ -13469,6 +15820,17 @@ dependencies = [
"syn 2.0.117",
]
+[[package]]
+name = "windows-interface"
+version = "0.58.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "windows-interface"
version = "0.59.3"
@@ -13523,6 +15885,24 @@ dependencies = [
"windows-strings 0.5.1",
]
+[[package]]
+name = "windows-result"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e383302e8ec8515204254685643de10811af0ed97ea37210dc26fb0032647f8"
+dependencies = [
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-result"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e"
+dependencies = [
+ "windows-targets 0.52.6",
+]
+
[[package]]
name = "windows-result"
version = "0.3.4"
@@ -13541,6 +15921,16 @@ dependencies = [
"windows-link 0.2.1",
]
+[[package]]
+name = "windows-strings"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"
+dependencies = [
+ "windows-result 0.2.0",
+ "windows-targets 0.52.6",
+]
+
[[package]]
name = "windows-strings"
version = "0.4.2"
@@ -13880,11 +16270,13 @@ version = "0.30.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6755fa58a9f8350bd1e472d4c3fcc25f824ec358933bba33306d0b63df5978d"
dependencies = [
+ "ahash 0.8.12",
"android-activity",
"atomic-waker",
"bitflags 2.11.0",
"block2 0.5.1",
- "calloop 0.13.0",
+ "bytemuck",
+ "calloop",
"cfg_aliases",
"concurrent-queue",
"core-foundation 0.9.4",
@@ -13893,24 +16285,34 @@ dependencies = [
"dpi",
"js-sys",
"libc",
- "ndk",
+ "memmap2",
+ "ndk 0.9.0",
"objc2 0.5.2",
- "objc2-app-kit 0.2.2",
- "objc2-foundation 0.2.2",
+ "objc2-app-kit",
+ "objc2-foundation",
"objc2-ui-kit",
"orbclient",
+ "percent-encoding",
"pin-project",
"raw-window-handle",
"redox_syscall 0.4.1",
"rustix 0.38.44",
+ "sctk-adwaita",
+ "smithay-client-toolkit",
"smol_str",
"tracing",
"unicode-segmentation",
"wasm-bindgen",
"wasm-bindgen-futures",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-protocols-plasma",
"web-sys",
"web-time",
"windows-sys 0.52.0",
+ "x11-dl",
+ "x11rb",
"xkbcommon-dl",
]
@@ -14050,13 +16452,28 @@ dependencies = [
"tap",
]
+[[package]]
+name = "x11-dl"
+version = "2.21.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f"
+dependencies = [
+ "libc",
+ "once_cell",
+ "pkg-config",
+]
+
[[package]]
name = "x11rb"
version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414"
dependencies = [
+ "as-raw-xcb-connection",
"gethostname",
+ "libc",
+ "libloading",
+ "once_cell",
"rustix 1.1.4",
"x11rb-protocol",
]
@@ -14153,6 +16570,12 @@ dependencies = [
"time",
]
+[[package]]
+name = "yazi"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e01738255b5a16e78bbb83e7fbba0a1e7dd506905cfc53f4622d89015a03fbb5"
+
[[package]]
name = "yew"
version = "0.23.0"
@@ -14245,6 +16668,12 @@ dependencies = [
"synstructure",
]
+[[package]]
+name = "zeno"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524"
+
[[package]]
name = "zerocopy"
version = "0.8.47"
diff --git a/core/simulator_ui/Cargo.toml b/core/simulator_ui/Cargo.toml
index 20280f84b..a22a50c17 100644
--- a/core/simulator_ui/Cargo.toml
+++ b/core/simulator_ui/Cargo.toml
@@ -22,18 +22,16 @@ edition = "2024"
publish = false
[dependencies]
-eframe = { version = "0.31", default-features = false, features = ["glow"] }
-egui = "0.31"
-image = { version = "0.25", default-features = false, features = ["png"] }
+bevy = { version = "0.18", features = ["webgl2"] }
+bevy_prototype_lyon = "0.16"
rand = "0.9"
rand_xoshiro = "0.7"
strum = { workspace = true }
strum_macros = { workspace = true }
+[[bin]]
+name = "simulator-ui"
+path = "src/main.rs"
+
[target.'cfg(target_arch = "wasm32")'.dependencies]
-wasm-bindgen-futures = "0.4"
-web-sys = { version = "0.3", features = ["Window", "Performance"] }
getrandom = { version = "0.3", features = ["wasm_js"] }
-
-[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
-env_logger = "0.11"
diff --git a/core/simulator_ui/Trunk.toml b/core/simulator_ui/Trunk.toml
index 006cfe9c6..66ccb9c96 100644
--- a/core/simulator_ui/Trunk.toml
+++ b/core/simulator_ui/Trunk.toml
@@ -3,7 +3,7 @@ target = "index.html"
dist = "dist"
[watch]
-watch = ["src", "assets"]
+watch = ["src", "assets/style.css", "../../assets"]
[serve]
port = 8070
diff --git a/core/simulator_ui/assets/style.css b/core/simulator_ui/assets/style.css
index 08201aa57..04adbe176 100644
--- a/core/simulator_ui/assets/style.css
+++ b/core/simulator_ui/assets/style.css
@@ -8,7 +8,7 @@ html, body {
width: 100%;
height: 100%;
overflow: hidden;
- background: #1a1a2e;
+ background: #070c17;
color: #e0e0e0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
diff --git a/core/simulator_ui/index.html b/core/simulator_ui/index.html
index e108b973f..f7dfb4607 100644
--- a/core/simulator_ui/index.html
+++ b/core/simulator_ui/index.html
@@ -1,17 +1,17 @@
-<!DOCTYPE html>
+<!doctype html>
<html lang="en">
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Apache Iggy - VSR Consensus Simulator</title>
- <link data-trunk rel="css" href="assets/style.css">
- <link data-trunk rel="rust" data-wasm-opt="z" data-cargo-all-features />
- <link data-trunk rel="copy-dir" href="assets" />
-</head>
-<body>
- <div id="loading">
- <h2>Apache Iggy</h2>
- <p>Loading VSR Consensus Simulator...</p>
- </div>
-</body>
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Apache Iggy - VSR Consensus Simulator</title>
+ <link data-trunk rel="css" href="assets/style.css" />
+ <link data-trunk rel="rust" data-wasm-opt="z" data-cargo-all-features />
+ <link data-trunk rel="copy-dir" href="../../assets" />
+ </head>
+ <body>
+ <div id="loading">
+ <h2>Apache Iggy</h2>
+ <p>Loading VSR Consensus Simulator...</p>
+ </div>
+ </body>
</html>
diff --git a/core/simulator_ui/src/app.rs b/core/simulator_ui/src/app.rs
deleted file mode 100644
index 6df76208c..000000000
--- a/core/simulator_ui/src/app.rs
+++ /dev/null
@@ -1,563 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-//! Main application struct implementing `eframe::App` for the VSR simulator.
-//!
-//! Minimalist game-HUD design: the cluster view is 100% of the screen with
-//! translucent overlay bars for controls and metrics.
-
-use crate::brand::BrandAssets;
-use crate::controls::fault_panel::{FaultAction, draw_fault_panel};
-use crate::render::cluster_view::draw_cluster;
-use crate::render::timeline::draw_timeline;
-use crate::state::animation::AnimationState;
-use crate::vsr::{SimEvent, VsrSimulator};
-use egui::Color32;
-
-// ---------------------------------------------------------------------------
-// Brand palette
-// ---------------------------------------------------------------------------
-
-const BACKGROUND: Color32 = Color32::from_rgb(0x07, 0x0c, 0x17);
-const CARD: Color32 = Color32::from_rgb(0x0e, 0x19, 0x30);
-const ORANGE: Color32 = Color32::from_rgb(0xff, 0x91, 0x03);
-const CREAM: Color32 = Color32::from_rgb(0xff, 0xfa, 0xeb);
-const MUTED: Color32 = Color32::from_rgb(0x83, 0x8d, 0x95);
-const BORDER: Color32 = Color32::from_rgb(0x3d, 0x44, 0x50);
-const TEAL: Color32 = Color32::from_rgb(0x14, 0xb8, 0xa6);
-const RED: Color32 = Color32::from_rgb(0xef, 0x44, 0x44);
-
-// ---------------------------------------------------------------------------
-// Application
-// ---------------------------------------------------------------------------
-
-/// The main VSR simulator application.
-pub struct SimulatorApp {
- brand: BrandAssets,
- simulator: VsrSimulator,
- animations: AnimationState,
- event_log: Vec<SimEvent>,
- replica_positions: Vec<egui::Pos2>,
- playing: bool,
- step_requested: bool,
- speed: f32,
- show_fault_panel: bool,
- total_commits: u64,
- ops_per_second: u64,
- commits_this_second: u64,
- last_second_tick: u64,
-}
-
-impl SimulatorApp {
- /// Create the application with a 3-replica simulator seeded at 42.
- pub fn new(cc: &eframe::CreationContext) -> Self {
- let brand = BrandAssets::load(&cc.egui_ctx);
-
- // Configure egui dark theme with brand colors.
- let mut visuals = egui::Visuals::dark();
-
- visuals.panel_fill = BACKGROUND;
- visuals.window_fill = CARD;
- visuals.extreme_bg_color = BACKGROUND;
- visuals.faint_bg_color = BACKGROUND;
- visuals.window_shadow = egui::Shadow::NONE;
-
- visuals.widgets.inactive.bg_fill = CARD;
- visuals.widgets.inactive.fg_stroke = egui::Stroke::new(1.0, CREAM);
- visuals.widgets.hovered.bg_fill = ORANGE.linear_multiply(0.2);
- visuals.widgets.hovered.fg_stroke = egui::Stroke::new(1.0, ORANGE);
- visuals.widgets.active.bg_fill = ORANGE.linear_multiply(0.4);
- visuals.widgets.active.fg_stroke = egui::Stroke::new(1.0, ORANGE);
- visuals.widgets.noninteractive.fg_stroke = egui::Stroke::new(1.0, CREAM);
- visuals.widgets.noninteractive.bg_fill = BACKGROUND;
-
- visuals.selection.bg_fill = ORANGE.linear_multiply(0.3);
- visuals.selection.stroke = egui::Stroke::new(1.0, ORANGE);
- visuals.override_text_color = Some(CREAM);
-
- cc.egui_ctx.set_visuals(visuals);
-
- cc.egui_ctx.style_mut(|s| {
- s.text_styles
- .insert(egui::TextStyle::Body, egui::FontId::proportional(14.0));
- s.text_styles
- .insert(egui::TextStyle::Button, egui::FontId::proportional(14.0));
- s.text_styles
- .insert(egui::TextStyle::Heading, egui::FontId::proportional(24.0));
- s.text_styles
- .insert(egui::TextStyle::Small, egui::FontId::proportional(11.0));
- });
-
- let replica_positions = vec![
- egui::pos2(300.0, 200.0),
- egui::pos2(500.0, 200.0),
- egui::pos2(400.0, 350.0),
- ];
-
- Self {
- brand,
- simulator: VsrSimulator::new(3, 42),
- animations: AnimationState::default(),
- event_log: Vec::new(),
- replica_positions,
- playing: false,
- step_requested: false,
- speed: 1.0,
- show_fault_panel: false,
- total_commits: 0,
- ops_per_second: 0,
- commits_this_second: 0,
- last_second_tick: 0,
- }
- }
-
- /// Run one simulation tick and process the resulting events.
- fn run_tick(&mut self) {
- let events = self.simulator.step();
- for event in &events {
- match event {
- SimEvent::MessageSent { message, .. } => {
- let from_idx = message.from as usize;
- let to_idx = message.to as usize;
- if from_idx < self.replica_positions.len()
- && to_idx < self.replica_positions.len()
- {
- let from_pos = self.replica_positions[from_idx];
- let to_pos = self.replica_positions[to_idx];
- let duration = 0.5 / self.speed;
- self.animations.add(
- message.id,
- message.msg_type,
- from_pos,
- to_pos,
- duration,
- );
- }
- }
- SimEvent::OperationCommitted { replica_id, .. } => {
- self.total_commits += 1;
- self.commits_this_second += 1;
- let idx = *replica_id as usize;
- if idx < self.replica_positions.len() {
- self.animations.add_commit_ring(self.replica_positions[idx]);
- }
- }
- _ => {}
- }
- }
-
- // Track ops/sec: every 60 ticks, snapshot.
- if self.simulator.tick >= self.last_second_tick + 60 {
- self.ops_per_second = self.commits_this_second;
- self.commits_this_second = 0;
- self.last_second_tick = self.simulator.tick;
- }
-
- self.event_log.extend(events);
- }
-
- /// Apply fault actions from the UI to the simulator.
- fn apply_faults(&mut self, actions: Vec<FaultAction>) {
- for action in actions {
- match action {
- FaultAction::Partition(a, b) => {
- self.simulator.network.partition(a, b);
- }
- FaultAction::Heal(a, b) => {
- self.simulator.network.heal(a, b);
- }
- FaultAction::Kill(id) => {
- self.simulator.kill_replica(id);
- }
- FaultAction::Restart(id) => {
- self.simulator.restart_replica(id);
- }
- }
- }
- }
-}
-
-impl eframe::App for SimulatorApp {
- fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
- let dt = ctx.input(|i| i.stable_dt);
-
- // Advance simulation ticks.
- if self.playing {
- let ticks = ((self.speed * 60.0 * dt) as usize).clamp(1, 20);
- for _ in 0..ticks {
- self.run_tick();
- }
- }
-
- if self.step_requested {
- self.run_tick();
- self.step_requested = false;
- }
-
- // Advance animations.
- self.animations.advance(dt);
-
- // -----------------------------------------------------------------
- // Fullscreen central panel -- everything draws here
- // -----------------------------------------------------------------
- egui::CentralPanel::default()
- .frame(
- egui::Frame::central_panel(&ctx.style())
- .fill(BACKGROUND)
- .inner_margin(egui::Margin::same(0)),
- )
- .show(ctx, |ui| {
- let rect = ui.max_rect();
- let painter = ui.painter_at(rect);
-
- // 1. Cluster view (the hero, fullscreen)
- let replicas = self.simulator.replica_states();
- self.replica_positions =
- draw_cluster(ui, &replicas, &self.animations, &self.simulator.network);
-
- // 2. Top HUD bar overlay (48px, translucent)
- let hud_rect = egui::Rect::from_min_size(rect.min, egui::vec2(rect.width(), 48.0));
- painter.rect_filled(
- hud_rect,
- 0.0,
- Color32::from_rgba_premultiplied(7, 12, 23, 200),
- );
- // Thin bottom edge line
- painter.line_segment(
- [
- egui::pos2(hud_rect.left(), hud_rect.bottom()),
- egui::pos2(hud_rect.right(), hud_rect.bottom()),
- ],
- egui::Stroke::new(
- 0.5,
- Color32::from_rgba_unmultiplied(BORDER.r(), BORDER.g(), BORDER.b(), 60),
- ),
- );
-
- // Logo on left
- let logo_h = 32.0;
- let logo_aspect =
- self.brand.logo.size()[0] as f32 / self.brand.logo.size()[1] as f32;
- let logo_w = logo_h * logo_aspect;
- let logo_rect = egui::Rect::from_min_size(
- egui::pos2(rect.min.x + 12.0, hud_rect.center().y - logo_h / 2.0),
- egui::vec2(logo_w, logo_h),
- );
- painter.image(
- self.brand.logo.id(),
- logo_rect,
- egui::Rect::from_min_max(egui::pos2(0.0, 0.0), egui::pos2(1.0, 1.0)),
- Color32::WHITE,
- );
-
- // Playback controls on the right side of the HUD bar (interactive)
- let controls_rect = egui::Rect::from_min_max(
- egui::pos2(rect.max.x - 280.0, hud_rect.min.y + 4.0),
- egui::pos2(rect.max.x - 8.0, hud_rect.max.y - 4.0),
- );
- ui.allocate_new_ui(egui::UiBuilder::new().max_rect(controls_rect), |ui| {
- ui.horizontal_centered(|ui| {
- ui.spacing_mut().item_spacing = egui::vec2(6.0, 0.0);
-
- // Play / Pause button
- let (play_icon, play_color) = if self.playing {
- ("\u{23F8}", ORANGE)
- } else {
- ("\u{25B6}", CREAM)
- };
- let play_btn = egui::Button::new(
- egui::RichText::new(play_icon)
- .size(20.0)
- .color(if self.playing { BACKGROUND } else { play_color }),
- )
- .fill(if self.playing {
- ORANGE
- } else {
- MUTED.linear_multiply(0.2)
- })
- .corner_radius(4.0)
- .min_size(egui::vec2(36.0, 32.0));
- if ui.add(play_btn).clicked() {
- self.playing = !self.playing;
- }
-
- // Step button
- let step_btn = egui::Button::new(
- egui::RichText::new("\u{23ED}").size(16.0).color(CREAM),
- )
- .fill(MUTED.linear_multiply(0.15))
- .stroke(egui::Stroke::new(0.5, BORDER))
- .corner_radius(4.0)
- .min_size(egui::vec2(30.0, 32.0));
- if ui.add(step_btn).clicked() {
- self.step_requested = true;
- }
-
- // Speed label
- ui.label(
- egui::RichText::new(format!("\u{00D7}{:.1}", self.speed))
- .size(14.0)
- .color(MUTED),
- );
-
- // Speed slider
- let slider = egui::Slider::new(&mut self.speed, 0.1..=10.0)
- .logarithmic(true)
- .show_value(false);
- ui.add_sized([60.0, 18.0], slider);
-
- // Send request button
- let send_btn = egui::Button::new(
- egui::RichText::new("\u{1F4E8}")
- .size(14.0)
- .color(BACKGROUND)
- .strong(),
- )
- .fill(ORANGE)
- .corner_radius(4.0)
- .min_size(egui::vec2(34.0, 32.0));
- if ui.add(send_btn).clicked() {
- self.simulator.inject_client_request();
- let new_events: Vec<SimEvent> = self.simulator.events
- [self.event_log.len().min(self.simulator.events.len())..]
- .to_vec();
- for event in &new_events {
- match event {
- SimEvent::MessageSent { message, .. } => {
- let from_idx = message.from as usize;
- let to_idx = message.to as usize;
- if from_idx < self.replica_positions.len()
- && to_idx < self.replica_positions.len()
- {
- let from_pos = self.replica_positions[from_idx];
- let to_pos = self.replica_positions[to_idx];
- self.animations.add(
- message.id,
- message.msg_type,
- from_pos,
- to_pos,
- 0.5 / self.speed,
- );
- }
- }
- SimEvent::OperationCommitted { replica_id, .. } => {
- self.total_commits += 1;
- let idx = *replica_id as usize;
- if idx < self.replica_positions.len() {
- self.animations
- .add_commit_ring(self.replica_positions[idx]);
- }
- }
- _ => {}
- }
- }
- self.event_log.extend(new_events);
- }
- });
- });
-
- // 3. Bottom HUD bar overlay (60px, translucent)
- let bottom_rect =
- egui::Rect::from_min_max(egui::pos2(rect.min.x, rect.max.y - 60.0), rect.max);
- painter.rect_filled(
- bottom_rect,
- 0.0,
- Color32::from_rgba_premultiplied(7, 12, 23, 180),
- );
- // Thin top edge line
- painter.line_segment(
- [
- egui::pos2(bottom_rect.left(), bottom_rect.top()),
- egui::pos2(bottom_rect.right(), bottom_rect.top()),
- ],
- egui::Stroke::new(
- 0.5,
- Color32::from_rgba_unmultiplied(BORDER.r(), BORDER.g(), BORDER.b(), 60),
- ),
- );
-
- // Timeline inside bottom HUD (left portion)
- let timeline_rect = egui::Rect::from_min_max(
- egui::pos2(bottom_rect.min.x + 12.0, bottom_rect.min.y + 6.0),
- egui::pos2(bottom_rect.max.x - 120.0, bottom_rect.max.y - 6.0),
- );
- let mut timeline_ui = ui.new_child(
- egui::UiBuilder::new()
- .max_rect(timeline_rect)
- .layout(egui::Layout::left_to_right(egui::Align::Center)),
- );
- draw_timeline(&mut timeline_ui, &self.event_log, self.simulator.tick);
-
- // Tick counter on right side of bottom HUD
- painter.text(
- egui::pos2(bottom_rect.max.x - 16.0, bottom_rect.center().y),
- egui::Align2::RIGHT_CENTER,
- format!("T {}", self.simulator.tick),
- egui::FontId::new(24.0, egui::FontFamily::Proportional),
- CREAM,
- );
-
- // 4. Top-right metrics overlay
- let metrics_rect = egui::Rect::from_min_size(
- egui::pos2(rect.max.x - 148.0, 56.0),
- egui::vec2(140.0, 108.0),
- );
- painter.rect_filled(
- metrics_rect,
- 8.0,
- Color32::from_rgba_premultiplied(14, 25, 48, 180),
- );
- painter.rect_stroke(
- metrics_rect,
- 8.0,
- egui::Stroke::new(
- 0.5,
- Color32::from_rgba_unmultiplied(BORDER.r(), BORDER.g(), BORDER.b(), 40),
- ),
- egui::StrokeKind::Outside,
- );
-
- let mx = metrics_rect.max.x - 12.0;
- let mut my = metrics_rect.min.y + 16.0;
-
- // OPS/s
- painter.text(
- egui::pos2(mx, my),
- egui::Align2::RIGHT_CENTER,
- "OPS/s",
- egui::FontId::new(11.0, egui::FontFamily::Proportional),
- MUTED,
- );
- my += 20.0;
- painter.text(
- egui::pos2(mx, my),
- egui::Align2::RIGHT_CENTER,
- self.ops_per_second.to_string(),
- egui::FontId::new(28.0, egui::FontFamily::Proportional),
- ORANGE,
- );
- my += 24.0;
-
- // COMMITS
- painter.text(
- egui::pos2(mx, my),
- egui::Align2::RIGHT_CENTER,
- "COMMITS",
- egui::FontId::new(11.0, egui::FontFamily::Proportional),
- MUTED,
- );
- my += 16.0;
- painter.text(
- egui::pos2(mx, my),
- egui::Align2::RIGHT_CENTER,
- self.total_commits.to_string(),
- egui::FontId::new(20.0, egui::FontFamily::Proportional),
- TEAL,
- );
-
- // VIEW (derive from primary)
- let view_number = self
- .simulator
- .replica_states()
- .iter()
- .find(|r| r.role == crate::vsr::Role::Primary && r.alive)
- .map(|r| r.view)
- .unwrap_or(0);
-
- let view_rect = egui::Rect::from_min_size(
- egui::pos2(metrics_rect.min.x, metrics_rect.max.y + 4.0),
- egui::vec2(140.0, 36.0),
- );
- painter.rect_filled(
- view_rect,
- 8.0,
- Color32::from_rgba_premultiplied(14, 25, 48, 180),
- );
- painter.text(
- egui::pos2(view_rect.max.x - 12.0, view_rect.min.y + 10.0),
- egui::Align2::RIGHT_CENTER,
- "VIEW",
- egui::FontId::new(11.0, egui::FontFamily::Proportional),
- MUTED,
- );
- painter.text(
- egui::pos2(view_rect.max.x - 12.0, view_rect.min.y + 26.0),
- egui::Align2::RIGHT_CENTER,
- view_number.to_string(),
- egui::FontId::new(20.0, egui::FontFamily::Proportional),
- CREAM,
- );
-
- // 5. Fault toggle button (below metrics)
- let fault_btn_rect = egui::Rect::from_min_size(
- egui::pos2(view_rect.min.x, view_rect.max.y + 4.0),
- egui::vec2(140.0, 28.0),
- );
- ui.allocate_new_ui(egui::UiBuilder::new().max_rect(fault_btn_rect), |ui| {
- let chaos_fill = if self.show_fault_panel {
- RED.linear_multiply(0.5)
- } else {
- MUTED.linear_multiply(0.12)
- };
- let chaos_btn = egui::Button::new(
- egui::RichText::new("\u{26A1} FAULTS")
- .size(14.0)
- .color(CREAM)
- .strong(),
- )
- .fill(chaos_fill)
- .corner_radius(6.0)
- .min_size(egui::vec2(140.0, 28.0));
- if ui.add(chaos_btn).clicked() {
- self.show_fault_panel = !self.show_fault_panel;
- }
- });
- });
-
- // -----------------------------------------------------------------
- // Fault injection window (toggled)
- // -----------------------------------------------------------------
- let mut fault_actions = Vec::new();
- if self.show_fault_panel {
- egui::Window::new("\u{26A1} Fault Injection")
- .anchor(egui::Align2::RIGHT_TOP, [-8.0, 240.0])
- .resizable(false)
- .collapsible(false)
- .default_width(260.0)
- .frame(
- egui::Frame::window(&ctx.style())
- .fill(CARD)
- .inner_margin(egui::Margin::same(12))
- .stroke(egui::Stroke::new(1.0, BORDER)),
- )
- .show(ctx, |ui| {
- fault_actions = draw_fault_panel(
- ui,
- self.simulator.replicas.len() as u8,
- &self.simulator.network,
- );
- });
- }
-
- self.apply_faults(fault_actions);
-
- // Only repaint when there is something moving.
- if self.playing || self.animations.has_active() {
- ctx.request_repaint();
- }
- }
-}
diff --git a/core/simulator_ui/src/brand.rs b/core/simulator_ui/src/brand.rs
deleted file mode 100644
index 39c95664a..000000000
--- a/core/simulator_ui/src/brand.rs
+++ /dev/null
@@ -1,42 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-//! Brand assets for the Apache Iggy VSR simulator UI.
-//!
-//! Provides the embedded logo texture.
-
-/// Holds pre-loaded brand textures so they can be painted every frame without
-/// re-uploading to the GPU.
-pub struct BrandAssets {
- pub logo: egui::TextureHandle,
-}
-
-impl BrandAssets {
- /// Load the Apache Iggy logo from the embedded PNG and register it with
- /// the egui renderer. Call once during app initialisation.
- pub fn load(ctx: &egui::Context) -> Self {
- let logo_bytes =
- include_bytes!("../../../assets/logo/0.5x/iggy-apache-color-darkbg@0.5x.png");
- let img = image::load_from_memory(logo_bytes)
- .expect("embedded logo PNG must be valid")
- .to_rgba8();
- let size = [img.width() as usize, img.height() as usize];
- let color_image = egui::ColorImage::from_rgba_unmultiplied(size, &img);
- let logo = ctx.load_texture("iggy_logo", color_image, egui::TextureOptions::LINEAR);
- Self { logo }
- }
-}
diff --git a/core/simulator_ui/src/controls/fault_panel.rs b/core/simulator_ui/src/controls/fault_panel.rs
deleted file mode 100644
index e9df164a4..000000000
--- a/core/simulator_ui/src/controls/fault_panel.rs
+++ /dev/null
@@ -1,160 +0,0 @@
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-//! Fault injection panel: kill/restart replicas and partition network links.
-
-use egui::{Color32, RichText};
-use strum_macros::{AsRefStr, Display, EnumIter};
-
-const CREAM: Color32 = Color32::from_rgb(0xff, 0xfa, 0xeb);
-const MUTED: Color32 = Color32::from_rgb(0x83, 0x8d, 0x95);
-const TEAL: Color32 = Color32::from_rgb(0x14, 0xb8, 0xa6);
-const RED: Color32 = Color32::from_rgb(0xef, 0x44, 0x44);
-const BORDER: Color32 = Color32::from_rgb(0x3d, 0x44, 0x50);
-const CARD: Color32 = Color32::from_rgb(0x0e, 0x19, 0x30);
-
-/// Actions that can be triggered from the fault injection panel.
-#[derive(Debug, Clone, PartialEq, Eq, Display, AsRefStr, EnumIter)]
-#[strum(serialize_all = "snake_case")]
-pub enum FaultAction {
- Partition(u8, u8),
- Heal(u8, u8),
- Kill(u8),
- Restart(u8),
-}
-
-/// Draw the fault injection panel. Returns a list of fault actions requested.
-pub fn draw_fault_panel(
- ui: &mut egui::Ui,
- replica_count: u8,
- network: &crate::vsr::Network,
-) -> Vec<FaultAction> {
- let mut actions = Vec::new();
-
- ui.spacing_mut().item_spacing = egui::vec2(8.0, 8.0);
-
- // Section header
- ui.label(RichText::new("FAULT INJECTION").size(12.0).color(MUTED));
- ui.add_space(8.0);
-
- // Replicas sub-header
- ui.label(RichText::new("REPLICAS").size(11.0).color(MUTED));
-
- // Per-replica kill/restart rows
- for i in 0..replica_count {
- let alive = network.is_alive(i);
- ui.horizontal(|ui| {
- ui.label(
- RichText::new(format!("R{i}"))
- .size(15.0)
- .color(CREAM)
- .strong(),
- );
- ui.add_space(8.0);
-
- if alive {
- let kill_btn =
- egui::Button::new(RichText::new("KILL").size(11.0).color(CREAM).strong())
- .fill(RED.linear_multiply(0.8))
- .corner_radius(3.0)
- .min_size(egui::vec2(60.0, 26.0));
-
- if ui.add(kill_btn).clicked() {
- actions.push(FaultAction::Kill(i));
- }
- } else {
- let restart_btn =
- egui::Button::new(RichText::new("RESTART").size(11.0).color(CREAM).strong())
- .fill(TEAL.linear_multiply(0.8))
- .corner_radius(3.0)
- .min_size(egui::vec2(60.0, 26.0));
-
- if ui.add(restart_btn).clicked() {
- actions.push(FaultAction::Restart(i));
- }
- }
- });
- }
-
- ui.add_space(12.0);
-
- // Network partitions sub-header
- ui.label(RichText::new("NETWORK PARTITIONS").size(11.0).color(MUTED));
-
- // NxN matrix grid
- let cell_size = 24.0;
- egui::Grid::new("partition_matrix")
- .spacing([4.0, 4.0])
- .show(ui, |ui| {
- // Header row: empty corner + column headers
- ui.label(RichText::new("").size(11.0));
- for j in 0..replica_count {
- ui.label(RichText::new(format!("R{j}")).size(11.0).color(MUTED));
- }
- ui.end_row();
-
- // Data rows
- for i in 0..replica_count {
- // Row header
- ui.label(RichText::new(format!("R{i}")).size(11.0).color(MUTED));
-
- for j in 0..replica_count {
- if i == j {
- // Diagonal: dark CARD cell
- let (rect, _) = ui.allocate_exact_size(
- egui::vec2(cell_size, cell_size),
- egui::Sense::hover(),
- );
- ui.painter().rect_filled(rect, 2.0, CARD);
- ui.painter().rect_stroke(
- rect,
- 2.0,
- egui::Stroke::new(1.0, BORDER),
- egui::epaint::StrokeKind::Inside,
- );
- } else {
- let partitioned = network.is_partitioned(i, j);
- let color = if partitioned { RED } else { TEAL };
-
- let (rect, response) = ui.allocate_exact_size(
- egui::vec2(cell_size, cell_size),
- egui::Sense::click(),
- );
-
- let fill = if response.hovered() {
- color.linear_multiply(0.7)
- } else {
- color
- };
- ui.painter().rect_filled(rect, 2.0, fill);
- ui.painter().rect_stroke(
- rect,
- 2.0,
- egui::Stroke::new(1.0, BORDER),
- egui::epaint::StrokeKind::Inside,
- );
-
- if response.clicked() {
- if partitioned {
- actions.push(FaultAction::Heal(i, j));
- } else {
- actions.push(FaultAction::Partition(i, j));
- }
- }
- }
- }
- ui.end_row();
- }
- });
-
- actions
-}
diff --git a/core/simulator_ui/src/controls/mod.rs b/core/simulator_ui/src/controls/mod.rs
deleted file mode 100644
index 509a7cf9e..000000000
--- a/core/simulator_ui/src/controls/mod.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-//! Control panel modules for playback and fault injection.
-
-pub mod fault_panel;
-pub mod playback;
diff --git a/core/simulator_ui/src/controls/playback.rs b/core/simulator_ui/src/controls/playback.rs
deleted file mode 100644
index 403814342..000000000
--- a/core/simulator_ui/src/controls/playback.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-//! Compact horizontal playback bar rendered inline in the header.
-//! Playback controls are now inline in app.rs.
diff --git a/core/simulator_ui/src/main.rs b/core/simulator_ui/src/main.rs
index 59dd266ec..a48e318e1 100644
--- a/core/simulator_ui/src/main.rs
+++ b/core/simulator_ui/src/main.rs
@@ -15,40 +15,2851 @@
// specific language governing permissions and limitations
// under the License.
-mod app;
-mod brand;
-mod controls;
-mod render;
-mod state;
mod vsr;
-use app::SimulatorApp;
+use bevy::asset::AssetPlugin;
+use bevy::prelude::*;
+use bevy_prototype_lyon::prelude::*;
+use std::f32::consts::PI;
-#[cfg(not(target_arch = "wasm32"))]
-fn main() -> eframe::Result<()> {
- env_logger::init();
- let options = eframe::NativeOptions {
- viewport: egui::ViewportBuilder::default().with_inner_size([1400.0, 900.0]),
- ..Default::default()
- };
- eframe::run_native(
- "Apache Iggy - VSR Consensus Simulator",
- options,
- Box::new(|cc| Ok(Box::new(SimulatorApp::new(cc)))),
- )
+// -- Apache Iggy brand palette (matches iggy.apache.org dark theme) ---------
+
+const BG_DARK: Color = Color::srgb_u8(0x07, 0x0c, 0x17); // website main bg
+const BG_PANEL: Color = Color::srgb_u8(0x0c, 0x12, 0x20); // card/panel bg
+const NEON_CYAN: Color = Color::srgb_u8(0x67, 0xe8, 0xf9); // entity cyan
+const NEON_MAGENTA: Color = Color::srgb_u8(0xfa, 0x5e, 0x8a); // gradient pink
+const NEON_YELLOW: Color = Color::srgb_u8(0xfe, 0xbc, 0x2e); // macOS yellow
+const IGGY_ORANGE: Color = Color::srgb_u8(0xff, 0x91, 0x03); // brand primary #ff9103
+const COOL_WHITE: Color = Color::srgb_u8(0xff, 0xfa, 0xeb); // website cream text
+const DIM_GRAY: Color = Color::srgb_u8(0xaa, 0xaf, 0xb6); // website muted text
+const GRID_LINE: Color = Color::srgb_u8(0x11, 0x1d, 0x35); // dark overlay blue
+const HUD_EDGE: Color = Color::srgb_u8(0x3d, 0x44, 0x50); // border/line color
+const HUD_ALERT: Color = Color::srgb_u8(0xff, 0x5f, 0x57); // macOS red
+
+// -- Layout constants -------------------------------------------------------
+
+const REPLICA_COUNT: u8 = 3;
+const CIRCLE_RADIUS: f32 = 300.0;
+const WORLD_CENTER_Y: f32 = 90.0;
+const IGGY_SPRITE_SIZE: Vec2 = Vec2::new(210.0, 176.0);
+const MSG_DURATION: f32 = 0.5;
+const TRAIL_LIFETIME: f32 = 0.25;
+const SCAN_LINE_COUNT: usize = 4;
+const AMBIENT_PARTICLE_COUNT: usize = 60;
+const ORBIT_DOTS_PER_REPLICA: usize = 5;
+const COMMIT_RING_LIFETIME: f32 = 0.7;
+const SCREEN_FLASH_DURATION: f32 = 0.25;
+const SPEED_LINE_LIFETIME: f32 = 0.15;
+
+// -- Resources --------------------------------------------------------------
+
+#[derive(Resource)]
+struct SimState {
+ simulator: vsr::VsrSimulator,
+ playing: bool,
+ speed: f32,
+ tick_accumulator: f32,
+ total_commits: u64,
+ ops_per_second: f64,
+ ops_window_start: f64,
+ ops_window_count: u64,
+ frame_count: u64,
+}
+
+impl Default for SimState {
+ fn default() -> Self {
+ Self {
+ simulator: vsr::VsrSimulator::new(REPLICA_COUNT, 42),
+ playing: true,
+ speed: 1.0,
+ tick_accumulator: 0.0,
+ total_commits: 0,
+ ops_per_second: 0.0,
+ ops_window_start: 0.0,
+ ops_window_count: 0,
+ frame_count: 0,
+ }
+ }
+}
+
+#[derive(Resource)]
+struct ReplicaPositions(Vec<Vec2>);
+
+impl Default for ReplicaPositions {
+ fn default() -> Self {
+ let mut positions = Vec::with_capacity(REPLICA_COUNT as usize);
+ for i in 0..REPLICA_COUNT {
+ let angle = 2.0 * PI * (i as f32) / (REPLICA_COUNT as f32) - PI / 2.0;
+ positions.push(Vec2::new(
+ CIRCLE_RADIUS * angle.cos(),
+ CIRCLE_RADIUS * angle.sin() + WORLD_CENTER_Y,
+ ));
+ }
+ Self(positions)
+ }
+}
+
+#[derive(Resource)]
+struct ReplicaFxState {
+ kill: [f32; REPLICA_COUNT as usize],
+ revive: [f32; REPLICA_COUNT as usize],
+ healthy: [f32; REPLICA_COUNT as usize],
+ last_alive: [bool; REPLICA_COUNT as usize],
+ last_status: [vsr::Status; REPLICA_COUNT as usize],
+ callout_timer: [f32; REPLICA_COUNT as usize],
+ callout_text: [String; REPLICA_COUNT as usize],
+ callout_color: [Color; REPLICA_COUNT as usize],
+}
+
+impl Default for ReplicaFxState {
+ fn default() -> Self {
+ Self {
+ kill: [0.0; REPLICA_COUNT as usize],
+ revive: [0.0; REPLICA_COUNT as usize],
+ healthy: [0.0; REPLICA_COUNT as usize],
+ last_alive: [true; REPLICA_COUNT as usize],
+ last_status: [vsr::Status::Normal; REPLICA_COUNT as usize],
+ callout_timer: [0.0; REPLICA_COUNT as usize],
+ callout_text: std::array::from_fn(|_| String::new()),
+ callout_color: [COOL_WHITE; REPLICA_COUNT as usize],
+ }
+ }
+}
+
+#[derive(Resource)]
+struct AppFxState {
+ pulse: [f32; 4],
+}
+
+impl Default for AppFxState {
+ fn default() -> Self {
+ Self { pulse: [0.0; 4] }
+ }
+}
+
+const EVENT_LOG_MAX: usize = 200;
+
+#[derive(Clone)]
+struct EventLogEntry {
+ tick: u64,
+ icon: &'static str,
+ headline: String,
+ detail: String,
+ color: Color,
+}
+
+#[derive(Resource)]
+struct EventLog {
+ entries: Vec<EventLogEntry>,
+ visible: bool,
+ show_details: bool,
+}
+
+impl Default for EventLog {
+ fn default() -> Self {
+ Self {
+ entries: Vec::with_capacity(EVENT_LOG_MAX),
+ visible: false,
+ show_details: false,
+ }
+ }
+}
+
+impl EventLog {
+ fn push(&mut self, entry: EventLogEntry) {
+ if self.entries.len() >= EVENT_LOG_MAX {
+ self.entries.remove(0);
+ }
+ self.entries.push(entry);
+ }
+}
+
+fn dog_name(id: u8) -> &'static str {
+ match id {
+ 0 => "Iggy",
+ 1 => "Zippy",
+ 2 => "Dash",
+ 3 => "Bolt",
+ 4 => "Flash",
+ _ => "Pup",
+ }
+}
+
+fn narrate_event(event: &vsr::SimEvent) -> Option<EventLogEntry> {
+ match event {
+ vsr::SimEvent::ClientRequest { tick, replica_id, .. } => {
+ let name = dog_name(*replica_id);
+ Some(EventLogEntry {
+ tick: *tick,
+ icon: "[REQ]",
+ headline: format!("Ball thrown to {name}!"),
+ detail: format!(
+ "A client tossed a new request to {name} (R{replica_id}). \
+ As lead dog, {name} will replicate it to the pack before confirming."
+ ),
+ color: IGGY_ORANGE,
+ })
+ }
+ vsr::SimEvent::PrepareQueued { tick, replica_id, op, pipeline_depth, .. } => {
+ let name = dog_name(*replica_id);
+ Some(EventLogEntry {
+ tick: *tick,
+ icon: "[QUE]",
+ headline: format!("{name} queued op #{op}"),
+ detail: format!(
+ "{name} added operation #{op} to the pipeline ({pipeline_depth}/8 slots used). \
+ Now broadcasting Prepare to the pack -- every dog must log this before it counts."
+ ),
+ color: Color::srgb_u8(95, 135, 253),
+ })
+ }
+ vsr::SimEvent::PrepareAcked { tick, replica_id, op, ack_from, ack_count, quorum, quorum_reached, .. } => {
+ let lead = dog_name(*replica_id);
+ let acker = dog_name(*ack_from);
+ let status = if *quorum_reached {
+ format!("That's {ack_count}/{quorum} -- quorum reached! {lead} can now commit.")
+ } else {
+ format!("That's {ack_count}/{quorum} acks. Need {} more for quorum.", quorum - ack_count)
+ };
+ Some(EventLogEntry {
+ tick: *tick,
+ icon: if *quorum_reached { "[OK!]" } else { "[ACK]" },
+ headline: format!("{acker} acked op #{op}{}", if *quorum_reached { " -- QUORUM!" } else { "" }),
+ detail: format!(
+ "{acker} (R{ack_from}) confirmed it logged operation #{op}. {status}"
+ ),
+ color: if *quorum_reached { IGGY_ORANGE } else { Color::srgb_u8(20, 184, 166) },
+ })
+ }
+ vsr::SimEvent::OperationCommitted { tick, replica_id, op, .. } => {
+ let name = dog_name(*replica_id);
+ Some(EventLogEntry {
+ tick: *tick,
+ icon: "[WIN]",
+ headline: format!("{name} committed op #{op}!"),
+ detail: format!(
+ "Operation #{op} is officially committed on {name} (R{replica_id}). \
+ The pack agreed -- this data is now durable and safe. Good boy!"
+ ),
+ color: IGGY_ORANGE,
+ })
+ }
+ vsr::SimEvent::MessageSent { tick, message, .. } => {
+ let from = dog_name(message.from);
+ let to = dog_name(message.to);
+ let (icon, headline, detail) = match message.msg_type {
+ vsr::MessageType::Prepare => (
+ "[PRE]",
+ format!("{from} -> {to}: Prepare"),
+ format!(
+ "{from} sent a Prepare for op #{} (view {}) to {to}. \
+ Asking {to} to log this operation and ack back.",
+ message.op, message.view
+ ),
+ ),
+ vsr::MessageType::PrepareOk => (
+ "[POK]",
+ format!("{from} -> {to}: PrepareOk"),
+ format!(
+ "{from} confirmed to {to}: \"I logged op #{}!\" \
+ One step closer to quorum.",
+ message.op
+ ),
+ ),
+ vsr::MessageType::StartViewChange => (
+ "[SVC]",
+ format!("{from} howls: StartViewChange!"),
+ format!(
+ "{from} suspects the lead dog is down! Broadcasting view change \
+ to view {} -- the pack needs a new leader.",
+ message.view
+ ),
+ ),
+ vsr::MessageType::DoViewChange => (
+ "[DVC]",
+ format!("{from} -> {to}: DoViewChange"),
+ format!(
+ "{from} is voting for {to} to become the new lead dog in view {}. \
+ Sending its log state so the new leader has all committed data.",
+ message.view
+ ),
+ ),
+ vsr::MessageType::StartView => (
+ "[NEW]",
+ format!("{from} announces: I'm lead dog!"),
+ format!(
+ "{from} won the election for view {}! Broadcasting StartView to the pack -- \
+ everyone sync up and follow the new leader.",
+ message.view
+ ),
+ ),
+ vsr::MessageType::ClientReply => (
+ "[RPL]",
+ format!("{from} returned the ball!"),
+ format!(
+ "{from} sent a reply to the client. The request for op #{} \
+ was committed and acknowledged. Fetch complete!",
+ message.op
+ ),
+ ),
+ vsr::MessageType::ClientRequest => (
+ "[REQ]",
+ format!("Ball thrown to {to}"),
+ format!("New client request heading to {to}."),
+ ),
+ vsr::MessageType::Commit => (
+ "[CMT]",
+ format!("{from} -> {to}: Commit"),
+ format!("{from} notified {to} that op #{} is committed.", message.op),
+ ),
+ };
+ Some(EventLogEntry {
+ tick: *tick,
+ icon,
+ headline,
+ detail,
+ color: message.msg_type.color(),
+ })
+ }
+ vsr::SimEvent::MessageDropped { tick, message_id, .. } => {
+ Some(EventLogEntry {
+ tick: *tick,
+ icon: "[DRP]",
+ headline: format!("Message #{message_id} lost in the wind!"),
+ detail: "A message was dropped by the network -- it never arrived. \
+ This can happen due to partitions or packet loss. The sender won't \
+ know until a timeout fires.".to_string(),
+ color: NEON_MAGENTA,
+ })
+ }
+ vsr::SimEvent::ViewChangeStarted { tick, replica_id, old_view, new_view, reason, .. } => {
+ let name = dog_name(*replica_id);
+ let reason_text = match reason {
+ vsr::ViewChangeReason::HeartbeatTimeout =>
+ format!("{name} hasn't heard from the lead dog in too long (heartbeat timeout)."),
+ vsr::ViewChangeReason::ViewChangeTimeout =>
+ "The view change itself timed out -- the pack couldn't agree fast enough.".to_string(),
+ vsr::ViewChangeReason::ReceivedStartViewChange =>
+ format!("{name} heard another dog howling for a view change and joined in."),
+ vsr::ViewChangeReason::ReceivedDoViewChange =>
+ format!("{name} received a DoViewChange vote, triggering its own view change."),
+ };
+ Some(EventLogEntry {
+ tick: *tick,
+ icon: "[VCH]",
+ headline: format!("{name} started view change! (v{old_view} -> v{new_view})"),
+ detail: format!(
+ "{reason_text} The pack is reshuffling -- \
+ the dog at position (view {new_view} mod {REPLICA_COUNT}) = R{} \
+ will become the new lead dog if quorum agrees.",
+ new_view % REPLICA_COUNT as u32
+ ),
+ color: NEON_MAGENTA,
+ })
+ }
+ vsr::SimEvent::PrimaryElected { tick, replica_id, view, .. } => {
+ let name = dog_name(*replica_id);
+ Some(EventLogEntry {
+ tick: *tick,
+ icon: "[LDR]",
+ headline: format!("{name} is the new lead dog! (view {view})"),
+ detail: format!(
+ "{name} (R{replica_id}) collected enough DoViewChange votes and is now \
+ the lead dog for view {view}. The pack will follow {name}'s lead \
+ for all new operations. Broadcasting StartView to synchronize everyone."
+ ),
+ color: NEON_YELLOW,
+ })
+ }
+ vsr::SimEvent::ReplicaStateChanged { tick, replica_id, old_status, new_status, role, .. } => {
+ let name = dog_name(*replica_id);
+ let role_str = match role {
+ vsr::Role::Primary => "lead dog",
+ vsr::Role::Backup => "pack dog",
+ };
+ let transition = match (old_status, new_status) {
+ (vsr::Status::Normal, vsr::Status::ViewChange) =>
+ format!("{name} was running fine but now senses trouble -- howling for a new leader!"),
+ (vsr::Status::ViewChange, vsr::Status::Normal) =>
+ format!("{name} finished the view change and is back to running! The pack is stable again."),
+ (vsr::Status::Recovering, vsr::Status::Normal) =>
+ format!("{name} finished recovering and rejoined the race! Back on all four paws."),
+ (vsr::Status::Normal, vsr::Status::Recovering) =>
+ format!("{name} stumbled and is now recovering -- needs to catch up with the pack."),
+ _ =>
+ format!("{name} changed from {old_status:?} to {new_status:?}."),
+ };
+ Some(EventLogEntry {
+ tick: *tick,
+ icon: match new_status {
+ vsr::Status::Normal => "[RUN]",
+ vsr::Status::ViewChange => "[HWL]",
+ vsr::Status::Recovering => "[LMP]",
+ },
+ headline: format!("{name} ({role_str}): {old_status:?} -> {new_status:?}"),
+ detail: transition,
+ color: match new_status {
+ vsr::Status::Normal => NEON_CYAN,
+ vsr::Status::ViewChange => NEON_MAGENTA,
+ vsr::Status::Recovering => NEON_YELLOW,
+ },
+ })
+ }
+ vsr::SimEvent::LinkPartitioned { tick, from, to, .. } => {
+ let a = dog_name(*from);
+ let b = dog_name(*to);
+ Some(EventLogEntry {
+ tick: *tick,
+ icon: "[FNC]",
+ headline: format!("Fence between {a} and {b}!"),
+ detail: format!(
+ "A network partition cut the link between {a} (R{from}) and {b} (R{to}). \
+ They can't hear each other anymore. If one side loses quorum, \
+ it won't be able to commit new operations."
+ ),
+ color: NEON_MAGENTA,
+ })
+ }
+ vsr::SimEvent::LinkHealed { tick, from, to, .. } => {
+ let a = dog_name(*from);
+ let b = dog_name(*to);
+ Some(EventLogEntry {
+ tick: *tick,
+ icon: "[HEL]",
+ headline: format!("Path clear between {a} and {b}!"),
+ detail: format!(
+ "The partition between {a} (R{from}) and {b} (R{to}) healed. \
+ Messages can flow again -- the pack can reunite."
+ ),
+ color: NEON_CYAN,
+ })
+ }
+ vsr::SimEvent::Tick { .. } | vsr::SimEvent::MessageDelivered { .. } => None,
+ }
+}
+
+#[derive(Component)]
+struct ReplicaGlow {
+ id: u8,
+}
+
+#[derive(Component)]
+struct ReplicaNeonOutline {
+ id: u8,
+}
+
+#[derive(Component)]
+struct ReplicaBody {
+ id: u8,
+}
+
+#[derive(Component)]
+struct ReplicaShadow {
+ id: u8,
+}
+
+#[derive(Component)]
+struct ReplicaIdText {
+ id: u8,
+}
+
+#[derive(Component)]
+struct ReplicaRoleText {
+ id: u8,
+}
+
+#[derive(Component)]
+struct ReplicaCalloutText {
+ id: u8,
+}
+
+#[derive(Component)]
+struct ReplicaSleepText {
+ id: u8,
+ layer: u8,
+}
+
+#[derive(Component)]
+struct AppCard {
+ id: usize,
+ anchor: Vec2,
+ accent: Color,
+}
+
+#[derive(Component)]
+struct AppCardLabel {
+ id: usize,
+ anchor: Vec2,
+}
+
+#[derive(Component)]
+struct AppLink {
+ id: usize,
+ anchor: Vec2,
+ target_replica: u8,
+ accent: Color,
+ inbound: bool,
+}
+
+#[derive(Component, Clone, Copy)]
+struct AppIcon {
+ id: usize,
+ anchor: Vec2,
+ accent: Color,
+ kind: AppKind,
+}
+
+#[derive(Component)]
+struct AppFlowParticle {
+ replica_id: u8,
+ from: Vec2,
+ to: Vec2,
+ control: Vec2,
+ progress: f32,
+ speed: f32,
+ color: Color,
+}
+
+#[derive(Clone, Copy)]
+enum AppKind {
+ Producer,
+ Consumer,
+}
+
+#[derive(Component)]
+struct LinkLine {
+ from_id: u8,
+ to_id: u8,
+}
+
+#[derive(Component)]
+struct MessageParticle {
+ from: Vec2,
+ to: Vec2,
+ control: Vec2,
+ progress: f32,
+ duration: f32,
+ msg_type: vsr::MessageType,
+}
+
+#[derive(Component)]
+struct MessageGlow;
+
+#[derive(Component)]
+struct TrailDot {
+ lifetime: f32,
+ max_lifetime: f32,
+ color: Color,
+}
+
+#[derive(Component)]
+struct ScanLine {
+ speed: f32,
+}
+
+#[derive(Component)]
+struct HudTickText;
+
+#[derive(Component)]
+struct HudOpsText;
+
+#[derive(Component)]
+struct HudCommitsText;
+
+#[derive(Component)]
+struct HudStateText;
+
+#[derive(Component)]
+struct HudSpeedText;
+
+#[derive(Component)]
+struct PauseOverlay;
+
+#[derive(Component)]
+struct PauseMainText;
+
+#[derive(Component)]
+struct PauseSubtext;
+
+#[derive(Component)]
+struct GlowFlash {
+ id: u8,
+ timer: f32,
+ flash_color: Color,
+}
+
+#[derive(Component)]
+struct CommitRing {
+ center: Vec2,
+ lifetime: f32,
+ max_lifetime: f32,
+ color: Color,
+ max_radius: f32,
+}
+
+#[derive(Component)]
+struct AmbientParticle {
+ velocity: Vec2,
+ drift_phase: f32,
+ drift_speed: f32,
+ base_alpha: f32,
+}
+
+#[derive(Component)]
+struct EnergyOrbit {
+ replica_id: u8,
+ orbit_index: usize,
+ angle: f32,
+ radius: f32,
+ speed: f32,
+}
+
+#[derive(Resource)]
+struct ScreenFlash {
+ timer: f32,
+ color: Color,
+ intensity: f32,
+}
+
+impl Default for ScreenFlash {
+ fn default() -> Self {
+ Self {
+ timer: 0.0,
+ color: NEON_CYAN,
+ intensity: 0.0,
+ }
+ }
+}
+
+#[derive(Component)]
+struct ScreenFlashOverlay;
+
+#[derive(Component)]
+struct EventLogPanel;
+
+#[derive(Component)]
+struct EventLogContent;
+
+#[derive(Component)]
+struct EventLogToggleHint;
+
+#[derive(Component)]
+struct SpeedLine {
+ lifetime: f32,
+ max_lifetime: f32,
+ color: Color,
+}
+
+#[derive(Component)]
+struct TrackRing;
+
+#[derive(Resource)]
+struct TrackPulse {
+ energy: f32,
+}
+
+impl Default for TrackPulse {
+ fn default() -> Self {
+ Self { energy: 0.0 }
+ }
+}
+
+// -- Shape builder helpers --------------------------------------------------
+
+fn circle_shape(radius: f32) -> shapes::Circle {
+ shapes::Circle {
+ radius,
+ center: Vec2::ZERO,
+ }
+}
+
+fn rectangle_shape(width: f32, height: f32) -> shapes::Rectangle {
+ shapes::Rectangle {
+ extents: Vec2::new(width, height),
+ origin: shapes::RectangleOrigin::Center,
+ radii: None,
+ }
+}
+
+fn iggy_sprite_rect() -> Rect {
+ Rect::new(140.0, 0.0, 920.0, 652.0)
+}
+
+fn app_icon_path(kind: AppKind) -> ShapePath {
+ let mut path = ShapePath::new();
+
+ match kind {
+ AppKind::Producer => {
+ path = path
+ .move_to(Vec2::new(-24.0, 18.0))
+ .line_to(Vec2::new(18.0, 18.0))
+ .line_to(Vec2::new(18.0, -14.0))
+ .line_to(Vec2::new(-24.0, -14.0))
+ .close()
+ .move_to(Vec2::new(-18.0, 10.0))
+ .line_to(Vec2::new(8.0, 10.0))
+ .move_to(Vec2::new(-18.0, 3.0))
+ .line_to(Vec2::new(2.0, 3.0))
+ .move_to(Vec2::new(-18.0, -4.0))
+ .line_to(Vec2::new(6.0, -4.0))
+ .move_to(Vec2::new(24.0, 6.0))
+ .line_to(Vec2::new(34.0, 6.0))
+ .move_to(Vec2::new(24.0, 0.0))
+ .line_to(Vec2::new(34.0, 0.0))
+ .move_to(Vec2::new(24.0, -6.0))
+ .line_to(Vec2::new(34.0, -6.0));
+ }
+ AppKind::Consumer => {
+ path = path
+ .move_to(Vec2::new(-18.0, 18.0))
+ .line_to(Vec2::new(24.0, 18.0))
+ .line_to(Vec2::new(24.0, -14.0))
+ .line_to(Vec2::new(-18.0, -14.0))
+ .close()
+ .move_to(Vec2::new(-12.0, 8.0))
+ .line_to(Vec2::new(12.0, 8.0))
+ .move_to(Vec2::new(-12.0, 0.0))
+ .line_to(Vec2::new(12.0, 0.0))
+ .move_to(Vec2::new(-12.0, -8.0))
+ .line_to(Vec2::new(12.0, -8.0))
+ .move_to(Vec2::new(-28.0, 6.0))
+ .line_to(Vec2::new(-38.0, 6.0))
+ .move_to(Vec2::new(-28.0, 0.0))
+ .line_to(Vec2::new(-38.0, 0.0))
+ .move_to(Vec2::new(-28.0, -6.0))
+ .line_to(Vec2::new(-38.0, -6.0));
+ }
+ }
+
+ path
+}
+
+fn app_link_path(from: Vec2, to: Vec2, inbound: bool) -> ShapePath {
+ let dir = to - from;
+ let normal = Vec2::new(-dir.y, dir.x).normalize_or_zero();
+ let bend = if inbound { 70.0 } else { -70.0 };
+ let unit = dir.normalize_or_zero();
+ let start = from + unit * 42.0;
+ let end = to - unit * 96.0;
+ let control = (start + end) * 0.5 + normal * bend;
+
+ ShapePath::new()
+ .move_to(start)
+ .quadratic_bezier_to(control, end)
+}
+
+fn replica_link_path(from: Vec2, to: Vec2, bend: f32) -> ShapePath {
+ let dir = to - from;
+ let unit = dir.normalize_or_zero();
+ let normal = Vec2::new(-dir.y, dir.x).normalize_or_zero();
+ let start = from + unit * 92.0;
+ let end = to - unit * 92.0;
+ let control = (start + end) * 0.5 + normal * bend;
+
+ ShapePath::new()
+ .move_to(start)
+ .quadratic_bezier_to(control, end)
+}
+
+fn build_fill(geom: &impl Geometry<tess::path::path::Builder>, fill_color: Color) -> Shape {
+ ShapeBuilder::with(geom)
+ .fill(Fill::color(fill_color))
+ .build()
+}
+
+fn build_stroke(
+ geom: &impl Geometry<tess::path::path::Builder>,
+ stroke_color: Color,
+ stroke_width: f32,
+) -> Shape {
+ ShapeBuilder::with(geom)
+ .stroke(Stroke::new(stroke_color, stroke_width))
+ .build()
+}
+
+fn build_fill_stroke(
+ geom: &impl Geometry<tess::path::path::Builder>,
+ fill_color: Color,
+ stroke_color: Color,
+ stroke_width: f32,
+) -> Shape {
+ ShapeBuilder::with(geom)
+ .fill(Fill::color(fill_color))
+ .stroke(Stroke::new(stroke_color, stroke_width))
+ .build()
+}
+
+fn build_path_stroke(path: &ShapePath, stroke_color: Color, stroke_width: f32) -> Shape {
+ ShapeBuilder::with(path)
+ .stroke(Stroke::new(stroke_color, stroke_width))
+ .build()
+}
+
+// -- Helpers ----------------------------------------------------------------
+
+fn bezier_pos(from: Vec2, to: Vec2, control: Vec2, t: f32) -> Vec2 {
+ let inv = 1.0 - t;
+ inv * inv * from + 2.0 * inv * t * control + t * t * to
+}
+
+fn perpendicular_control(from: Vec2, to: Vec2, offset: f32) -> Vec2 {
+ let mid = (from + to) * 0.5;
+ let dir = to - from;
+ let perp = Vec2::new(-dir.y, dir.x).normalize_or_zero();
+ mid + perp * offset
}
-#[cfg(target_arch = "wasm32")]
+fn status_color(status: vsr::Status, alive: bool) -> Color {
+ if !alive {
+ return NEON_MAGENTA;
+ }
+ match status {
+ vsr::Status::Normal => NEON_CYAN,
+ vsr::Status::ViewChange => NEON_YELLOW,
+ vsr::Status::Recovering => NEON_MAGENTA,
+ }
+}
+
+fn role_label(role: vsr::Role, status: vsr::Status) -> &'static str {
+ match (role, status) {
+ (vsr::Role::Primary, vsr::Status::Normal) => "LEAD DOG / running",
+ (vsr::Role::Primary, vsr::Status::ViewChange) => "LEAD DOG / howling",
+ (vsr::Role::Primary, vsr::Status::Recovering) => "LEAD DOG / limping",
+ (vsr::Role::Backup, vsr::Status::Normal) => "PACK DOG / running",
+ (vsr::Role::Backup, vsr::Status::ViewChange) => "PACK DOG / howling",
+ (vsr::Role::Backup, vsr::Status::Recovering) => "PACK DOG / limping",
+ }
+}
+
+fn trigger_replica_callout(
+ replica_fx: &mut ReplicaFxState,
+ id: u8,
+ label: &str,
+ color: Color,
+ duration: f32,
+) {
+ let idx = id as usize;
+ replica_fx.callout_timer[idx] = duration;
+ replica_fx.callout_text[idx] = label.to_string();
+ replica_fx.callout_color[idx] = color;
+}
+
+// -- Entry point ------------------------------------------------------------
+
fn main() {
- console_error_panic_hook::set_once();
- let web_options = eframe::WebOptions::default();
- wasm_bindgen_futures::spawn_local(async {
- let _ = eframe::WebRunner::new()
- .start(
- "the_canvas_id",
- web_options,
- Box::new(|cc| Ok(Box::new(SimulatorApp::new(cc)))),
- )
- .await;
- });
+ App::new()
+ .add_plugins(DefaultPlugins
+ .set(WindowPlugin {
+ primary_window: Some(Window {
+ title: "VSR Simulator".to_string(),
+ resolution: (1400, 900).into(),
+ canvas: Some("#bevy-canvas".to_string()),
+ ..default()
+ }),
+ ..default()
+ })
+ .set(AssetPlugin {
+ file_path: "../../assets".to_string(),
+ ..default()
+ })
+ )
+ .add_plugins(ShapePlugin)
+ .insert_resource(ClearColor(BG_DARK))
+ .insert_resource(SimState::default())
+ .insert_resource(ReplicaPositions::default())
+ .insert_resource(ReplicaFxState::default())
+ .insert_resource(AppFxState::default())
+ .insert_resource(ScreenFlash::default())
+ .insert_resource(TrackPulse::default())
+ .insert_resource(EventLog::default())
+ .add_systems(Startup, setup_camera)
+ .add_systems(Startup, (setup_world, setup_hud).after(setup_camera))
+ .add_systems(
+ Update,
+ (
+ keyboard_input_system,
+ simulation_tick_system,
+ update_replica_visuals,
+ update_app_visuals,
+ update_app_flow_particles,
+ update_message_particles,
+ update_trail_dots,
+ update_link_lines,
+ update_hud_text,
+ update_pause_overlay,
+ update_scan_lines,
+ update_commit_rings,
+ update_ambient_particles,
+ update_energy_orbits,
+ update_screen_flash,
+ update_speed_lines,
+ update_track_ring,
+ update_event_log_panel,
+ ),
+ )
+ .run();
+}
+
+// -- Startup: camera --------------------------------------------------------
+
+fn setup_camera(mut commands: Commands) {
+ commands.spawn(Camera2d);
+}
+
+// -- Startup: world grid + track ring + greyhounds + links ------------------
+
+fn setup_world(
+ mut commands: Commands,
+ positions: Res<ReplicaPositions>,
+ asset_server: Res<AssetServer>,
+) {
+ let mascot_handle: Handle<Image> = asset_server.load("iggy.png");
+
+ // Diagonal grid (tactical arena feel)
+ for offset in [-420.0, -280.0, -140.0, 0.0, 140.0, 280.0, 420.0] {
+ let rising = shapes::Line(
+ Vec2::new(-700.0, -520.0 + offset),
+ Vec2::new(700.0, 880.0 + offset),
+ );
+ commands.spawn((
+ build_stroke(&rising, GRID_LINE.with_alpha(0.22), 0.75),
+ Transform::from_xyz(0.0, -90.0, -0.19),
+ ));
+ let falling = shapes::Line(
+ Vec2::new(-700.0, 880.0 - offset),
+ Vec2::new(700.0, -520.0 - offset),
+ );
+ commands.spawn((
+ build_stroke(&falling, GRID_LINE.with_alpha(0.16), 0.75),
+ Transform::from_xyz(0.0, -90.0, -0.19),
+ ));
+ }
+
+ // Framing diamonds
+ for (size, alpha, z) in [(640.0, 0.10, -0.14), (760.0, 0.04, -0.13)] {
+ commands.spawn((
+ build_stroke(&rectangle_shape(size, size), GRID_LINE.with_alpha(alpha), 1.0),
+ Transform {
+ translation: Vec3::new(0.0, WORLD_CENTER_Y, z),
+ rotation: Quat::from_rotation_z(PI / 4.0),
+ ..default()
+ },
+ ));
+ }
+
+ // Scan lines (faint horizontal, scrolling down)
+ for i in 0..SCAN_LINE_COUNT {
+ let y = -500.0 + (i as f32) * (1000.0 / SCAN_LINE_COUNT as f32);
+ let line = shapes::Line(Vec2::new(-700.0, 0.0), Vec2::new(700.0, 0.0));
+ commands.spawn((
+ ScanLine { speed: 30.0 + (i as f32) * 15.0 },
+ build_stroke(&line, NEON_CYAN.with_alpha(0.03), 1.0),
+ Transform::from_xyz(0.0, y, -0.05),
+ ));
+ }
+
+ // Track ring
+ commands.spawn((
+ TrackRing,
+ build_stroke(&circle_shape(CIRCLE_RADIUS), GRID_LINE.with_alpha(0.35), 0.9),
+ Transform::from_xyz(0.0, WORLD_CENTER_Y, 0.0),
+ ));
+ commands.spawn((
+ build_stroke(&circle_shape(CIRCLE_RADIUS - 18.0), GRID_LINE.with_alpha(0.12), 0.5),
+ Transform::from_xyz(0.0, WORLD_CENTER_Y, -0.01),
+ ));
+ commands.spawn((
+ build_stroke(&circle_shape(CIRCLE_RADIUS + 18.0), GRID_LINE.with_alpha(0.12), 0.5),
+ Transform::from_xyz(0.0, WORLD_CENTER_Y, -0.01),
+ ));
+
+ // Ambient floating particles
+ for i in 0..AMBIENT_PARTICLE_COUNT {
+ let phase = i as f32 / AMBIENT_PARTICLE_COUNT as f32;
+ let x = (phase * 17.3 + 0.5).fract() * 1600.0 - 800.0;
+ let y = (phase * 23.7 + 0.2).fract() * 1100.0 - 550.0;
+ let size = 0.8 + (phase * 7.1).fract() * 1.8;
+ let alpha = 0.04 + (phase * 13.3).fract() * 0.10;
+ let color = match i % 5 {
+ 0 => NEON_CYAN,
+ 1 => IGGY_ORANGE,
+ _ => COOL_WHITE,
+ };
+
+ commands.spawn((
+ AmbientParticle {
+ velocity: Vec2::new(
+ ((phase * 31.1).fract() - 0.5) * 12.0,
+ 8.0 + (phase * 11.7).fract() * 18.0,
+ ),
+ drift_phase: phase * PI * 2.0,
+ drift_speed: 0.4 + (phase * 5.3).fract() * 0.8,
+ base_alpha: alpha,
+ },
+ build_fill(&circle_shape(size), color.with_alpha(alpha)),
+ Transform::from_xyz(x, y, -0.08),
+ ));
+ }
+
+ // Energy orbit dots around each replica
+ for i in 0..REPLICA_COUNT {
+ let pos = positions.0[i as usize];
+ for j in 0..ORBIT_DOTS_PER_REPLICA {
+ let angle = (j as f32 / ORBIT_DOTS_PER_REPLICA as f32) * PI * 2.0;
+ let radius = 96.0 + (j as f32) * 3.0;
+ let speed = 1.2 + (j as f32) * 0.3;
+
+ commands.spawn((
+ EnergyOrbit {
+ replica_id: i,
+ orbit_index: j,
+ angle,
+ radius,
+ speed,
+ },
+ build_fill(&circle_shape(2.2), NEON_CYAN.with_alpha(0.0)),
+ Transform::from_xyz(pos.x, pos.y, 0.9),
+ ));
+ }
+ }
+
+ // Screen flash overlay (full-screen quad, initially transparent)
+ commands.spawn((
+ ScreenFlashOverlay,
+ Sprite::from_color(NEON_CYAN.with_alpha(0.0), Vec2::new(1600.0, 1100.0)),
+ Transform::from_xyz(0.0, 0.0, 90.0),
+ ));
+
+ // Spawn branded iggy replicas
+ for i in 0..REPLICA_COUNT {
+ let pos = positions.0[i as usize];
+ let is_primary = i == 0;
+ let sc = if is_primary { IGGY_ORANGE } else { NEON_CYAN };
+ let facing_right = pos.x < 0.0;
+
+ commands.spawn((
+ ReplicaShadow { id: i },
+ Sprite::from_color(BG_DARK.with_alpha(0.45), Vec2::new(118.0, 24.0)),
+ Transform::from_xyz(pos.x, pos.y - 84.0, 0.35),
+ ));
+
+ commands.spawn((
+ ReplicaGlow { id: i },
+ build_fill(&circle_shape(74.0), sc.with_alpha(0.12)),
+ Transform::from_xyz(pos.x, pos.y - 6.0, 0.5),
+ ));
+
+ commands.spawn((
+ ReplicaNeonOutline { id: i },
+ build_stroke(&circle_shape(82.0), sc.with_alpha(0.35), 2.0),
+ Transform::from_xyz(pos.x, pos.y - 2.0, 0.8),
+ ));
+
+ commands.spawn((
+ ReplicaBody { id: i },
+ Sprite {
+ image: mascot_handle.clone(),
+ rect: Some(iggy_sprite_rect()),
+ custom_size: Some(IGGY_SPRITE_SIZE),
+ flip_x: !facing_right,
+ ..default()
+ },
+ Transform::from_xyz(pos.x, pos.y + 8.0, 1.6),
+ ));
+
+ for (layer, glyph, size) in [(0u8, "z", 34.0), (1u8, "z", 28.0), (2u8, "z", 22.0)] {
+ commands.spawn((
+ ReplicaSleepText { id: i, layer },
+ Text2d::new(glyph),
+ TextFont {
+ font_size: size,
+ ..default()
+ },
+ TextColor(COOL_WHITE.with_alpha(0.9)),
+ Transform::from_xyz(pos.x + 60.0, pos.y + 88.0, 1.8),
+ Visibility::Hidden,
+ ));
+ }
+
+ // ID text below mascot (z=3)
+ commands.spawn((
+ ReplicaIdText { id: i },
+ Text2d::new(format!("R{i}")),
+ TextFont {
+ font_size: 28.0,
+ ..default()
+ },
+ TextColor(COOL_WHITE),
+ Transform::from_xyz(pos.x, pos.y - 112.0, 3.0),
+ ));
+
+ // Role + status info text below ID (z=3)
+ let label = if is_primary {
+ "LEAD DOG / running"
+ } else {
+ "PACK DOG / running"
+ };
+ let role_color = if is_primary { IGGY_ORANGE } else { DIM_GRAY };
+ commands.spawn((
+ ReplicaRoleText { id: i },
+ Text2d::new(label),
+ TextFont {
+ font_size: 11.0,
+ ..default()
+ },
+ TextColor(role_color),
+ Transform::from_xyz(pos.x, pos.y - 130.0, 3.0),
+ ));
+
+ commands.spawn((
+ ReplicaCalloutText { id: i },
+ Text2d::new(""),
+ TextFont {
+ font_size: 17.0,
+ ..default()
+ },
+ TextColor(COOL_WHITE.with_alpha(0.0)),
+ Transform::from_xyz(pos.x, pos.y + 118.0, 3.2),
+ Visibility::Hidden,
+ ));
+ }
+
+ // Link lines between every pair
+ for i in 0..REPLICA_COUNT {
+ for j in (i + 1)..REPLICA_COUNT {
+ let a = positions.0[i as usize];
+ let b = positions.0[j as usize];
+ let bend = if (i + j) % 2 == 0 { 56.0 } else { -56.0 };
+ let lane = replica_link_path(a, b, bend);
+
+ commands.spawn((
+ LinkLine {
+ from_id: i,
+ to_id: j,
+ },
+ build_path_stroke(&lane, GRID_LINE.with_alpha(0.65), 1.4),
+ Transform::from_xyz(0.0, 0.0, 0.05),
+ ));
+ }
+ }
+
+ let apps = [
+ (
+ 0usize,
+ "BALL THROWER",
+ AppKind::Producer,
+ Vec2::new(-560.0, 330.0),
+ 0u8,
+ IGGY_ORANGE,
+ true,
+ ),
+ (
+ 1usize,
+ "BALL FETCHER",
+ AppKind::Consumer,
+ Vec2::new(560.0, 330.0),
+ 1u8,
+ NEON_CYAN,
+ false,
+ ),
+ (
+ 2usize,
+ "TREAT DISPENSER",
+ AppKind::Producer,
+ Vec2::new(-560.0, 70.0),
+ 2u8,
+ NEON_YELLOW,
+ true,
+ ),
+ (
+ 3usize,
+ "TREAT GOBBLER",
+ AppKind::Consumer,
+ Vec2::new(560.0, 70.0),
+ 0u8,
+ COOL_WHITE,
+ false,
+ ),
+ ];
+
+ for (id, title, kind, anchor, target_replica, accent, inbound) in apps {
+ let target = positions.0[target_replica as usize];
+ let lane = app_link_path(anchor, target, inbound);
+ commands.spawn((
+ AppLink {
+ id,
+ anchor,
+ target_replica,
+ accent,
+ inbound,
+ },
+ build_path_stroke(&lane, accent.with_alpha(0.18), 1.5),
+ Transform::from_xyz(0.0, 0.0, 0.03),
+ ));
+
+ commands.spawn((
+ AppCard { id, anchor, accent },
+ build_fill(&circle_shape(50.0), accent.with_alpha(0.10)),
+ Transform::from_xyz(anchor.x, anchor.y, 1.2),
+ ));
+
+ commands.spawn((
+ AppIcon {
+ id,
+ anchor,
+ accent,
+ kind,
+ },
+ build_path_stroke(&app_icon_path(kind), accent.with_alpha(0.95), 2.4),
+ Transform::from_xyz(anchor.x, anchor.y + 4.0, 1.35),
+ ));
+
+ commands.spawn((
+ AppCardLabel { id, anchor },
+ Text2d::new(title),
+ TextFont {
+ font_size: 13.0,
+ ..default()
+ },
+ TextColor(COOL_WHITE),
+ Transform::from_xyz(anchor.x, anchor.y - 64.0, 1.3),
+ ));
+ }
+}
+
+// -- Startup: HUD overlay ---------------------------------------------------
+
+fn setup_hud(mut commands: Commands, asset_server: Res<AssetServer>) {
+ let sygnet_handle: Handle<Image> = asset_server.load("logo/4x/iggy-apache-sygnet-color-darkbg@4x.png");
+ let wordmark_handle: Handle<Image> = asset_server.load("logo/4x/iggy-apache-logo-wo-sygnet-light@4x.png");
+
+ commands
+ .spawn(Node {
+ width: Val::Percent(100.0),
+ height: Val::Percent(100.0),
+ ..default()
+ })
+ .with_children(|root| {
+ // ==================== TOP BAR ====================
+ root.spawn((
+ Node {
+ position_type: PositionType::Absolute,
+ left: Val::Px(0.0),
+ right: Val::Px(0.0),
+ top: Val::Px(0.0),
+ height: Val::Px(56.0),
+ padding: UiRect::axes(Val::Px(20.0), Val::Px(8.0)),
+ justify_content: JustifyContent::SpaceBetween,
+ align_items: AlignItems::Center,
+ ..default()
+ },
+ BackgroundColor(Color::srgba_u8(0x07, 0x0c, 0x17, 0xe8)),
+ ))
+ .with_children(|bar| {
+ // Left: title + stats row
+ bar.spawn(Node {
+ flex_direction: FlexDirection::Row,
+ align_items: AlignItems::Center,
+ column_gap: Val::Px(24.0),
+ ..default()
+ })
+ .with_children(|left| {
+ left.spawn((
+ Text::new("iggy::pack"),
+ TextFont { font_size: 16.0, ..default() },
+ TextColor(IGGY_ORANGE),
+ ));
+ // Treats
+ left.spawn(Node {
+ flex_direction: FlexDirection::Row,
+ align_items: AlignItems::Baseline,
+ column_gap: Val::Px(6.0),
+ ..default()
+ })
+ .with_children(|stat| {
+ stat.spawn((
+ Text::new("TREATS"),
+ TextFont { font_size: 9.0, ..default() },
+ TextColor(DIM_GRAY),
+ ));
+ stat.spawn((
+ HudCommitsText,
+ Text::new("0"),
+ TextFont { font_size: 20.0, ..default() },
+ TextColor(NEON_CYAN),
+ ));
+ });
+ // Laps/sec
+ left.spawn(Node {
+ flex_direction: FlexDirection::Row,
+ align_items: AlignItems::Baseline,
+ column_gap: Val::Px(6.0),
+ ..default()
+ })
+ .with_children(|stat| {
+ stat.spawn((
+ Text::new("LAPS/S"),
+ TextFont { font_size: 9.0, ..default() },
+ TextColor(DIM_GRAY),
+ ));
+ stat.spawn((
+ HudOpsText,
+ Text::new("0"),
+ TextFont { font_size: 20.0, ..default() },
+ TextColor(IGGY_ORANGE),
+ ));
+ });
+ });
+
+ // Center: sygnet + wordmark
+ bar.spawn(Node {
+ flex_direction: FlexDirection::Row,
+ align_items: AlignItems::Center,
+ column_gap: Val::Px(6.0),
+ ..default()
+ })
+ .with_children(|logo| {
+ logo.spawn((
+ ImageNode::new(sygnet_handle),
+ Node {
+ width: Val::Px(38.0),
+ height: Val::Px(29.0),
+ ..default()
+ },
+ ));
+ logo.spawn((
+ ImageNode::new(wordmark_handle),
+ Node {
+ width: Val::Px(78.0),
+ height: Val::Px(25.0),
+ ..default()
+ },
+ ));
+ });
+
+ // Right: state + tick
+ bar.spawn(Node {
+ flex_direction: FlexDirection::Row,
+ align_items: AlignItems::Center,
+ column_gap: Val::Px(16.0),
+ ..default()
+ })
+ .with_children(|right| {
+ right.spawn((
+ HudTickText,
+ Text::new("T 0"),
+ TextFont { font_size: 18.0, ..default() },
+ TextColor(COOL_WHITE),
+ ));
+ right.spawn(Node {
+ flex_direction: FlexDirection::Column,
+ align_items: AlignItems::End,
+ ..default()
+ })
+ .with_children(|col| {
+ col.spawn((
+ HudStateText,
+ Text::new("RACING"),
+ TextFont { font_size: 13.0, ..default() },
+ TextColor(NEON_CYAN),
+ ));
+ col.spawn((
+ HudSpeedText,
+ Text::new("x1.0"),
+ TextFont { font_size: 10.0, ..default() },
+ TextColor(DIM_GRAY),
+ ));
+ });
+ });
+ });
+
+ // ==================== BOTTOM BAR ====================
+ root.spawn((
+ Node {
+ position_type: PositionType::Absolute,
+ left: Val::Px(0.0),
+ right: Val::Px(0.0),
+ bottom: Val::Px(0.0),
+ padding: UiRect::axes(Val::Px(20.0), Val::Px(10.0)),
+ justify_content: JustifyContent::SpaceBetween,
+ align_items: AlignItems::Center,
+ border: UiRect::top(Val::Px(1.0)),
+ ..default()
+ },
+ BackgroundColor(Color::srgba_u8(0x07, 0x0c, 0x17, 0xe8)),
+ BorderColor::all(HUD_EDGE),
+ ))
+ .with_children(|bar| {
+ // Left: title + subtitle
+ bar.spawn(Node {
+ flex_direction: FlexDirection::Column,
+ row_gap: Val::Px(2.0),
+ ..default()
+ })
+ .with_children(|col| {
+ col.spawn((
+ Text::new("APACHE IGGY SIMULATOR"),
+ TextFont { font_size: 14.0, ..default() },
+ TextColor(COOL_WHITE),
+ ));
+ col.spawn((
+ Text::new("Italian greyhounds racing to consensus"),
+ TextFont { font_size: 10.0, ..default() },
+ TextColor(DIM_GRAY),
+ ));
+ });
+
+ // Center: keybinds
+ bar.spawn(Node {
+ flex_direction: FlexDirection::Row,
+ column_gap: Val::Px(8.0),
+ ..default()
+ })
+ .with_children(|keys| {
+ for (key, action, color) in [
+ ("SPACE", "race/rest", NEON_CYAN),
+ ("R", "throw ball", IGGY_ORANGE),
+ ("K", "trip dog", HUD_ALERT),
+ ("H", "heal pack", NEON_CYAN),
+ ("E", "event log", NEON_YELLOW),
+ ("UP/DN", "speed", DIM_GRAY),
+ ] {
+ keys.spawn(Node {
+ flex_direction: FlexDirection::Row,
+ align_items: AlignItems::Center,
+ column_gap: Val::Px(4.0),
+ ..default()
+ })
+ .with_children(|pair| {
+ pair.spawn((
+ Node {
+ padding: UiRect::axes(Val::Px(5.0), Val::Px(2.0)),
+ border: UiRect::all(Val::Px(1.0)),
+ ..default()
+ },
+ BackgroundColor(BG_PANEL),
+ BorderColor::all(color.with_alpha(0.4)),
+ ))
+ .with_children(|badge| {
+ badge.spawn((
+ Text::new(key),
+ TextFont { font_size: 10.0, ..default() },
+ TextColor(color),
+ ));
+ });
+ pair.spawn((
+ Text::new(action),
+ TextFont { font_size: 9.0, ..default() },
+ TextColor(DIM_GRAY),
+ ));
+ });
+ }
+ });
+
+ // Right: chips
+ bar.spawn(Node {
+ flex_direction: FlexDirection::Row,
+ column_gap: Val::Px(8.0),
+ ..default()
+ })
+ .with_children(|chips| {
+ for (label, color) in [
+ ("3 GREYHOUNDS", IGGY_ORANGE),
+ ("FAULT READY", HUD_ALERT),
+ ] {
+ chips.spawn((
+ Node {
+ padding: UiRect::axes(Val::Px(8.0), Val::Px(4.0)),
+ border: UiRect::all(Val::Px(1.0)),
+ ..default()
+ },
+ BackgroundColor(BG_PANEL.with_alpha(0.9)),
+ BorderColor::all(color.with_alpha(0.4)),
+ ))
+ .with_children(|chip| {
+ chip.spawn((
+ Text::new(label),
+ TextFont { font_size: 10.0, ..default() },
+ TextColor(color),
+ ));
+ });
+ }
+ });
+ });
+
+ // ==================== PAUSED OVERLAY ====================
+ root.spawn((
+ PauseOverlay,
+ Node {
+ position_type: PositionType::Absolute,
+ width: Val::Percent(100.0),
+ height: Val::Percent(100.0),
+ justify_content: JustifyContent::Center,
+ align_items: AlignItems::Center,
+ flex_direction: FlexDirection::Column,
+ row_gap: Val::Px(8.0),
+ ..default()
+ },
+ Visibility::Hidden,
+ ))
+ .with_children(|col| {
+ col.spawn((
+ PauseMainText,
+ Text::new("RESTING"),
+ TextFont { font_size: 52.0, ..default() },
+ TextColor(NEON_YELLOW),
+ ));
+ col.spawn((
+ PauseSubtext,
+ Text::new("press SPACE to unleash"),
+ TextFont { font_size: 16.0, ..default() },
+ TextColor(DIM_GRAY),
+ ));
+ });
+
+ // ==================== EVENT LOG PANEL ====================
+ // Sits between top bar (56px) and bottom bar (~48px)
+ root.spawn((
+ EventLogPanel,
+ Node {
+ position_type: PositionType::Absolute,
+ right: Val::Px(0.0),
+ top: Val::Px(58.0),
+ bottom: Val::Px(50.0),
+ width: Val::Px(360.0),
+ flex_direction: FlexDirection::Column,
+ padding: UiRect::all(Val::Px(12.0)),
+ border: UiRect::left(Val::Px(2.0)),
+ overflow: Overflow::clip_y(),
+ ..default()
+ },
+ BackgroundColor(Color::srgba_u8(0x07, 0x0c, 0x17, 0xf2)),
+ BorderColor::all(IGGY_ORANGE.with_alpha(0.3)),
+ Visibility::Hidden,
+ ))
+ .with_children(|panel| {
+ panel.spawn((
+ Text::new("PACK ACTIVITY LOG"),
+ TextFont { font_size: 13.0, ..default() },
+ TextColor(IGGY_ORANGE),
+ Node { margin: UiRect::bottom(Val::Px(4.0)), ..default() },
+ ));
+ panel.spawn((
+ Text::new("[D] toggle details [E] close"),
+ TextFont { font_size: 9.0, ..default() },
+ TextColor(DIM_GRAY),
+ Node { margin: UiRect::bottom(Val::Px(8.0)), ..default() },
+ ));
+ panel.spawn((
+ Node {
+ width: Val::Percent(100.0),
+ height: Val::Px(1.0),
+ margin: UiRect::bottom(Val::Px(6.0)),
+ ..default()
+ },
+ BackgroundColor(IGGY_ORANGE.with_alpha(0.25)),
+ ));
+ panel.spawn((
+ EventLogContent,
+ Node {
+ flex_direction: FlexDirection::ColumnReverse,
+ flex_grow: 1.0,
+ overflow: Overflow::clip_y(),
+ row_gap: Val::Px(2.0),
+ ..default()
+ },
+ ));
+ });
+
+ // Event log toggle hint (hidden when log is open)
+ root.spawn((
+ EventLogToggleHint,
+ Node {
+ position_type: PositionType::Absolute,
+ right: Val::Px(16.0),
+ bottom: Val::Px(54.0),
+ ..default()
+ },
+ ))
+ .with_children(|hint| {
+ hint.spawn((
+ Text::new("[E] event log"),
+ TextFont { font_size: 10.0, ..default() },
+ TextColor(DIM_GRAY),
+ ));
+ });
+ });
+}
+
+// -- Update: keyboard input -------------------------------------------------
+
+fn keyboard_input_system(keys: Res<ButtonInput<KeyCode>>, mut sim: ResMut<SimState>, mut event_log: ResMut<EventLog>) {
+ if keys.just_pressed(KeyCode::Space) {
+ sim.playing = !sim.playing;
+ }
+
+ if keys.just_pressed(KeyCode::ArrowRight) && !sim.playing {
+ sim.simulator.step();
+ }
+
+ if keys.just_pressed(KeyCode::ArrowUp) {
+ sim.speed = (sim.speed * 1.5).min(16.0);
+ }
+ if keys.just_pressed(KeyCode::ArrowDown) {
+ sim.speed = (sim.speed / 1.5).max(0.1);
+ }
+
+ if keys.just_pressed(KeyCode::KeyR) {
+ sim.simulator.inject_client_request();
+ }
+
+ if keys.just_pressed(KeyCode::KeyK) {
+ let states = sim.simulator.replica_states();
+ for s in &states {
+ if s.alive {
+ sim.simulator.kill_replica(s.id);
+ break;
+ }
+ }
+ }
+
+ if keys.just_pressed(KeyCode::KeyH) {
+ for i in 0..REPLICA_COUNT {
+ sim.simulator.restart_replica(i);
+ }
+ for i in 0..REPLICA_COUNT {
+ for j in (i + 1)..REPLICA_COUNT {
+ sim.simulator.heal_link(i, j);
+ }
+ }
+ }
+
+ if keys.just_pressed(KeyCode::KeyE) {
+ event_log.visible = !event_log.visible;
+ }
+ if keys.just_pressed(KeyCode::KeyD) {
+ event_log.show_details = !event_log.show_details;
+ }
+}
+
+// -- Update: simulation tick -- spawn message particles + glow flashes ------
+
+#[allow(clippy::too_many_arguments)]
+fn simulation_tick_system(
+ mut commands: Commands,
+ time: Res<Time>,
+ mut sim: ResMut<SimState>,
+ positions: Res<ReplicaPositions>,
+ mut replica_fx: ResMut<ReplicaFxState>,
+ mut app_fx: ResMut<AppFxState>,
+ mut screen_flash: ResMut<ScreenFlash>,
+ mut track_pulse: ResMut<TrackPulse>,
+ mut event_log: ResMut<EventLog>,
+) {
+ let elapsed = time.elapsed_secs_f64();
+ if elapsed - sim.ops_window_start >= 1.0 {
+ sim.ops_per_second = sim.ops_window_count as f64 / (elapsed - sim.ops_window_start);
+ sim.ops_window_start = elapsed;
+ sim.ops_window_count = 0;
+ }
+
+ if !sim.playing {
+ return;
+ }
+
+ let dt = time.delta_secs();
+ sim.tick_accumulator += dt * sim.speed * 60.0;
+
+ let ticks_to_run = sim.tick_accumulator as u32;
+ sim.tick_accumulator -= ticks_to_run as f32;
+
+ for _ in 0..ticks_to_run.min(10) {
+ let events = sim.simulator.step();
+
+ for event in &events {
+ if let Some(entry) = narrate_event(event) {
+ event_log.push(entry);
+ }
+ match event {
+ vsr::SimEvent::MessageSent { message, .. } => {
+ if message.msg_type == vsr::MessageType::ClientReply {
+ app_fx.pulse[1] = 0.7;
+ }
+
+ let from_idx = message.from as usize;
+ let to_idx = message.to as usize;
+
+ if from_idx >= REPLICA_COUNT as usize || to_idx >= REPLICA_COUNT as usize {
+ continue;
+ }
+
+ let from_pos = positions.0[from_idx];
+ let to_pos = positions.0[to_idx];
+ let control = perpendicular_control(from_pos, to_pos, 40.0);
+ let msg_color = message.msg_type.color();
+
+ // Inner particle: neon-colored filled circle
+ let shape = build_fill_stroke(
+ &circle_shape(4.0),
+ msg_color,
+ msg_color.with_alpha(0.3),
+ 1.0,
+ );
+ commands.spawn((
+ MessageParticle {
+ from: from_pos,
+ to: to_pos,
+ control,
+ progress: 0.0,
+ duration: MSG_DURATION,
+ msg_type: message.msg_type,
+ },
+ shape,
+ Transform::from_xyz(from_pos.x, from_pos.y, 5.0),
+ ));
+
+ // Outer glow circle: larger, faint
+ let glow_shape = build_fill(&circle_shape(8.0), msg_color.with_alpha(0.2));
+ commands.spawn((
+ MessageGlow,
+ MessageParticle {
+ from: from_pos,
+ to: to_pos,
+ control,
+ progress: 0.0,
+ duration: MSG_DURATION,
+ msg_type: message.msg_type,
+ },
+ glow_shape,
+ Transform::from_xyz(from_pos.x, from_pos.y, 4.9),
+ ));
+ }
+ vsr::SimEvent::OperationCommitted { replica_id, .. } => {
+ sim.total_commits += 1;
+ sim.ops_window_count += 1;
+ replica_fx.healthy[*replica_id as usize] = 0.45;
+ trigger_replica_callout(
+ &mut replica_fx,
+ *replica_id,
+ "GOOD BOY!",
+ IGGY_ORANGE,
+ 0.9,
+ );
+ app_fx.pulse[2] = 0.55;
+ track_pulse.energy = (track_pulse.energy + 0.4).min(1.0);
+ commands.spawn(GlowFlash {
+ id: *replica_id,
+ timer: 0.3,
+ flash_color: IGGY_ORANGE,
+ });
+
+ // Commit ring explosion!
+ let center = positions.0[*replica_id as usize];
+ for ring_i in 0..3u8 {
+ let delay_factor = ring_i as f32 * 0.08;
+ commands.spawn((
+ CommitRing {
+ center,
+ lifetime: COMMIT_RING_LIFETIME + delay_factor,
+ max_lifetime: COMMIT_RING_LIFETIME + delay_factor,
+ color: if ring_i == 0 {
+ IGGY_ORANGE
+ } else {
+ NEON_CYAN
+ },
+ max_radius: 120.0 + ring_i as f32 * 40.0,
+ },
+ build_stroke(
+ &circle_shape(1.0),
+ IGGY_ORANGE.with_alpha(0.6),
+ 2.5 - ring_i as f32 * 0.5,
+ ),
+ Transform::from_xyz(center.x, center.y, 4.5 - ring_i as f32 * 0.1),
+ ));
+ }
+ }
+ vsr::SimEvent::ViewChangeStarted { replica_id, .. } => {
+ trigger_replica_callout(
+ &mut replica_fx,
+ *replica_id,
+ "PACK SHUFFLE!",
+ NEON_MAGENTA,
+ 1.15,
+ );
+ app_fx.pulse[3] = 0.8;
+ // Screen-wide magenta flash for dramatic effect
+ screen_flash.timer = SCREEN_FLASH_DURATION;
+ screen_flash.color = NEON_MAGENTA;
+ screen_flash.intensity = 0.12;
+ for rid in 0..REPLICA_COUNT {
+ commands.spawn(GlowFlash {
+ id: rid,
+ timer: 0.3,
+ flash_color: NEON_MAGENTA,
+ });
+ // Shockwave ring from the triggering replica
+ if rid == *replica_id {
+ let center = positions.0[rid as usize];
+ commands.spawn((
+ CommitRing {
+ center,
+ lifetime: 0.9,
+ max_lifetime: 0.9,
+ color: NEON_MAGENTA,
+ max_radius: 200.0,
+ },
+ build_stroke(
+ &circle_shape(1.0),
+ NEON_MAGENTA.with_alpha(0.5),
+ 3.0,
+ ),
+ Transform::from_xyz(center.x, center.y, 4.5),
+ ));
+ }
+ }
+ }
+ vsr::SimEvent::ClientRequest { .. } => {
+ sim.ops_window_count += 1;
+ app_fx.pulse[0] = 0.7;
+ }
+ vsr::SimEvent::PrimaryElected { replica_id, .. } => {
+ trigger_replica_callout(
+ &mut replica_fx,
+ *replica_id,
+ "NEW LEAD DOG!",
+ NEON_YELLOW,
+ 1.2,
+ );
+ // Golden flash for new leader
+ screen_flash.timer = SCREEN_FLASH_DURATION * 0.7;
+ screen_flash.color = NEON_YELLOW;
+ screen_flash.intensity = 0.08;
+ // Victory ring
+ let center = positions.0[*replica_id as usize];
+ for ring_i in 0..2u8 {
+ commands.spawn((
+ CommitRing {
+ center,
+ lifetime: 0.8,
+ max_lifetime: 0.8,
+ color: NEON_YELLOW,
+ max_radius: 150.0 + ring_i as f32 * 50.0,
+ },
+ build_stroke(
+ &circle_shape(1.0),
+ NEON_YELLOW.with_alpha(0.45),
+ 2.5,
+ ),
+ Transform::from_xyz(center.x, center.y, 4.4),
+ ));
+ }
+ }
+ vsr::SimEvent::ReplicaStateChanged {
+ replica_id,
+ new_status,
+ ..
+ } => {
+ let (label, color, duration) = match new_status {
+ vsr::Status::Normal => ("RUNNING!", NEON_CYAN, 0.85),
+ vsr::Status::ViewChange => ("HOWLING!", NEON_MAGENTA, 1.1),
+ vsr::Status::Recovering => ("LIMPING...", NEON_YELLOW, 1.1),
+ };
+ trigger_replica_callout(&mut replica_fx, *replica_id, label, color, duration);
+ }
+ _ => {}
+ }
+ }
+ }
+}
+
+// -- Update: replica visuals (neon glow breathing, bobbing, status text) -----
+
+#[allow(clippy::type_complexity, clippy::too_many_arguments)]
+fn update_replica_visuals(
+ time: Res<Time>,
+ sim: Res<SimState>,
+ positions: Res<ReplicaPositions>,
+ mut replica_fx: ResMut<ReplicaFxState>,
+ mut commands: Commands,
+ mut flash_q: Query<(Entity, &mut GlowFlash)>,
+ mut visuals: ParamSet<(
+ Query<(&ReplicaShadow, &mut Sprite, &mut Transform)>,
+ Query<(&ReplicaGlow, &mut Shape, &mut Transform), Without<ReplicaNeonOutline>>,
+ Query<(&ReplicaNeonOutline, &mut Shape, &mut Transform), Without<ReplicaGlow>>,
+ Query<(&ReplicaBody, &mut Sprite, &mut Transform)>,
+ Query<(
+ &ReplicaSleepText,
+ &mut Transform,
+ &mut TextColor,
+ &mut Visibility,
+ )>,
+ Query<(&ReplicaIdText, &mut TextColor), Without<ReplicaRoleText>>,
+ Query<(&ReplicaRoleText, &mut Text2d, &mut TextColor), Without<ReplicaIdText>>,
+ Query<
+ (
+ &ReplicaCalloutText,
+ &mut Text2d,
+ &mut Transform,
+ &mut TextColor,
+ &mut Visibility,
+ ),
+ (Without<ReplicaIdText>, Without<ReplicaRoleText>),
+ >,
+ )>,
+) {
+ let states = sim.simulator.replica_states();
+ let t = time.elapsed_secs();
+ let dt = time.delta_secs();
+
+ for i in 0..REPLICA_COUNT as usize {
+ replica_fx.kill[i] = (replica_fx.kill[i] - dt * 1.4).max(0.0);
+ replica_fx.revive[i] = (replica_fx.revive[i] - dt * 1.1).max(0.0);
+ replica_fx.healthy[i] = (replica_fx.healthy[i] - dt * 0.9).max(0.0);
+ replica_fx.callout_timer[i] = (replica_fx.callout_timer[i] - dt).max(0.0);
+ }
+
+ // Process glow flash timers
+ let mut flash_overrides: [Option<Color>; REPLICA_COUNT as usize] =
+ [None; REPLICA_COUNT as usize];
+ for (entity, mut flash) in flash_q.iter_mut() {
+ flash.timer -= dt;
+ if flash.timer <= 0.0 {
+ commands.entity(entity).despawn();
+ } else {
+ let idx = flash.id as usize;
+ if idx < REPLICA_COUNT as usize {
+ flash_overrides[idx] = Some(flash.flash_color);
+ }
+ }
+ }
+
+ for state in &states {
+ let id = state.id;
+ let idx = id as usize;
+ let sc = status_color(state.status, state.alive);
+ let base_pos = positions.0[idx];
+ let is_primary = state.role == vsr::Role::Primary;
+ let facing_right = base_pos.x < 0.0;
+
+ if replica_fx.last_alive[idx] != state.alive {
+ if state.alive {
+ replica_fx.revive[idx] = 1.0;
+ replica_fx.healthy[idx] = 0.6;
+ trigger_replica_callout(&mut replica_fx, id, "BACK ON TRACK!", IGGY_ORANGE, 1.3);
+ } else {
+ replica_fx.kill[idx] = 1.0;
+ trigger_replica_callout(&mut replica_fx, id, "GREYHOUND DOWN", NEON_MAGENTA, 1.4);
+ }
+ replica_fx.last_alive[idx] = state.alive;
+ }
+ if replica_fx.last_status[idx] != state.status {
+ if state.status == vsr::Status::Normal {
+ replica_fx.healthy[idx] = 0.5;
+ trigger_replica_callout(&mut replica_fx, id, "RUNNING!", NEON_CYAN, 0.8);
+ } else if state.status == vsr::Status::Recovering {
+ replica_fx.revive[idx] = 0.8;
+ trigger_replica_callout(&mut replica_fx, id, "LIMPING...", NEON_YELLOW, 1.1);
+ } else if state.status == vsr::Status::ViewChange {
+ trigger_replica_callout(&mut replica_fx, id, "HOWLING!", NEON_MAGENTA, 1.1);
+ }
+ replica_fx.last_status[idx] = state.status;
+ }
+
+ let dir: f32 = if facing_right { 1.0 } else { -1.0 };
+
+ // Game-like idle motion - greyhound vibes
+ let busy = state.pipeline_depth as f32 / 8.0; // 0..1 how loaded
+ let hover = (t * (1.3 + busy * 0.8) + id as f32 * 1.7).sin() * (7.0 + busy * 4.0);
+ let sway = (t * (0.9 + busy * 1.2) + id as f32 * 0.8).sin() * (0.06 + busy * 0.04);
+ let breathe = 1.0 + (t * (1.8 + busy * 1.5) + id as f32 * 0.9).sin() * (0.035 + busy * 0.025);
+ // Running lean: greyhound tilts forward when busy
+ let run_lean = busy * 0.08 * dir;
+ // Stretch horizontally when running (greyhound elongation)
+ let run_stretch_x = 1.0 + busy * 0.06;
+ let run_squash_y = 1.0 - busy * 0.03;
+
+ // Determine effective glow color (flash overrides normal)
+ let glow_color = flash_overrides[idx].unwrap_or(sc);
+ let flash_energy = if flash_overrides[idx].is_some() {
+ 1.0
+ } else {
+ 0.0
+ };
+ let glow_alpha =
+ 0.12 + ((t * 2.0 + id as f32 * 1.5).sin() * 0.5 + 0.5) * 0.08 + flash_energy * 0.18;
+ let body_alpha = if state.alive { 1.0 } else { 0.24 };
+ let impact_scale = 1.0 + flash_energy * 0.08;
+ let kill_energy = replica_fx.kill[idx];
+ let revive_energy = replica_fx.revive[idx];
+ let healthy_energy = replica_fx.healthy[idx];
+ let fx_lift = revive_energy * 18.0 - kill_energy * 12.0;
+ for (shadow, mut sprite, mut transform) in visuals.p0().iter_mut() {
+ if shadow.id == id {
+ sprite.color = BG_DARK.with_alpha(0.22 + glow_alpha * 0.45 + kill_energy * 0.12);
+ transform.translation.x = base_pos.x;
+ transform.translation.y = base_pos.y - 88.0 + hover * 0.15 - fx_lift * 0.2;
+ transform.scale = Vec3::new(
+ 1.0 + flash_energy * 0.12 + kill_energy * 0.18,
+ 0.9 - hover * 0.003 - revive_energy * 0.08,
+ 1.0,
+ );
+ }
+ }
+
+ // Outer glow (z=0.5)
+ for (glow, mut shape, mut transform) in visuals.p1().iter_mut() {
+ if glow.id == id {
+ let pulse_color = if kill_energy > 0.0 {
+ NEON_MAGENTA
+ } else if revive_energy > 0.0 || healthy_energy > 0.0 {
+ IGGY_ORANGE
+ } else {
+ glow_color
+ };
+ shape.fill = Some(Fill::color(pulse_color.with_alpha(
+ (glow_alpha + revive_energy * 0.18 + healthy_energy * 0.12) * body_alpha,
+ )));
+ transform.translation.x = base_pos.x;
+ transform.translation.y = base_pos.y - 10.0 + hover * 0.45 + fx_lift * 0.35;
+ transform.scale = Vec3::splat(
+ 1.0 + ((t * 1.4 + id as f32).sin() * 0.03)
+ + flash_energy * 0.14
+ + revive_energy * 0.12
+ + healthy_energy * 0.08,
+ );
+ }
+ }
+
+ // Neon outline (z=0.8)
+ for (outline, mut shape, mut transform) in visuals.p2().iter_mut() {
+ if outline.id == id {
+ shape.stroke = Some(Stroke::new(
+ (if kill_energy > 0.0 {
+ NEON_MAGENTA
+ } else if revive_energy > 0.0 {
+ IGGY_ORANGE
+ } else {
+ glow_color
+ })
+ .with_alpha((0.30 + flash_energy * 0.25 + healthy_energy * 0.18) * body_alpha),
+ 2.0 + flash_energy + revive_energy * 1.2,
+ ));
+ transform.translation.x = base_pos.x;
+ transform.translation.y = base_pos.y - 4.0 + hover * 0.35 + fx_lift * 0.25;
+ transform.rotation = Quat::from_rotation_z(-sway * 0.45 + kill_energy * 0.08);
+ }
+ }
+
+ // Mascot body sprite
+ for (body, mut shape, mut transform) in visuals.p3().iter_mut() {
+ if body.id == id {
+ shape.color = if !state.alive {
+ Color::srgba(0.55, 0.52, 0.60, 0.33)
+ } else if revive_energy > 0.0 {
+ Color::srgba(1.0, 0.96, 0.9, body_alpha)
+ } else if is_primary {
+ Color::srgba(1.0, 0.97, 0.94, body_alpha)
+ } else {
+ Color::srgba(0.94, 0.98, 1.0, body_alpha)
+ };
+ shape.flip_x = !facing_right;
+ transform.translation.x = base_pos.x;
+ transform.translation.y = base_pos.y + 12.0 + hover + fx_lift - kill_energy * 14.0;
+ transform.rotation = Quat::from_rotation_z(
+ sway + run_lean + flash_energy * 0.04 * dir - kill_energy * 0.24 * dir,
+ );
+ transform.scale = Vec3::new(
+ dir * breathe * impact_scale * run_stretch_x
+ * (1.0 + revive_energy * 0.1 - kill_energy * 0.16),
+ (breathe / impact_scale) * run_squash_y
+ * (1.0 - kill_energy * 0.34 + healthy_energy * 0.08),
+ 1.0,
+ );
+ }
+ }
+
+ for (sleep, mut transform, mut color, mut visibility) in visuals.p4().iter_mut() {
+ if sleep.id == id {
+ *visibility = if state.alive {
+ Visibility::Hidden
+ } else {
+ Visibility::Inherited
+ };
+ let phase = (t * 0.85 + sleep.layer as f32 * 0.55 + id as f32 * 0.4).fract();
+ let rise = phase * 34.0;
+ let drift = (phase * PI * 2.0).sin() * 7.0;
+ transform.translation.x =
+ base_pos.x + (70.0 + sleep.layer as f32 * 12.0) * dir + drift * dir;
+ transform.translation.y = base_pos.y + 68.0 + rise + sleep.layer as f32 * 8.0;
+ transform.scale = Vec3::splat(0.7 + phase * 0.55);
+ *color =
+ TextColor(COOL_WHITE.with_alpha((1.0 - phase) * 0.8 * kill_energy.max(0.65)));
+ }
+ }
+
+ // ID text color: magenta if dead
+ for (id_txt, mut color) in visuals.p5().iter_mut() {
+ if id_txt.id == id {
+ *color = TextColor(if state.alive {
+ COOL_WHITE
+ } else {
+ NEON_MAGENTA
+ });
+ }
+ }
+
+ // Role text
+ for (role_txt, mut text, mut color) in visuals.p6().iter_mut() {
+ if role_txt.id == id {
+ let label = if !state.alive {
+ "NAPPING"
+ } else {
+ role_label(state.role, state.status)
+ };
+ **text = label.to_string();
+ let status_pulse = ((t * 4.2 + id as f32 * 0.7).sin() * 0.5) + 0.5;
+ *color = TextColor(if !state.alive {
+ NEON_MAGENTA.with_alpha(0.88 + status_pulse * 0.12)
+ } else if state.status == vsr::Status::ViewChange {
+ NEON_MAGENTA.with_alpha(0.84 + status_pulse * 0.16)
+ } else if state.status == vsr::Status::Recovering {
+ NEON_YELLOW.with_alpha(0.84 + status_pulse * 0.16)
+ } else if is_primary {
+ IGGY_ORANGE
+ } else {
+ DIM_GRAY
+ });
+ }
+ }
+
+ for (callout, mut text, mut transform, mut color, mut visibility) in visuals.p7().iter_mut()
+ {
+ if callout.id != id {
+ continue;
+ }
+
+ let timer = replica_fx.callout_timer[idx];
+ let persistent = if !state.alive {
+ Some(("NAPPING", NEON_MAGENTA))
+ } else {
+ match state.status {
+ vsr::Status::Normal => None,
+ vsr::Status::ViewChange => Some(("HOWLING!", NEON_MAGENTA)),
+ vsr::Status::Recovering => Some(("LIMPING...", NEON_YELLOW)),
+ }
+ };
+
+ if timer <= 0.0 && persistent.is_none() {
+ *visibility = Visibility::Hidden;
+ continue;
+ }
+
+ *visibility = Visibility::Inherited;
+ let (label, base_color, energy) = if let Some((label, color_hint)) = persistent {
+ (label, color_hint, 0.78)
+ } else {
+ (
+ replica_fx.callout_text[idx].as_str(),
+ replica_fx.callout_color[idx],
+ timer.clamp(0.0, 1.0),
+ )
+ };
+ let pulse = ((t * 6.0 + id as f32 * 1.3).sin() * 0.5) + 0.5;
+ let rise = (1.0 - energy) * 18.0;
+ **text = label.to_string();
+ transform.translation = Vec3::new(base_pos.x, base_pos.y + 118.0 + rise, 3.2);
+ transform.scale = Vec3::splat(0.92 + energy * 0.22 + pulse * 0.04);
+ *color =
+ TextColor(base_color.with_alpha((0.55 + energy * 0.35 + pulse * 0.1).min(1.0)));
+ }
+ }
+}
+
+// -- Update: move message particles along bezier, spawn trail dots ----------
+
+fn update_message_particles(
+ mut commands: Commands,
+ time: Res<Time>,
+ mut sim: ResMut<SimState>,
+ mut query: Query<(Entity, &mut MessageParticle, &mut Transform)>,
+) {
+ let dt = time.delta_secs();
+ sim.frame_count = sim.frame_count.wrapping_add(1);
+ let spawn_trail = sim.frame_count.is_multiple_of(3);
+
+ for (entity, mut particle, mut transform) in query.iter_mut() {
+ particle.progress += dt / particle.duration;
+
+ if particle.progress >= 1.0 {
+ commands.entity(entity).despawn();
+ continue;
+ }
+
+ let pos = bezier_pos(
+ particle.from,
+ particle.to,
+ particle.control,
+ particle.progress,
+ );
+ transform.translation.x = pos.x;
+ transform.translation.y = pos.y;
+
+ // Spawn trail dot (tiny fading circle)
+ if spawn_trail {
+ let trail_color = particle.msg_type.color();
+ spawn_trail_dot(&mut commands, pos, trail_color);
+
+ // Speed lines perpendicular to travel direction
+ if particle.progress > 0.1 && particle.progress < 0.9 {
+ let dir = (particle.to - particle.from).normalize_or_zero();
+ let perp = Vec2::new(-dir.y, dir.x);
+ let offset = perp * ((sim.frame_count as f32 * 0.7).sin() * 6.0);
+ let line_len = 8.0 + particle.progress * 12.0;
+ let line = shapes::Line(
+ pos + offset - dir * line_len * 0.5,
+ pos + offset + dir * line_len * 0.5,
+ );
+ commands.spawn((
+ SpeedLine {
+ lifetime: SPEED_LINE_LIFETIME,
+ max_lifetime: SPEED_LINE_LIFETIME,
+ color: trail_color,
+ },
+ build_stroke(&line, trail_color.with_alpha(0.25), 0.8),
+ Transform::from_xyz(0.0, 0.0, 4.2),
+ ));
+ }
+ }
+ }
+}
+
+/// Spawn a tiny trail dot at `pos`.
+fn spawn_trail_dot(commands: &mut Commands, pos: Vec2, color: Color) {
+ let alpha = 0.35;
+ let c = color.with_alpha(alpha);
+
+ commands.spawn((
+ TrailDot {
+ lifetime: TRAIL_LIFETIME,
+ max_lifetime: TRAIL_LIFETIME,
+ color,
+ },
+ build_fill(&circle_shape(1.5), c),
+ Transform::from_xyz(pos.x, pos.y, 4.0),
+ ));
+}
+
+// -- Update: fade and despawn trail dots ------------------------------------
+
+fn update_trail_dots(
+ mut commands: Commands,
+ time: Res<Time>,
+ mut query: Query<(Entity, &mut TrailDot, &mut Shape)>,
+) {
+ let dt = time.delta_secs();
+
+ for (entity, mut dot, mut shape) in query.iter_mut() {
+ dot.lifetime -= dt;
+ if dot.lifetime <= 0.0 {
+ commands.entity(entity).despawn();
+ continue;
+ }
+ let alpha = (dot.lifetime / dot.max_lifetime) * 0.35;
+ shape.fill = Some(Fill::color(dot.color.with_alpha(alpha)));
+ }
+}
+
+// -- Update: link lines -----------------------------------------------------
+
+fn update_link_lines(
+ time: Res<Time>,
+ sim: Res<SimState>,
+ mut query: Query<(&LinkLine, &mut Shape)>,
+) {
+ let t = time.elapsed_secs();
+ for (link, mut shape) in query.iter_mut() {
+ let is_partitioned = sim
+ .simulator
+ .network
+ .is_partitioned(link.from_id, link.to_id);
+ let from_alive = sim
+ .simulator
+ .replicas
+ .get(link.from_id as usize)
+ .is_some_and(|r| r.alive);
+ let to_alive = sim
+ .simulator
+ .replicas
+ .get(link.to_id as usize)
+ .is_some_and(|r| r.alive);
+ let pulse = ((t * 1.7 + (link.from_id + link.to_id) as f32 * 0.9).sin() * 0.5) + 0.5;
+
+ if is_partitioned || !from_alive || !to_alive {
+ shape.stroke = Some(Stroke::new(
+ NEON_MAGENTA.with_alpha(0.28 + pulse * 0.22),
+ 1.8 + pulse * 0.5,
+ ));
+ } else {
+ shape.stroke = Some(Stroke::new(
+ NEON_CYAN.with_alpha(0.12 + pulse * 0.14),
+ 1.3 + pulse * 0.35,
+ ));
+ }
+ }
+}
+
+#[allow(clippy::type_complexity)]
+fn update_app_visuals(
+ time: Res<Time>,
+ positions: Res<ReplicaPositions>,
+ sim: Res<SimState>,
+ mut app_fx: ResMut<AppFxState>,
+ mut visuals: ParamSet<(
+ Query<(&AppCard, &mut Shape, &mut Transform)>,
+ Query<(&AppLink, &mut Shape)>,
+ Query<(&AppCardLabel, &mut Transform, &mut TextColor)>,
+ Query<(&AppIcon, &mut Shape, &mut Transform)>,
+ )>,
+) {
+ let dt = time.delta_secs();
+ let t = time.elapsed_secs();
+
+ for pulse in &mut app_fx.pulse {
+ *pulse = (*pulse - dt * 1.15).max(0.0);
+ }
+
+ for (card, mut shape, mut transform) in visuals.p0().iter_mut() {
+ let pulse = app_fx.pulse[card.id];
+ let hover = (t * 1.05 + card.id as f32 * 0.9).sin() * 5.0;
+ shape.fill = Some(Fill::color(card.accent.with_alpha(0.08 + pulse * 0.12)));
+ shape.stroke = Some(Stroke::new(
+ card.accent.with_alpha(0.18 + pulse * 0.45),
+ 1.0 + pulse * 1.5,
+ ));
+ transform.translation = Vec3::new(card.anchor.x, card.anchor.y + hover + pulse * 10.0, 1.2);
+ transform.rotation = Quat::from_rotation_z((t * 0.35 + card.id as f32).sin() * 0.015);
+ transform.scale = Vec3::splat(1.0 + pulse * 0.06);
+ }
+
+ for (label, mut transform, mut color) in visuals.p2().iter_mut() {
+ let pulse = app_fx.pulse[label.id];
+ let hover = (t * 1.05 + label.id as f32 * 0.9).sin() * 5.0;
+ transform.translation = Vec3::new(
+ label.anchor.x,
+ label.anchor.y - 64.0 + hover + pulse * 10.0,
+ 1.3,
+ );
+ *color = TextColor(COOL_WHITE.with_alpha(0.9 + pulse * 0.1));
+ }
+
+ for (icon, mut shape, mut transform) in visuals.p3().iter_mut() {
+ let pulse = app_fx.pulse[icon.id];
+ let hover = (t * 1.05 + icon.id as f32 * 0.9).sin() * 5.0;
+ let tilt = match icon.kind {
+ AppKind::Producer => -0.03,
+ AppKind::Consumer => 0.03,
+ };
+ shape.stroke = Some(Stroke::new(
+ icon.accent.with_alpha(0.8 + pulse * 0.2),
+ 2.4 + pulse * 0.8,
+ ));
+ transform.translation = Vec3::new(
+ icon.anchor.x,
+ icon.anchor.y + 4.0 + hover + pulse * 9.0,
+ 1.35,
+ );
+ transform.rotation = Quat::from_rotation_z(tilt + (t * 0.7 + icon.id as f32).sin() * 0.025);
+ transform.scale = Vec3::splat(1.0 + pulse * 0.08);
+ }
+
+ for (link, mut shape) in visuals.p1().iter_mut() {
+ let pulse = app_fx.pulse[link.id];
+ let target = positions.0[link.target_replica as usize];
+ let target_alive = sim
+ .simulator
+ .replicas
+ .get(link.target_replica as usize)
+ .is_some_and(|r| r.alive);
+ let distance_bias = ((target.y - WORLD_CENTER_Y).abs() / 400.0).min(0.2);
+ shape.stroke = Some(Stroke::new(
+ if target_alive {
+ link.accent.with_alpha(0.10 + pulse * 0.26 + distance_bias)
+ } else {
+ NEON_MAGENTA.with_alpha(0.05 + pulse * 0.08)
+ },
+ if target_alive {
+ 0.9 + pulse * 0.8
+ } else {
+ 0.45 + pulse * 0.2
+ },
+ ));
+ }
+}
+
+fn update_app_flow_particles(
+ mut commands: Commands,
+ time: Res<Time>,
+ positions: Res<ReplicaPositions>,
+ sim: Res<SimState>,
+ links: Query<&AppLink>,
+ mut particles: Query<(Entity, &mut AppFlowParticle, &mut Transform, &mut Shape)>,
+) {
+ let dt = time.delta_secs();
+
+ if sim.frame_count.is_multiple_of(36) {
+ for link in links.iter() {
+ let target_alive = sim
+ .simulator
+ .replicas
+ .get(link.target_replica as usize)
+ .is_some_and(|r| r.alive);
+ if !target_alive {
+ continue;
+ }
+
+ let target = positions.0[link.target_replica as usize];
+ let (from, to) = if link.inbound {
+ (link.anchor, target)
+ } else {
+ (target, link.anchor)
+ };
+ let dir = to - from;
+ let normal = Vec2::new(-dir.y, dir.x).normalize_or_zero();
+ let control = (from + to) * 0.5 + normal * if link.inbound { 70.0 } else { -70.0 };
+
+ commands.spawn((
+ AppFlowParticle {
+ replica_id: link.target_replica,
+ from,
+ to,
+ control,
+ progress: 0.0,
+ speed: 0.26 + link.id as f32 * 0.025,
+ color: link.accent,
+ },
+ build_fill(&circle_shape(3.2), link.accent.with_alpha(0.85)),
+ Transform::from_xyz(from.x, from.y, 1.1),
+ ));
+ }
+ }
+
+ for (entity, mut particle, mut transform, mut shape) in particles.iter_mut() {
+ let target_alive = sim
+ .simulator
+ .replicas
+ .get(particle.replica_id as usize)
+ .is_some_and(|r| r.alive);
+ if !target_alive {
+ commands.entity(entity).despawn();
+ continue;
+ }
+
+ particle.progress += dt * particle.speed;
+ if particle.progress >= 1.0 {
+ commands.entity(entity).despawn();
+ continue;
+ }
+
+ let pos = bezier_pos(
+ particle.from,
+ particle.to,
+ particle.control,
+ particle.progress,
+ );
+ transform.translation.x = pos.x;
+ transform.translation.y = pos.y;
+ let alpha = (1.0 - (particle.progress - 0.5).abs() * 1.4).clamp(0.18, 0.92);
+ shape.fill = Some(Fill::color(particle.color.with_alpha(alpha)));
+ }
+}
+
+// -- Update: HUD text -------------------------------------------------------
+
+#[allow(clippy::type_complexity)]
+fn update_hud_text(
+ sim: Res<SimState>,
+ mut hud: ParamSet<(
+ Query<&mut Text, With<HudTickText>>,
+ Query<&mut Text, (With<HudOpsText>, Without<HudTickText>)>,
+ Query<
+ &mut Text,
+ (
+ With<HudCommitsText>,
+ Without<HudTickText>,
+ Without<HudOpsText>,
+ ),
+ >,
+ Query<
+ (&mut Text, &mut TextColor),
+ (
+ With<HudStateText>,
+ Without<HudTickText>,
+ Without<HudOpsText>,
+ Without<HudCommitsText>,
+ ),
+ >,
+ Query<
+ &mut Text,
+ (
+ With<HudSpeedText>,
+ Without<HudTickText>,
+ Without<HudOpsText>,
+ Without<HudCommitsText>,
+ Without<HudStateText>,
+ ),
+ >,
+ )>,
+) {
+ for mut text in hud.p0().iter_mut() {
+ **text = format!("T {}", sim.simulator.tick);
+ }
+
+ for mut text in hud.p1().iter_mut() {
+ **text = format!("{:.0}", sim.ops_per_second);
+ }
+
+ for mut text in hud.p2().iter_mut() {
+ **text = format!("{}", sim.total_commits);
+ }
+
+ for (mut text, mut color) in hud.p3().iter_mut() {
+ if sim.playing {
+ **text = "RACING".to_string();
+ *color = TextColor(NEON_CYAN);
+ } else {
+ **text = "RESTING".to_string();
+ *color = TextColor(NEON_YELLOW);
+ }
+ }
+
+ for mut text in hud.p4().iter_mut() {
+ **text = format!("x{:.1}", sim.speed);
+ }
+}
+
+// -- Update: pause overlay with pulsing alpha -------------------------------
+
+#[allow(clippy::type_complexity)]
+fn update_pause_overlay(
+ sim: Res<SimState>,
+ time: Res<Time>,
+ mut pause: ParamSet<(
+ Query<&mut Visibility, (With<PauseOverlay>, Without<PauseMainText>)>,
+ Query<
+ &mut TextColor,
+ (
+ With<PauseMainText>,
+ Without<PauseOverlay>,
+ Without<PauseSubtext>,
+ ),
+ >,
+ Query<&mut Visibility, (With<PauseSubtext>, Without<PauseOverlay>)>,
+ )>,
+) {
+ let target_vis = if sim.playing {
+ Visibility::Hidden
+ } else {
+ Visibility::Inherited
+ };
+
+ for mut vis in pause.p0().iter_mut() {
+ *vis = target_vis;
+ }
+
+ if !sim.playing {
+ let pulse = ((time.elapsed_secs() * 3.0).sin() * 0.5 + 0.5) * 0.6 + 0.4;
+ for mut color in pause.p1().iter_mut() {
+ *color = TextColor(NEON_YELLOW.with_alpha(pulse));
+ }
+ }
+
+ for mut vis in pause.p2().iter_mut() {
+ *vis = target_vis;
+ }
+}
+
+// -- Update: scan lines scroll down -----------------------------------------
+
+fn update_scan_lines(time: Res<Time>, mut query: Query<(&ScanLine, &mut Transform)>) {
+ let dt = time.delta_secs();
+
+ for (scan, mut transform) in query.iter_mut() {
+ transform.translation.y -= scan.speed * dt;
+ if transform.translation.y < -500.0 {
+ transform.translation.y = 500.0;
+ }
+ }
+}
+
+// -- Update: expanding commit rings -----------------------------------------
+
+fn update_commit_rings(
+ mut commands: Commands,
+ time: Res<Time>,
+ mut query: Query<(Entity, &mut CommitRing, &mut Shape, &mut Transform)>,
+) {
+ let dt = time.delta_secs();
+
+ for (entity, mut ring, mut shape, mut transform) in query.iter_mut() {
+ ring.lifetime -= dt;
+ if ring.lifetime <= 0.0 {
+ commands.entity(entity).despawn();
+ continue;
+ }
+
+ let progress = 1.0 - (ring.lifetime / ring.max_lifetime);
+ let eased = 1.0 - (1.0 - progress).powi(3); // ease-out cubic
+ let current_radius = ring.max_radius * eased;
+ let alpha = (1.0 - progress) * 0.6;
+ let width = (1.0 - progress) * 3.0 + 0.5;
+
+ shape.stroke = Some(Stroke::new(ring.color.with_alpha(alpha), width));
+ transform.translation.x = ring.center.x;
+ transform.translation.y = ring.center.y;
+ transform.scale = Vec3::splat(current_radius.max(1.0));
+ }
+}
+
+// -- Update: ambient floating particles -------------------------------------
+
+fn update_ambient_particles(
+ time: Res<Time>,
+ sim: Res<SimState>,
+ mut query: Query<(&mut AmbientParticle, &mut Transform, &mut Shape)>,
+) {
+ let dt = time.delta_secs();
+ let t = time.elapsed_secs();
+ let activity_boost = if sim.playing { 1.0 } else { 0.3 };
+
+ for (particle, mut transform, mut shape) in query.iter_mut() {
+ // Gentle upward drift with sinusoidal wandering
+ let drift_x = (t * particle.drift_speed + particle.drift_phase).sin() * 18.0;
+ transform.translation.x += (particle.velocity.x + drift_x * 0.3) * dt * activity_boost;
+ transform.translation.y += particle.velocity.y * dt * activity_boost;
+
+ // Wrap around screen edges
+ if transform.translation.y > 600.0 {
+ transform.translation.y = -600.0;
+ }
+ if transform.translation.x > 900.0 {
+ transform.translation.x = -900.0;
+ } else if transform.translation.x < -900.0 {
+ transform.translation.x = 900.0;
+ }
+
+ // Twinkle effect
+ let twinkle = ((t * 2.5 + particle.drift_phase * 3.7).sin() * 0.5 + 0.5) * 0.7 + 0.3;
+ let alpha = particle.base_alpha * twinkle * activity_boost;
+ if let Some(ref mut fill) = shape.fill {
+ *fill = Fill::color(COOL_WHITE.with_alpha(alpha));
+ }
+ }
+}
+
+// -- Update: energy orbit dots around active replicas -----------------------
+
+fn update_energy_orbits(
+ time: Res<Time>,
+ sim: Res<SimState>,
+ positions: Res<ReplicaPositions>,
+ mut query: Query<(&mut EnergyOrbit, &mut Transform, &mut Shape)>,
+) {
+ let dt = time.delta_secs();
+ let states = sim.simulator.replica_states();
+
+ for (mut orbit, mut transform, mut shape) in query.iter_mut() {
+ let state = states.iter().find(|s| s.id == orbit.replica_id);
+ let (alive, is_primary, status) = state
+ .map(|s| (s.alive, s.role == vsr::Role::Primary, s.status))
+ .unwrap_or((false, false, vsr::Status::Normal));
+
+ // Only orbit active replicas
+ if !alive {
+ shape.fill = Some(Fill::color(NEON_MAGENTA.with_alpha(0.0)));
+ continue;
+ }
+
+ let speed_mult = if is_primary { 1.4 } else { 1.0 };
+ orbit.angle += dt * orbit.speed * speed_mult;
+
+ let center = positions.0[orbit.replica_id as usize];
+ let x = center.x + orbit.angle.cos() * orbit.radius;
+ let y = center.y + orbit.angle.sin() * orbit.radius;
+ transform.translation.x = x;
+ transform.translation.y = y;
+
+ let color = match status {
+ vsr::Status::Normal => {
+ if is_primary {
+ IGGY_ORANGE
+ } else {
+ NEON_CYAN
+ }
+ }
+ vsr::Status::ViewChange => NEON_MAGENTA,
+ vsr::Status::Recovering => NEON_YELLOW,
+ };
+
+ // Pulsing alpha based on orbit position
+ let pulse =
+ ((orbit.angle * 2.0 + orbit.orbit_index as f32 * 1.2).sin() * 0.5 + 0.5) * 0.4 + 0.2;
+ shape.fill = Some(Fill::color(color.with_alpha(pulse)));
+ }
+}
+
+// -- Update: screen flash overlay -------------------------------------------
+
+fn update_screen_flash(
+ time: Res<Time>,
+ mut flash: ResMut<ScreenFlash>,
+ mut query: Query<&mut Sprite, With<ScreenFlashOverlay>>,
+) {
+ let dt = time.delta_secs();
+
+ if flash.timer > 0.0 {
+ flash.timer -= dt;
+ let progress = (flash.timer / SCREEN_FLASH_DURATION).max(0.0);
+ let alpha = progress * flash.intensity;
+
+ for mut sprite in query.iter_mut() {
+ sprite.color = flash.color.with_alpha(alpha);
+ }
+ } else {
+ for mut sprite in query.iter_mut() {
+ sprite.color = NEON_CYAN.with_alpha(0.0);
+ }
+ }
+}
+
+// -- Update: speed lines fade out ------------------------------------------
+
+fn update_speed_lines(
+ mut commands: Commands,
+ time: Res<Time>,
+ mut query: Query<(Entity, &mut SpeedLine, &mut Shape)>,
+) {
+ let dt = time.delta_secs();
+
+ for (entity, mut line, mut shape) in query.iter_mut() {
+ line.lifetime -= dt;
+ if line.lifetime <= 0.0 {
+ commands.entity(entity).despawn();
+ continue;
+ }
+ let alpha = (line.lifetime / line.max_lifetime) * 0.25;
+ shape.stroke = Some(Stroke::new(line.color.with_alpha(alpha), 0.6));
+ }
+}
+
+// -- Update: track ring pulses with activity --------------------------------
+
+fn update_track_ring(
+ time: Res<Time>,
+ mut track_pulse: ResMut<TrackPulse>,
+ mut query: Query<&mut Shape, With<TrackRing>>,
+) {
+ let dt = time.delta_secs();
+ let t = time.elapsed_secs();
+
+ track_pulse.energy = (track_pulse.energy - dt * 0.6).max(0.0);
+
+ let base_alpha = 0.25 + track_pulse.energy * 0.35;
+ let breathe = (t * 0.8).sin() * 0.08;
+ let width = 0.9 + track_pulse.energy * 1.5 + breathe.abs() * 0.3;
+ let color = if track_pulse.energy > 0.2 {
+ IGGY_ORANGE
+ } else {
+ NEON_CYAN
+ };
+
+ for mut shape in query.iter_mut() {
+ shape.stroke = Some(Stroke::new(
+ color.with_alpha(base_alpha + breathe),
+ width,
+ ));
+ }
+}
+
+// -- Update: event log panel ------------------------------------------------
+
+#[allow(clippy::type_complexity)]
+fn update_event_log_panel(
+ mut commands: Commands,
+ event_log: Res<EventLog>,
+ mut panel_q: Query<&mut Visibility, (With<EventLogPanel>, Without<EventLogToggleHint>)>,
+ mut hint_q: Query<&mut Visibility, (With<EventLogToggleHint>, Without<EventLogPanel>)>,
+ content_q: Query<(Entity, Option<&Children>), With<EventLogContent>>,
+) {
+ let target_vis = if event_log.visible {
+ Visibility::Inherited
+ } else {
+ Visibility::Hidden
+ };
+ for mut vis in panel_q.iter_mut() {
+ *vis = target_vis;
+ }
+ // Hide the hint when log is open
+ for mut vis in hint_q.iter_mut() {
+ *vis = if event_log.visible {
+ Visibility::Hidden
+ } else {
+ Visibility::Inherited
+ };
+ }
+
+ if !event_log.visible {
+ return;
+ }
+
+ // Rebuild log content (show last ~40 entries)
+ for (content_entity, children) in content_q.iter() {
+ // Despawn old children
+ if let Some(children) = children {
+ for child in children.iter() {
+ commands.entity(child).despawn();
+ }
+ }
+
+ let max_visible = if event_log.show_details { 30 } else { 60 };
+ let start = event_log.entries.len().saturating_sub(max_visible);
+ let visible_entries = &event_log.entries[start..];
+
+ commands.entity(content_entity).with_children(|parent| {
+ for entry in visible_entries.iter().rev() {
+ parent
+ .spawn((
+ Node {
+ flex_direction: FlexDirection::Column,
+ padding: UiRect::axes(Val::Px(6.0), Val::Px(5.0)),
+ border: UiRect::left(Val::Px(3.0)),
+ margin: UiRect::bottom(Val::Px(3.0)),
+ ..default()
+ },
+ BackgroundColor(Color::srgba_u8(0x0c, 0x12, 0x20, 0xcc)),
+ BorderColor::all(entry.color.with_alpha(0.5)),
+ ))
+ .with_children(|card| {
+ card.spawn((
+ Text::new(format!(
+ "T{} {} {}",
+ entry.tick, entry.icon, entry.headline
+ )),
+ TextFont { font_size: 12.0, ..default() },
+ TextColor(entry.color),
+ ));
+ if event_log.show_details {
+ card.spawn((
+ Text::new(&entry.detail),
+ TextFont { font_size: 10.0, ..default() },
+ TextColor(DIM_GRAY),
+ Node {
+ margin: UiRect::top(Val::Px(2.0)),
+ ..default()
+ },
+ ));
+ }
+ });
+ }
+ });
+ }
}
diff --git a/core/simulator_ui/src/render/cluster_view.rs b/core/simulator_ui/src/render/cluster_view.rs
deleted file mode 100644
index ef56eccc3..000000000
--- a/core/simulator_ui/src/render/cluster_view.rs
+++ /dev/null
@@ -1,139 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-//! Full-screen cluster view. The cluster is the game world -- clean, elegant,
-//! with maximum negative space. Replicas orbit in a radial layout with minimal
-//! concentric ring texture and simple link lines.
-
-use std::f32::consts::PI;
-
-use crate::render::message_arc::draw_message_arc;
-use crate::render::replica_node::draw_replica_node;
-use crate::state::animation::AnimationState;
-use crate::vsr::{Network, ReplicaState};
-use egui::Color32;
-
-// -- Brand palette ------------------------------------------------------------
-
-const BORDER: Color32 = Color32::from_rgb(0x3d, 0x44, 0x50);
-const RED: Color32 = Color32::from_rgb(0xef, 0x44, 0x44);
-
-/// Draw the full-screen cluster view. Returns the computed positions of each
-/// replica so callers can map replica IDs to screen coordinates.
-pub fn draw_cluster(
- ui: &mut egui::Ui,
- replicas: &[ReplicaState],
- animations: &AnimationState,
- network: &Network,
-) -> Vec<egui::Pos2> {
- let full_rect = ui.available_rect_before_wrap();
-
- // Inset to avoid HUD overlap: 80px top, 70px bottom.
- let rect = egui::Rect::from_min_max(
- egui::pos2(full_rect.min.x, full_rect.min.y + 80.0),
- egui::pos2(full_rect.max.x, full_rect.max.y - 70.0),
- );
-
- let painter = ui.painter_at(full_rect);
-
- let center = rect.center();
- let min_dim = rect.width().min(rect.height());
- let radius = (min_dim * 0.35).max(160.0);
- let n = replicas.len();
- let time = ui.input(|i| i.time);
-
- // --- Background texture: 3 very subtle concentric circles ----------------
- for ring in 1..=3 {
- let r = radius * (ring as f32 / 3.0);
- painter.circle_stroke(
- center,
- r,
- egui::Stroke::new(
- 0.4,
- Color32::from_rgba_unmultiplied(BORDER.r(), BORDER.g(), BORDER.b(), 12),
- ),
- );
- }
-
- // --- Position replicas in a circle, primary at top (-PI/2 offset) --------
- let positions: Vec<egui::Pos2> = (0..n)
- .map(|i| {
- let angle = 2.0 * PI * (i as f32) / (n as f32) - PI / 2.0;
- egui::pos2(
- center.x + radius * angle.cos(),
- center.y + radius * angle.sin(),
- )
- })
- .collect();
-
- // --- Link lines between all replica pairs --------------------------------
- for i in 0..n {
- for j in (i + 1)..n {
- let from = positions[i];
- let to = positions[j];
- let partitioned = network.is_partitioned(replicas[i].id, replicas[j].id);
-
- if partitioned {
- // Dashed red line (6px dash, 4px gap).
- let dx = to.x - from.x;
- let dy = to.y - from.y;
- let dist = (dx * dx + dy * dy).sqrt();
- if dist < 0.001 {
- continue;
- }
- let dash_len = 6.0;
- let gap_len = 4.0;
- let step = dash_len + gap_len;
- let steps = (dist / step) as usize;
- let nx = dx / dist;
- let ny = dy / dist;
- let time_offset = (time * 30.0) as f32 % step;
-
- for s in 0..=steps {
- let start_d = s as f32 * step + time_offset;
- let end_d = (start_d + dash_len).min(dist);
- if start_d >= dist {
- break;
- }
- let p0 = egui::pos2(from.x + nx * start_d, from.y + ny * start_d);
- let p1 = egui::pos2(from.x + nx * end_d, from.y + ny * end_d);
- painter.line_segment([p0, p1], egui::Stroke::new(1.2, RED));
- }
- } else {
- // Healthy: single 0.8px line, very subtle.
- let core_color =
- Color32::from_rgba_unmultiplied(BORDER.r(), BORDER.g(), BORDER.b(), 25);
- painter.line_segment([from, to], egui::Stroke::new(0.8, core_color));
- }
- }
- }
-
- // --- Draw replica nodes --------------------------------------------------
- for (i, replica) in replicas.iter().enumerate() {
- draw_replica_node(&painter, positions[i], replica, time);
- }
-
- // --- Draw in-flight message animations -----------------------------------
- for msg in animations.iter() {
- draw_message_arc(&painter, msg);
- }
-
- // Allocate the space so egui knows we used it.
- ui.allocate_rect(full_rect, egui::Sense::hover());
-
- positions
-}
diff --git a/core/simulator_ui/src/render/message_arc.rs b/core/simulator_ui/src/render/message_arc.rs
deleted file mode 100644
index bafefadd3..000000000
--- a/core/simulator_ui/src/render/message_arc.rs
+++ /dev/null
@@ -1,62 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-//! Draws an in-flight message as a clean comet with a 6-dot fading trail,
-//! a 3-layer outer glow, and a solid 5px core. Elegant, not noisy.
-
-use crate::state::animation::InFlightMessage;
-
-/// Draw a message in flight as a clean comet with a 6-dot trail and 3-layer glow.
-pub fn draw_message_arc(painter: &egui::Painter, msg: &InFlightMessage) {
- let color = msg.msg_type.color();
- let pos = msg.pos();
-
- // --- Fading trail: 6 dots behind the current position ---
- let trail_count = 6;
- for i in 1..=trail_count {
- let trail_t = (msg.progress - 0.025 * i as f32).clamp(0.0, 1.0);
-
- let trail_msg = InFlightMessage {
- id: msg.id,
- msg_type: msg.msg_type,
- from_pos: msg.from_pos,
- to_pos: msg.to_pos,
- progress: trail_t,
- duration: msg.duration,
- };
- let trail_pos = trail_msg.pos();
-
- let t_frac = (i as f32 - 1.0) / (trail_count - 1) as f32;
- let size = 3.5 - t_frac * 2.5; // 3.5 -> 1.0
- let alpha = (160.0 - t_frac * 140.0).max(20.0) as u8; // 160 -> 20
-
- let trail_color =
- egui::Color32::from_rgba_unmultiplied(color.r(), color.g(), color.b(), alpha);
- painter.circle_filled(trail_pos, size.max(1.0), trail_color);
- }
-
- // --- Outer glow: 3 concentric circles with decreasing alpha ---
- let glow_layers: [(f32, u8); 3] = [(12.0, 25), (8.0, 55), (5.0, 100)];
- for (radius, alpha) in glow_layers {
- let glow_color =
- egui::Color32::from_rgba_unmultiplied(color.r(), color.g(), color.b(), alpha);
- painter.circle_filled(pos, radius, glow_color);
- }
-
- // --- Core: solid 5px circle ---
- painter.circle_filled(pos, 5.0, color);
-}
diff --git a/core/simulator_ui/src/render/mod.rs b/core/simulator_ui/src/render/mod.rs
deleted file mode 100644
index 0a6bfdce4..000000000
--- a/core/simulator_ui/src/render/mod.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-//! Rendering modules for the VSR simulator visualization.
-
-pub mod cluster_view;
-pub mod message_arc;
-pub mod replica_node;
-pub mod timeline;
diff --git a/core/simulator_ui/src/render/replica_node.rs b/core/simulator_ui/src/render/replica_node.rs
deleted file mode 100644
index b60090050..000000000
--- a/core/simulator_ui/src/render/replica_node.rs
+++ /dev/null
@@ -1,310 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-//! Draws a single VSR replica node as a 150x180 card with a breathing glow
-//! border, warm primary aura, role badge, labeled metrics, gradient pipeline
-//! bar, and status indicator. Clean, commanding presence.
-
-use crate::vsr::{ReplicaState, Role, Status};
-use egui::Color32;
-
-// -- Dimensions ---------------------------------------------------------------
-
-const NODE_WIDTH: f32 = 150.0;
-const NODE_HEIGHT: f32 = 180.0;
-const CORNER_RADIUS: u8 = 14;
-
-// -- Brand palette ------------------------------------------------------------
-
-const CARD: Color32 = Color32::from_rgb(0x0e, 0x19, 0x30);
-const ORANGE: Color32 = Color32::from_rgb(0xff, 0x91, 0x03);
-const CREAM: Color32 = Color32::from_rgb(0xff, 0xfa, 0xeb);
-const MUTED: Color32 = Color32::from_rgb(0x83, 0x8d, 0x95);
-const BORDER: Color32 = Color32::from_rgb(0x3d, 0x44, 0x50);
-const TEAL: Color32 = Color32::from_rgb(0x14, 0xb8, 0xa6);
-const RED: Color32 = Color32::from_rgb(0xef, 0x44, 0x44);
-const DEAD_BG: Color32 = Color32::from_rgb(0x1a, 0x1a, 0x1a);
-const DEAD_BORDER: Color32 = Color32::from_rgb(0x44, 0x44, 0x44);
-const SHADOW_COLOR: Color32 = Color32::from_rgba_premultiplied(0x00, 0x00, 0x00, 100);
-const BAR_TRACK: Color32 = Color32::from_rgb(0x1a, 0x24, 0x3b);
-
-// -- Helpers ------------------------------------------------------------------
-
-/// Return the accent color for a given status (alive nodes only).
-fn status_color(status: Status) -> Color32 {
- match status {
- Status::Normal => TEAL,
- Status::ViewChange => ORANGE,
- Status::Recovering => RED,
- }
-}
-
-/// Linearly interpolate between two colors by `t` in [0, 1].
-fn lerp_color(a: Color32, b: Color32, t: f32) -> Color32 {
- let t = t.clamp(0.0, 1.0);
- let mix = |x: u8, y: u8| -> u8 { (x as f32 * (1.0 - t) + y as f32 * t) as u8 };
- Color32::from_rgb(mix(a.r(), b.r()), mix(a.g(), b.g()), mix(a.b(), b.b()))
-}
-
-/// Return a translucent version of a color.
-fn with_alpha(c: Color32, a: u8) -> Color32 {
- Color32::from_rgba_premultiplied(
- (c.r() as u16 * a as u16 / 255) as u8,
- (c.g() as u16 * a as u16 / 255) as u8,
- (c.b() as u16 * a as u16 / 255) as u8,
- a,
- )
-}
-
-// -- Public entry point -------------------------------------------------------
-
-/// Draw a single replica node centered at `center`.
-///
-/// The card is 150x180 pixels with rounded corners, a breathing glow border,
-/// a warm orange aura for the Primary, role badge, labeled view/commit values,
-/// a status label, and a gradient pipeline-depth bar at the bottom.
-///
-/// `time` is `ui.input(|i| i.time)` -- used for the breathing pulse effect.
-pub fn draw_replica_node(
- painter: &egui::Painter,
- center: egui::Pos2,
- replica: &ReplicaState,
- time: f64,
-) {
- let rect = egui::Rect::from_center_size(center, egui::vec2(NODE_WIDTH, NODE_HEIGHT));
- let rounding = egui::CornerRadius::same(CORNER_RADIUS);
- let dead = !replica.alive;
-
- let accent = if dead {
- DEAD_BORDER
- } else {
- status_color(replica.status)
- };
-
- // Breathing multiplier: gently pulses the glow border alpha.
- let breath = 0.85 + 0.15 * (time * 2.0).sin() as f32;
-
- // --- Primary glow aura: 6 concentric circles, warm orange ----------------
- if replica.role == Role::Primary && replica.alive {
- for i in (1..=6).rev() {
- let r = NODE_WIDTH * 0.5 + i as f32 * 8.0;
- let base_alpha = match i {
- 1 => 10u8,
- 2 => 8,
- 3 => 6,
- 4 => 5,
- 5 => 4,
- _ => 3,
- };
- let alpha = (base_alpha as f32 * breath) as u8;
- painter.circle_filled(center, r, with_alpha(ORANGE, alpha));
- }
- }
-
- // --- Drop shadow ---------------------------------------------------------
- let shadow_offset = egui::vec2(2.0, 3.0);
- painter.rect(
- rect.translate(shadow_offset),
- rounding,
- SHADOW_COLOR,
- egui::Stroke::NONE,
- egui::StrokeKind::Outside,
- );
-
- // --- Outer glow border (breathing) ---------------------------------------
- if !dead {
- let glow_rect = rect.expand(2.5);
- let glow_alpha = (70.0 * breath) as u8;
- let stroke_alpha = (130.0 * breath) as u8;
- painter.rect(
- glow_rect,
- egui::CornerRadius::same(CORNER_RADIUS + 3),
- with_alpha(accent, glow_alpha),
- egui::Stroke::new(1.5, with_alpha(accent, stroke_alpha)),
- egui::StrokeKind::Outside,
- );
- }
-
- // --- Card background -----------------------------------------------------
- let bg = if dead { DEAD_BG } else { CARD };
- painter.rect(
- rect,
- rounding,
- bg,
- egui::Stroke::new(1.5, if dead { DEAD_BORDER } else { accent }),
- egui::StrokeKind::Outside,
- );
-
- // --- Replica ID (32px bold, the main identifier) -------------------------
- let id_y = rect.min.y + 30.0;
- let id_text = format!("R{}", replica.id);
- painter.text(
- egui::pos2(center.x, id_y),
- egui::Align2::CENTER_CENTER,
- &id_text,
- egui::FontId::new(32.0, egui::FontFamily::Proportional),
- if dead { MUTED } else { CREAM },
- );
-
- // --- Role badge (13px, right below ID) -----------------------------------
- let badge_y = rect.min.y + 52.0;
- let (badge_text, badge_color) = match replica.role {
- Role::Primary => ("PRIMARY", ORANGE),
- Role::Backup => ("BACKUP", MUTED),
- };
- painter.text(
- egui::pos2(center.x, badge_y),
- egui::Align2::CENTER_CENTER,
- badge_text,
- egui::FontId::new(13.0, egui::FontFamily::Proportional),
- if dead {
- with_alpha(MUTED, 120)
- } else {
- badge_color
- },
- );
-
- // --- Thin horizontal separator -------------------------------------------
- let sep_y = rect.min.y + 62.0;
- let sep_half_w = (NODE_WIDTH - 24.0) / 2.0;
- let sep_color = if dead {
- with_alpha(MUTED, 40)
- } else {
- with_alpha(BORDER, 80)
- };
- painter.line_segment(
- [
- egui::pos2(center.x - sep_half_w, sep_y),
- egui::pos2(center.x + sep_half_w, sep_y),
- ],
- egui::Stroke::new(1.0, sep_color),
- );
-
- // --- View and Commit as labeled values -----------------------------------
- let label_color = if dead { with_alpha(MUTED, 100) } else { MUTED };
- let value_color = if dead { with_alpha(CREAM, 100) } else { CREAM };
-
- // View
- let view_label_y = rect.min.y + 76.0;
- painter.text(
- egui::pos2(center.x, view_label_y),
- egui::Align2::CENTER_CENTER,
- "VIEW",
- egui::FontId::new(11.0, egui::FontFamily::Proportional),
- label_color,
- );
- let view_value_y = rect.min.y + 94.0;
- painter.text(
- egui::pos2(center.x, view_value_y),
- egui::Align2::CENTER_CENTER,
- replica.view.to_string(),
- egui::FontId::new(20.0, egui::FontFamily::Proportional),
- value_color,
- );
-
- // Commit
- let commit_label_y = rect.min.y + 112.0;
- painter.text(
- egui::pos2(center.x, commit_label_y),
- egui::Align2::CENTER_CENTER,
- "COMMIT",
- egui::FontId::new(11.0, egui::FontFamily::Proportional),
- label_color,
- );
- let commit_value_y = rect.min.y + 130.0;
- painter.text(
- egui::pos2(center.x, commit_value_y),
- egui::Align2::CENTER_CENTER,
- replica.commit.to_string(),
- egui::FontId::new(20.0, egui::FontFamily::Proportional),
- value_color,
- );
-
- // --- Status label (10px at bottom) ---------------------------------------
- let status_y = rect.min.y + 148.0;
- let status_text = if dead {
- "DEAD"
- } else {
- match replica.status {
- Status::Normal => "NORMAL",
- Status::ViewChange => "VIEW-CHANGE",
- Status::Recovering => "RECOVERING",
- }
- };
- let status_col = if dead { MUTED } else { accent };
- painter.text(
- egui::pos2(center.x, status_y),
- egui::Align2::CENTER_CENTER,
- status_text,
- egui::FontId::new(10.0, egui::FontFamily::Proportional),
- status_col,
- );
-
- // --- Pipeline depth bar (8px tall, at bottom) ----------------------------
- let bar_y = rect.max.y - 16.0;
- let bar_w = NODE_WIDTH - 20.0;
- let bar_h: f32 = 8.0;
- let bar_rounding_px = 4u8;
- let bar_rounding = egui::CornerRadius::same(bar_rounding_px);
- let bar_rect = egui::Rect::from_min_size(
- egui::pos2(center.x - bar_w / 2.0, bar_y - bar_h / 2.0),
- egui::vec2(bar_w, bar_h),
- );
-
- // Track
- painter.rect_filled(bar_rect, bar_rounding, BAR_TRACK);
-
- // Fill with teal-to-orange gradient (approximated with segments).
- let fill_fraction = (replica.pipeline_depth as f32 / 8.0).clamp(0.0, 1.0);
- if fill_fraction > 0.0 {
- let fill_w = bar_w * fill_fraction;
- let segments = (fill_w as u32).max(1);
- let seg_w = fill_w / segments as f32;
- for i in 0..segments {
- let t = i as f32 / segments.max(1) as f32;
- let color = if dead {
- with_alpha(MUTED, 100)
- } else {
- lerp_color(TEAL, ORANGE, t)
- };
- let x = bar_rect.min.x + i as f32 * seg_w;
- let seg_rect = egui::Rect::from_min_size(
- egui::pos2(x, bar_rect.min.y),
- egui::vec2(seg_w + 0.5, bar_h),
- );
- let seg_rect = seg_rect.intersect(bar_rect);
- let r = if i == 0 && i == segments - 1 {
- bar_rounding
- } else if i == 0 {
- egui::CornerRadius {
- nw: bar_rounding_px,
- sw: bar_rounding_px,
- ..Default::default()
- }
- } else if i == segments - 1 {
- egui::CornerRadius {
- ne: bar_rounding_px,
- se: bar_rounding_px,
- ..Default::default()
- }
- } else {
- egui::CornerRadius::ZERO
- };
- painter.rect_filled(seg_rect, r, color);
- }
- }
-}
diff --git a/core/simulator_ui/src/render/timeline.rs b/core/simulator_ui/src/render/timeline.rs
deleted file mode 100644
index 9d04ace6e..000000000
--- a/core/simulator_ui/src/render/timeline.rs
+++ /dev/null
@@ -1,156 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-//! Draws a horizontal timeline bar showing recent simulation events as colored
-//! glowing dots, with tick marks, a pulsing current-tick indicator, and a
-//! scrolling 300-tick window.
-
-use crate::vsr::SimEvent;
-
-// -- Brand palette ------------------------------------------------------------
-
-const CARD: egui::Color32 = egui::Color32::from_rgb(0x0e, 0x19, 0x30);
-const ORANGE: egui::Color32 = egui::Color32::from_rgb(0xff, 0x91, 0x03);
-const CREAM: egui::Color32 = egui::Color32::from_rgb(0xff, 0xfa, 0xeb);
-const BORDER: egui::Color32 = egui::Color32::from_rgb(0x3d, 0x44, 0x50);
-const TEAL: egui::Color32 = egui::Color32::from_rgb(0x14, 0xb8, 0xa6);
-const PURPLE: egui::Color32 = egui::Color32::from_rgb(0xa8, 0x55, 0xf7);
-const PINK: egui::Color32 = egui::Color32::from_rgb(0xfa, 0x5e, 0x8a);
-const BLUE: egui::Color32 = egui::Color32::from_rgb(0x5f, 0x87, 0xfd);
-
-/// Draw a horizontal event timeline with glowing event dots, tick ruler, and a
-/// pulsing vertical line at the current tick.
-pub fn draw_timeline(ui: &mut egui::Ui, events: &[SimEvent], current_tick: u64) {
- let timeline_height = 60.0;
- let (rect, _response) = ui.allocate_exact_size(
- egui::vec2(ui.available_width(), timeline_height),
- egui::Sense::hover(),
- );
-
- let painter = ui.painter_at(rect);
-
- // --- Background: dark card color rounded rect ---
- painter.rect_filled(rect, 6.0, CARD);
-
- // --- Layout constants ---
- let window = 300u64;
- let start_tick = current_tick.saturating_sub(window);
- let label_space = 100.0; // Reserve right side for "Tick: N" label.
- let bar_left = rect.left() + 8.0;
- let bar_right = rect.right() - label_space;
- let bar_width = bar_right - bar_left;
- let bar_y = rect.center().y;
-
- // Helper: map a tick to an x coordinate.
- let tick_to_x = |tick: u64| -> f32 {
- if window == 0 {
- return bar_left;
- }
- let t = (tick.saturating_sub(start_tick)) as f32 / window as f32;
- bar_left + t * bar_width
- };
-
- // --- Horizontal ruler line ---
- let ruler_color =
- egui::Color32::from_rgba_unmultiplied(BORDER.r(), BORDER.g(), BORDER.b(), 100);
- painter.line_segment(
- [egui::pos2(bar_left, bar_y), egui::pos2(bar_right, bar_y)],
- egui::Stroke::new(1.5, ruler_color),
- );
-
- // --- Tick marks every 10 ticks ---
- let first_mark = start_tick.div_ceil(10) * 10; // Round up to next multiple of 10.
- let mut mark_tick = first_mark;
- while mark_tick <= current_tick {
- let x = tick_to_x(mark_tick);
- let is_major = mark_tick.is_multiple_of(50);
- let mark_half_h = if is_major { 10.0 } else { 5.0 };
- let mark_alpha: u8 = if is_major { 80 } else { 40 };
- let mark_color =
- egui::Color32::from_rgba_unmultiplied(BORDER.r(), BORDER.g(), BORDER.b(), mark_alpha);
-
- painter.line_segment(
- [
- egui::pos2(x, bar_y - mark_half_h),
- egui::pos2(x, bar_y + mark_half_h),
- ],
- egui::Stroke::new(0.8, mark_color),
- );
- mark_tick += 10;
- }
-
- // --- Event dots with glow ---
- for event in events.iter().rev() {
- let tick = event.tick();
- if tick < start_tick {
- break;
- }
- if tick > current_tick {
- continue;
- }
-
- let x = tick_to_x(tick);
- let color = event_color(event);
- let dot_pos = egui::pos2(x, bar_y);
-
- // Outer glow layer.
- let glow = egui::Color32::from_rgba_unmultiplied(color.r(), color.g(), color.b(), 60);
- painter.circle_filled(dot_pos, 7.0, glow);
-
- // Core dot.
- painter.circle_filled(dot_pos, 4.0, color);
- }
-
- // --- Pulsing vertical line at current tick ---
- let cx = tick_to_x(current_tick);
- let time = ui.input(|i| i.time);
- let pulse_alpha = ((time * 3.0).sin() * 0.3 + 0.7) as f32; // Oscillates 0.4..1.0.
- let line_color = egui::Color32::from_rgba_unmultiplied(
- ORANGE.r(),
- ORANGE.g(),
- ORANGE.b(),
- (pulse_alpha * 200.0) as u8,
- );
- painter.line_segment(
- [
- egui::pos2(cx, rect.top() + 2.0),
- egui::pos2(cx, rect.bottom() - 2.0),
- ],
- egui::Stroke::new(2.0, line_color),
- );
-
- // --- "Tick: N" label in cream bold text on the right ---
- painter.text(
- egui::pos2(rect.right() - 8.0, bar_y),
- egui::Align2::RIGHT_CENTER,
- format!("Tick: {}", current_tick),
- egui::FontId::proportional(14.0),
- CREAM,
- );
-}
-
-/// Map a simulation event to its brand color for timeline display.
-fn event_color(event: &SimEvent) -> egui::Color32 {
- match event {
- SimEvent::MessageSent { .. } => BLUE,
- SimEvent::ViewChangeStarted { .. } => PINK,
- SimEvent::OperationCommitted { .. } => ORANGE,
- SimEvent::PrimaryElected { .. } => PURPLE,
- SimEvent::PrepareAcked { .. } => TEAL,
- _ => egui::Color32::from_rgb(0x6b, 0x6b, 0x78), // muted gray
- }
-}
diff --git a/core/simulator_ui/src/state/animation.rs b/core/simulator_ui/src/state/animation.rs
deleted file mode 100644
index b1aef7d9b..000000000
--- a/core/simulator_ui/src/state/animation.rs
+++ /dev/null
@@ -1,136 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-//! In-flight message animation state and commit ring effects for the cluster
-//! visualization. Tracks comet-style message arcs and expanding ring pulses
-//! that fire when a replica commits an operation.
-
-use crate::vsr::MessageType;
-
-/// An in-flight message being animated between two replica positions.
-pub struct InFlightMessage {
- pub id: u64,
- pub msg_type: MessageType,
- pub from_pos: egui::Pos2,
- pub to_pos: egui::Pos2,
- pub progress: f32,
- pub duration: f32,
-}
-
-impl InFlightMessage {
- /// Interpolate the current position along a quadratic bezier curve.
- ///
- /// The control point is offset perpendicular to the line between `from_pos`
- /// and `to_pos`, producing a visible arc rather than a straight line.
- pub fn pos(&self) -> egui::Pos2 {
- let t = self.progress.clamp(0.0, 1.0);
-
- let mid = egui::pos2(
- (self.from_pos.x + self.to_pos.x) * 0.5,
- (self.from_pos.y + self.to_pos.y) * 0.5,
- );
-
- // Perpendicular offset for the control point.
- let dx = self.to_pos.x - self.from_pos.x;
- let dy = self.to_pos.y - self.from_pos.y;
- let len = (dx * dx + dy * dy).sqrt().max(1.0);
- let perp_x = -dy / len;
- let perp_y = dx / len;
- let offset = 30.0;
-
- let control = egui::pos2(mid.x + perp_x * offset, mid.y + perp_y * offset);
-
- // Quadratic bezier: B(t) = (1-t)^2 * P0 + 2*(1-t)*t * C + t^2 * P1
- let inv = 1.0 - t;
- let x = inv * inv * self.from_pos.x + 2.0 * inv * t * control.x + t * t * self.to_pos.x;
- let y = inv * inv * self.from_pos.y + 2.0 * inv * t * control.y + t * t * self.to_pos.y;
-
- egui::pos2(x, y)
- }
-}
-
-/// An expanding translucent ring effect spawned at a replica when it commits.
-#[allow(dead_code)]
-pub struct CommitRing {
- pub pos: egui::Pos2,
- pub age: f32,
- pub max_age: f32,
-}
-
-/// Manages all active in-flight message animations and commit ring effects.
-#[derive(Default)]
-pub struct AnimationState {
- pub messages: Vec<InFlightMessage>,
- pub commit_rings: Vec<CommitRing>,
-}
-
-impl AnimationState {
- /// Add a new in-flight message animation.
- pub fn add(
- &mut self,
- id: u64,
- msg_type: MessageType,
- from: egui::Pos2,
- to: egui::Pos2,
- duration: f32,
- ) {
- self.messages.push(InFlightMessage {
- id,
- msg_type,
- from_pos: from,
- to_pos: to,
- progress: 0.0,
- duration,
- });
- }
-
- /// Spawn an expanding commit ring at the given position.
- pub fn add_commit_ring(&mut self, pos: egui::Pos2) {
- self.commit_rings.push(CommitRing {
- pos,
- age: 0.0,
- max_age: 0.6,
- });
- }
-
- /// Advance all animations by `dt` seconds. Completed animations are removed.
- pub fn advance(&mut self, dt: f32) {
- for msg in &mut self.messages {
- if msg.duration > 0.0 {
- msg.progress += dt / msg.duration;
- } else {
- msg.progress = 1.0;
- }
- }
- self.messages.retain(|m| m.progress < 1.0);
-
- for ring in &mut self.commit_rings {
- ring.age += dt;
- }
- self.commit_rings.retain(|r| r.age < r.max_age);
- }
-
- /// Returns true if there are any active animations.
- pub fn has_active(&self) -> bool {
- !self.messages.is_empty() || !self.commit_rings.is_empty()
- }
-
- /// Iterate over active in-flight messages.
- pub fn iter(&self) -> impl Iterator<Item = &InFlightMessage> {
- self.messages.iter()
- }
-}
diff --git a/core/simulator_ui/src/state/mod.rs b/core/simulator_ui/src/state/mod.rs
deleted file mode 100644
index 33febe666..000000000
--- a/core/simulator_ui/src/state/mod.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-//! Animation and UI state management.
-
-pub mod animation;
diff --git a/core/simulator_ui/src/vsr/events.rs b/core/simulator_ui/src/vsr/events.rs
index 30774d318..8270fc8c8 100644
--- a/core/simulator_ui/src/vsr/events.rs
+++ b/core/simulator_ui/src/vsr/events.rs
@@ -98,6 +98,7 @@ pub enum SimEvent {
Tick { tick: u64 },
}
+#[allow(dead_code)]
impl SimEvent {
pub fn tick(&self) -> u64 {
match self {
diff --git a/core/simulator_ui/src/vsr/mod.rs b/core/simulator_ui/src/vsr/mod.rs
index ba9cb68b8..14a493027 100644
--- a/core/simulator_ui/src/vsr/mod.rs
+++ b/core/simulator_ui/src/vsr/mod.rs
@@ -28,6 +28,5 @@ mod simulator;
mod types;
pub use events::*;
-pub use network::*;
pub use simulator::*;
pub use types::*;
diff --git a/core/simulator_ui/src/vsr/types.rs b/core/simulator_ui/src/vsr/types.rs
index c539b3d88..a29f09801 100644
--- a/core/simulator_ui/src/vsr/types.rs
+++ b/core/simulator_ui/src/vsr/types.rs
@@ -53,18 +53,26 @@ pub enum MessageType {
}
impl MessageType {
- pub fn color(self) -> egui::Color32 {
+ /// Brand color for this message type as (r, g, b).
+ pub fn color_rgb(self) -> (u8, u8, u8) {
match self {
- Self::ClientRequest => egui::Color32::from_rgb(0xff, 0xfa, 0xeb), // cream #fffaeb
- Self::Prepare => egui::Color32::from_rgb(0x5f, 0x87, 0xfd), // blue #5f87fd
- Self::PrepareOk => egui::Color32::from_rgb(0x14, 0xb8, 0xa6), // teal #14b8a6
- Self::Commit => egui::Color32::from_rgb(0xff, 0x91, 0x03), // orange #ff9103
- Self::StartViewChange => egui::Color32::from_rgb(0xfa, 0x5e, 0x8a), // pink #fa5e8a
- Self::DoViewChange => egui::Color32::from_rgb(0xa8, 0x55, 0xf7), // purple #a855f7
- Self::StartView => egui::Color32::from_rgb(0x63, 0x66, 0xf1), // indigo #6366f1
- Self::ClientReply => egui::Color32::from_rgb(0xff, 0xa7, 0x03), // orange #ffa703
+ Self::ClientRequest => (0xff, 0xfa, 0xeb), // cream
+ Self::Prepare => (0x5f, 0x87, 0xfd), // blue
+ Self::PrepareOk => (0x14, 0xb8, 0xa6), // teal
+ Self::Commit => (0xff, 0x91, 0x03), // orange
+ Self::StartViewChange => (0xfa, 0x5e, 0x8a), // pink
+ Self::DoViewChange => (0xa8, 0x55, 0xf7), // purple
+ Self::StartView => (0x63, 0x66, 0xf1), // indigo
+ Self::ClientReply => (0xff, 0xa7, 0x03), // orange
}
}
+
+ /// Bevy Color for this message type.
+ #[allow(dead_code)]
+ pub fn color(self) -> bevy::color::Color {
+ let (r, g, b) = self.color_rgb();
+ bevy::color::Color::srgb_u8(r, g, b)
+ }
}
/// A message in the VSR protocol.