Crates and macros reference

Public namespaces and Cargo features

Enable capabilities on vmux_sdk (MIT OR Apache-2.0) for standalone external applications, or on vmux_app (GPL-3.0-or-later) when composing Vmux product features:

CrateCargo featureAvailable behavior
vmux_sdk / vmux_appecs (default on vmux_sdk)Re-exported Bevy 0.20, core entity vocabulary, scoped identity, OperationPlugin, leases, generations, dirty/selection, ShutdownPlugin, TaskPlugin/IoTaskPlugin, channel, time, and MinimalPlugins.
vmux_sdk / vmux_appcontractsShared typed contracts (UiState, UiEvent, HostEvent, UiEventPermissions, UiStateFrame, PageReady).
vmux_sdk / vmux_appuiLean vmux_ui component kit (default-features = false), theme, Fluent i18n, use_ui_state, and send.
vmux_sdk / vmux_apppage, page-host, page-host-native, page-hot-reloadPage, PagePlugin, #[page], plus CEF-free Wry + Dioxus PageHostPlugin, HostedPage, PageRoot, PageStylesheet, PageBounds, PageAppearance, and PageScriptRequest.
vmux_sdk / vmux_appwindow, window-nativeReactive WindowHostPlugin, WindowHostConfig, DisplayRelocationPlugin, and DefaultPlugins.
vmux_sdk / vmux_appwatch, jobs, storeFileWatchPlugin, bounded multi-lane JobsPlugin / JobPlugin, declarative #[store] schemas, and AutoSavePlugin.
vmux_sdk / vmux_apprunner, http-server, web, quic-serverWake-driven HeadlessTokioRunner, WinitWakePlugin, ServerPlugins, HttpServerPlugin, Dioxus SSR WebPagePlugin, and QuicServerPlugin.
vmux_sdk / vmux_appmenu, menu-native, flex, lsp, hostDeclarative OS menus, flexbox layout, LSP lifecycles (app-supplied transport), and isolated ProfilePaths / ServicePaths.
vmux_sdkwindow-notify, window-diagnostics, window-shutdown-signal, window-macos-glass, window-relaunch, update, capture, capture-screenshots, capture-recording, tray, nav, qrOS notifications, rolling file/crash diagnostics, Unix shutdown signals, macOS Liquid Glass / splash & self-relaunch drivers (vmux_window), auto-updater (vmux_update), native window screenshots & recording (vmux_capture), system tray (vmux_tray), canonical mobile navigation (vmux_nav), and iOS AVFoundation QR scanner (vmux_qr).
vmux_sdktest-harness, markdown, syntax, clipboard, path, spawn, transportHeadless test harness and reusable SDK utility crates (vmux_feature, vmux_project, vmux_tui_dom, vmux_git are also published as standalone MIT OR Apache-2.0 SDK crates).
vmux_app (GPL-3.0)layout, layout-runtime, project, extension-core, extension, manifest, hostingProduct workspace layout, project archive runtime, extension catalog, FeatureManifest composition, and WebHostPlugin.

Attribute macros cheat sheet

MacroPurpose
#[vmux_api::ui_state]Declares a projected UiState contract (optionally patch = MyPatch) serialized via rkyv.
#[vmux_api::ui_state_patch]Declares a delta patch type applied to a UiState.
#[vmux_api::ui_event]Declares a typed intent sent from pages to ECS.
#[vmux_api::host_event]Declares a one-way host-to-UI binary event.
#[vmux_page::page(...)]Binds a Dioxus #[component] and declared state/event contracts to a Page.
#[vmux_app::menu::menu]Generates declarative menu bar / submenu / accelerator definitions for MenuActionPlugin.
#[vmux_ecs::store(track; ...)]Declares a persisted store schema and change-tracking observers for AutoSavePlugin.
#[vmux_ecs::channels]Eliminates boilerplate when draining multiple AsyncChannelPlugin streams.
#[vmux_macro::app_plugin]Composes Cargo-feature-gated plugin graphs with transitive dependency resolution.

Platform support matrix

TargetCore ECS / Headless / Runner / HTTP / QUICNative Desktop Window (vmux_window + vmux_page + vmux_menu)Product Host
macOS (Apple Silicon)VerifiedVerified (Wry + Dioxus + muda, CEF-free)Verified (vmux_desktop)
Linux (CI)VerifiedVerified in CI (Wry WebKitGTK + bevy_winit + muda GTK, CEF-free)Headless / CLI / Daemon
Windows (CI)Verified (SDK native stack)Verified in CI (Wry WebView2 + bevy_winit + muda Win32, CEF-free)Unverified
iOSCore verifiedvmux_page Wry supportVerified (vmux_mobile)
Android / WebUnverifiedPlannedUnverified

Publishable crates, licensing, and publish order

Workspace crates use two license tiers enforced by vmux dx test sdk --publish and deny.toml:

  • MIT OR Apache-2.0 (SDK & CEF runtime crates): All 36 reusable SDK crates under crates/sdk/* (vmux_macro through vmux_sdk, plus vmux_nav, vmux_qr, vmux_update, vmux_capture, vmux_tray, vmux_feature, vmux_project, vmux_tui_dom, vmux_git) plus vmux_cef_core and vmux_cef. External consumers targeting crates.io should depend on vmux_sdk (or individual SDK crates below).
  • GPL-3.0-or-later (client applications & product crates): crates/app/* (vmux_cli, vmux_desktop, vmux_mobile), crates/feature/* (including vmux_remote host & client, vmux_terminal, vmux_editor, vmux_layout, vmux_shortcut), and crates/product/* (vmux_app, vmux_browser, vmux_mcp, vmux_process, vmux_tui_core, vmux_vm). Available under commercial dual-licensing for enterprise closed-source embedding.
  • Brand and distribution identifiers are governed by TRADEMARK.md.

Exact topological SDK crates.io publish order (Layer 0–8):

  1. Layer 0: vmux_macro, vmux_time, vmux_task, vmux_flex, vmux_clipboard, vmux_path, vmux_markdown, vmux_syntax, vmux_spawn, vmux_qr
  2. Layer 1: vmux_api, vmux_channel, vmux_menu, vmux_store, vmux_watch, vmux_profile
  3. Layer 2: vmux_transport, vmux_tray
  4. Layer 3: vmux_ecs
  5. Layer 4: vmux_nav, vmux_job, vmux_runner, vmux_http, vmux_quic, vmux_lsp, vmux_test, vmux_ui, vmux_update, vmux_capture
  6. Layer 5: vmux_page
  7. Layer 6: vmux_window
  8. Layer 7: vmux_sdk, vmux_feature, vmux_project, vmux_tui_dom
  9. Layer 8: vmux_git

Full workspace publish order (all crates/sdk/*, vmux_cef_core, vmux_cef, crates/feature/*, and crates/app/*) is defined in crates/feature/vmux_dx/src/publish_audit/catalog.rs and validated by vmux dx test sdk --publish.