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:
| Crate | Cargo feature | Available behavior |
|---|---|---|
vmux_sdk / vmux_app | ecs (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_app | contracts | Shared typed contracts (UiState, UiEvent, HostEvent, UiEventPermissions, UiStateFrame, PageReady). |
vmux_sdk / vmux_app | ui | Lean vmux_ui component kit (default-features = false), theme, Fluent i18n, use_ui_state, and send. |
vmux_sdk / vmux_app | page, page-host, page-host-native, page-hot-reload | Page, PagePlugin, #[page], plus CEF-free Wry + Dioxus PageHostPlugin, HostedPage, PageRoot, PageStylesheet, PageBounds, PageAppearance, and PageScriptRequest. |
vmux_sdk / vmux_app | window, window-native | Reactive WindowHostPlugin, WindowHostConfig, DisplayRelocationPlugin, and DefaultPlugins. |
vmux_sdk / vmux_app | watch, jobs, store | FileWatchPlugin, bounded multi-lane JobsPlugin / JobPlugin, declarative #[store] schemas, and AutoSavePlugin. |
vmux_sdk / vmux_app | runner, http-server, web, quic-server | Wake-driven HeadlessTokioRunner, WinitWakePlugin, ServerPlugins, HttpServerPlugin, Dioxus SSR WebPagePlugin, and QuicServerPlugin. |
vmux_sdk / vmux_app | menu, menu-native, flex, lsp, host | Declarative OS menus, flexbox layout, LSP lifecycles (app-supplied transport), and isolated ProfilePaths / ServicePaths. |
vmux_sdk | window-notify, window-diagnostics, window-shutdown-signal, window-macos-glass, window-relaunch, update, capture, capture-screenshots, capture-recording, tray, nav, qr | OS 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_sdk | test-harness, markdown, syntax, clipboard, path, spawn, transport | Headless 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, hosting | Product workspace layout, project archive runtime, extension catalog, FeatureManifest composition, and WebHostPlugin. |
Attribute macros cheat sheet
| Macro | Purpose |
|---|---|
#[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
| Target | Core ECS / Headless / Runner / HTTP / QUIC | Native Desktop Window (vmux_window + vmux_page + vmux_menu) | Product Host |
|---|---|---|---|
| macOS (Apple Silicon) | Verified | Verified (Wry + Dioxus + muda, CEF-free) | Verified (vmux_desktop) |
| Linux (CI) | Verified | Verified 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 |
| iOS | Core verified | vmux_page Wry support | Verified (vmux_mobile) |
| Android / Web | Unverified | Planned | Unverified |
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 undercrates/sdk/*(vmux_macrothroughvmux_sdk, plusvmux_nav,vmux_qr,vmux_update,vmux_capture,vmux_tray,vmux_feature,vmux_project,vmux_tui_dom,vmux_git) plusvmux_cef_coreandvmux_cef. External consumers targeting crates.io should depend onvmux_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/*(includingvmux_remotehost & client,vmux_terminal,vmux_editor,vmux_layout,vmux_shortcut), andcrates/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):
- Layer 0:
vmux_macro,vmux_time,vmux_task,vmux_flex,vmux_clipboard,vmux_path,vmux_markdown,vmux_syntax,vmux_spawn,vmux_qr - Layer 1:
vmux_api,vmux_channel,vmux_menu,vmux_store,vmux_watch,vmux_profile - Layer 2:
vmux_transport,vmux_tray - Layer 3:
vmux_ecs - Layer 4:
vmux_nav,vmux_job,vmux_runner,vmux_http,vmux_quic,vmux_lsp,vmux_test,vmux_ui,vmux_update,vmux_capture - Layer 5:
vmux_page - Layer 6:
vmux_window - Layer 7:
vmux_sdk,vmux_feature,vmux_project,vmux_tui_dom - 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.