crates.io Discord

cargo-leptos

Build tool for Leptos:

Leptos Logo


Features

Getting started

Install:

cargo install --locked cargo-leptos

Help:

cargo leptos --help

For setting up your project, base yourself on the example


Folder structure

├── src/ │ ├── app/ (the app logic) │ ├── client/ (client packaging) │ ├── server/ (the http server) │ │ └── generated.rs (generated by build) │ ├── lib.rs │ ├── app.scss (root css/sass/scss file) │ └── main.rs │ ├── static/ │ └── favicon.png │ ├── index.html (template for generating the root page) ├── Cargo.toml (needs the [package.metadata.leptos] config) │ ├── end2end/ (end-to-end test using Playwright) │ ├── tests/ │ ├── playwright.config.ts │ └── package.json │ └── target/ └── site/ ├── index.html (generated by build) ├── favicon.png └── pkg/ ├── app.wasm ├── app.js └── app.css