Rust Console hello-vmx Example

Cargo console demo using ComponentVm, CompositeVm, FilteredCompositeVm, and RelayCommand

Rust Console hello-vmx Example Cargo console demo using ComponentVm, CompositeVm, FilteredCompositeVm, and RelayCommand Rust Console hello-vmx Example Cargo console demo using ComponentVm, CompositeVm, FilteredCompositeVm, and RelayCommand Host and adapter boundary VMx-owned application state Verification and modeling rule Cargo binary src/main.rs cargo run stdout summary Console projection print current note print search count no TUI state Run surface local example command smoke-friendly path documented README entry CompositeVm rows modeled note rows initial current construct + dispose FilteredCompositeVm live search result rust query selected note remains VM-owned RelayCommand command execution VMx services hub + dispatcher ComponentVm<String> 3 seeded notes name slug + model title fixed rust predicate Manual smoke cargo run expected four-line output builds local vmx crate Best-fit use Use this as the Rust stepping stone from modeled rows to filtered collections before the Ratatui showcase. Reading rule Follow arrows top to bottom: host input becomes VMx commands; VMx state publishes renderable projections back to the host. binds owns projects loads children commands data tests boundary

Rust primitives

  • The example shows the Rust flavor beyond a single leaf VM.
  • Composite and filtered projections stay VMx-owned.

Command path

  • RelayCommand demonstrates executable VM behavior.
  • Console output is only a projection.

Next step

  • Move to Ratatui Notes Showcase for full MVVM terminal composition.