[dependencies]
fission = { version = "0.16.0", features = ["desktop"] }
cargo install cargo-fission
fission init my-app
cd my-app
fission run
Area | What is exposed |
|---|---|
Application model | GlobalState, Widget, BuildCtxHandle, ViewHandle, typed actions, reducers, selectors, effects, jobs, services, and capabilities. |
UI authoring | Core widgets, high-level widgets, icons, layout, portals, overlays, media/embed widgets, charts, 3D scenes, and design-system support. |
Targets | macOS, Windows, Linux, Web, Android, iOS, Terminal, Static site, and SSR shells behind feature flags. |
Platform integration | Notifications, deep links, NFC, biometrics, passkeys, barcode scanning, camera, clipboard, geolocation, haptics, microphone, Bluetooth, Wi-Fi, and volume control where the host supports them. |
Tooling | The companion fission command handles setup, devices, run, test, package, static-site generation, release content, and distribution workflows. |
Feature | Purpose |
|---|---|
desktop | Desktop shell for macOS, Windows, and Linux. |
web | Browser/WASM shell. |
android / ios / mobile | Mobile shell exports for Android and iOS targets. |
site | Static site shell. |
server | SSR shell. |
terminal-shell | Terminal shell. |
charts | Fission Charts widgets and data-visualization primitives. |
three-d | 3D scene and embed primitives. |
test-driver | Live app testing client support. |
use fission::prelude::*;
fission_component! {
pub CounterApp<()> {
state {
count: i32 = 0,
}
}
view(counter, _state, cx) {
let tokens = &cx.view.env().theme.tokens;
} =>
Container(
Column(
gap: tokens.spacing.l,
children: [
Text("Counter").size(tokens.typography.heading1_size),
Text(counter.count.to_string())
.size(tokens.typography.display_md_size),
Button(
child: Text("Increment"),
key: "increment",
on_press: reduce { counter.count += 1; },
),
],
),
)
.padding_all(tokens.spacing.xl)
}
fn main() -> anyhow::Result<()> {
DesktopApp::<(), _>::new(CounterApp).run()
}
fission init my-app
fission add-target web android ios
fission devices
fission run --target web
fission test --target web
fission site build --project-dir documentation --release
fission package --project-dir . --target windows --format msix --release
fission distribute --project-dir . --provider github-releases --artifact target/fission/release/windows/msix/artifact-manifest.json