| Crates.io | cargo-rustkit-web |
| lib.rs | cargo-rustkit-web |
| version | 0.1.11 |
| created_at | 2025-05-06 10:05:46.396675+00 |
| updated_at | 2025-05-08 09:57:09.207164+00 |
| description | RustKit-Web is a CLI to scaffold fullstack Rust web apps with Tailwindcss , Axum , Askama and file-based routing similar to Sveltekit or Next js |
| homepage | https://github.com/mukul2/rustkit |
| repository | https://github.com/mukul2/rustkit |
| max_upload_size | |
| id | 1662102 |
| size | 70,052 |
๐ RustKit Web is a modern Rust-based fullstack web framework inspired by SvelteKit and Next.js, with built-in support for:
cargo rustkit-web)In a web world dominated by JavaScript and its ever-evolving toolchains, RustKit Web brings clarity, performance, and safety to fullstack development. Whether you're building a personal site or a high-performance app, RustKit provides:
No more juggling 10 config files. No more complex bundlers. Just plain Rust, clean HTML templates, and a CLI that just works.
cargo rustkit-web)build and start commandscargo install cargo-rustkit-web
cargo rustkit-web new myapp
cd myapp
cargo rustkit-web dev
Create files like this:
src/routes/about/page.rs โ GET /about
src/routes/blog/post/page.rs โ GET /blog/post
page.rs (Raw HTML)use axum::response::Html;
pub async fn handler() -> Html<&'static str> {
Html("<h1>Hello from this route!</h1>")
}
page.rs (Askama Template)use askama::Template;
use axum::response::Html;
#[derive(Template)]
#[template(path = "about/page.html")]
struct AboutPage;
pub async fn handler() -> Html<String> {
Html(AboutPage.render().unwrap())
}
cargo rustkit-web build
This creates:
/build
โโโ app # compiled binary
โโโ public # static files
cargo rustkit-web start
This serves the production binary from /build.
myapp/
โโโ src/
โ โโโ routes/
โ โ โโโ index/page.rs
โ โ โโโ hello/page.rs
โ โโโ main.rs
โโโ templates/
โ โโโ index/page.html
โ โโโ hello/page.html
โโโ public/
โ โโโ styles.css
โโโ input.css
โโโ tailwind.config.js
โโโ Cargo.toml
cargo rustkit-web new <name>
cargo rustkit-web dev
cargo rustkit-web build
cargo rustkit-web start
MIT ยฉ Mukul