cybercore / framestack · v0.1.0 · rust
Compose the stack. See the plan.
One manifest describes every part of your system: what each component provides, what it needs and how the parts connect. FrameStack checks it, draws the graph, prints every command a build would run, and runs nothing until you say --yes.
- commands
- 7
- checks
- 24
- adapters in CI
- 1
- runs w/o --yes
- 0
❯ framestack check --manifest examples/rust-leptos-axum✓ valid 1 component, 0 relationships❯ framestack plan build --manifest examples/rust-leptos-axum→ app.build $ cargo leptos build --release✓ probe cargo leptos --version -> cargo-leptos 0.3.12❯ framestack build --manifest examples/rust-leptos-axum! nothing ran plan shown, exit 2: add --yes❯ framestack build --yes --manifest examples/rust-leptos-axum❯
// 01 · what works today
Shipped, tested, in CI.
Core library, CLI and the first adapter are merged. Open any card for the detail behind it.
// 02 · manifest → graph → plan
Read the manifest. Watch the plan.
Three real manifests from the repository: one that builds and runs, one that is valid but waits on adapters, and one that check rejects.
The reference app. FrameStack plans, builds and serves it through the Leptos + Axum adapter; CI checks that it hydrates in Chrome.
# FrameStack manifest for the Leptos + Axum reference application.manifest_version = 1 [project]name = "rust-leptos-axum"description = "Leptos server-side rendering with hydration, served by Axum" [[components]]id = "app"kind = "application"path = "."language = "rust"integrations = ["leptos", "axum"]provides = ["frontend.ssr", "frontend.hydration", "http.server"]env = ["LEPTOS_SITE_ADDR"]
❯ framestack check --manifest examples/rust-leptos-axum examples/rust-leptos-axum/framestack.toml: valid: 1 component, 0 relationships exit 0
// output captured from framestack 0.1.0 on these exact manifests; nothing here is mocked up
// 03 · adapters
The core plans. Adapters know how.
A component goes to the adapter whose integrations match exactly. One adapter ships today; the reference stacks from ADR-0007 come next.
EXPLORER · integrations/
▾ rust/
▾ typescript/
// shipped · in CI on every change
leptos-axum
SSR + hydration · build, dev.start · cargo-leptos 0.3.12
[[components]] id = "app" integrations = ["leptos", "axum"] provides = ["frontend.ssr", "frontend.hydration", "http.server"]
// 04 · diagnostics
24 ways to fail early.
Every problem gets a stable code, a location and plain words, whether check finds it, plan finds it, or a step fails at run time.
error[FS007] manifest Build dependencies form a cycle, such as a -> b -> a.
// 05 · quickstart
From clone to a hydrated app.
- # install the CLI (Rust 1.85+)
$ cargo install --path crates/framestack-cli - # check the reference app
$ framestack check --manifest examples/rust-leptos-axum - # see exactly what a build would run
$ framestack plan build --manifest examples/rust-leptos-axum - # build it (needs cargo-leptos 0.3.12)
$ framestack build --yes --manifest examples/rust-leptos-axum - # serve on 127.0.0.1:3000, rebuild on change
$ framestack dev --yes --manifest examples/rust-leptos-axum
// note FrameStack is early: one adapter (Leptos + Axum), no published releases yet, tested on Linux. Install from a clone of cybercoretech/framestack (opens in a new tab).