feat: Introduce Topology Trait for Compile-Time Safe Score Binding

Introduce the `Topology` trait to ensure that `Maestro` can compile-time safely bind compatible `Scores` and `Topologies`. This refactoring includes updating `HarmonyTuiEvent`, `ScoreListWidget`, and related structures to work with generic `Topology` types, enhancing type safety and modularity.
This commit is contained in:
2025-04-02 15:51:28 -04:00
parent f7dc15cbf0
commit fc718f11cf
9 changed files with 87 additions and 64 deletions

12
Cargo.lock generated
View File

@@ -823,7 +823,6 @@ dependencies = [
"env_logger",
"harmony",
"harmony_macros",
"harmony_tui",
"harmony_types",
"log",
"tokio",
@@ -860,6 +859,17 @@ dependencies = [
"url",
]
[[package]]
name = "example-topology"
version = "0.1.0"
dependencies = [
"rand",
]
[[package]]
name = "example-topology2"
version = "0.1.0"
[[package]]
name = "example-tui"
version = "0.1.0"