adelabdelgawad/rust-fullstack-agents/cargo-leptos-config
Claude Code and agent skill by adelabdelgawad/rust-fullstack-agents
- community
Checking that the SKILL.md file is still in the repository.
Configure cargo-leptos via [package.metadata.leptos] or [[workspace.metadata.leptos]]. Auto-triggers when adding/modifying Cargo.toml metadata for a Leptos project, changing site-addr/style/assets, or debugging cargo leptos build failures.
Install
npx vskill@latest install adelabdelgawad/rust-fullstack-agents/cargo-leptos-configSKILL.md
The same SKILL.md was published earlier as adelabdelgawad/rust-fullstack-agents/cargo-leptos-config.
Cargo-Leptos Config
When to Use
Invoke before:
- Adding
[package.metadata.leptos]to a new project. - Adding
[[workspace.metadata.leptos]]to a workspace with multiple Leptos apps. - Changing
site-addr,style-file,tailwind-input-file,assets-dir, or feature sets. - Debugging
cargo leptos build/cargo leptos watchfailures related to config. - Switching from Trunk (CSR-only) to cargo-leptos (SSR+hydrate).
Note: CSR-only apps are NOT supported under cargo-leptos. Use Trunk for CSR.
Core Patterns
Pattern 1 — Single-Package Metadata Block
For single-crate Leptos projects (no workspace). Placed in the root Cargo.toml.
Anti-pattern — omitting bin/lib-default-features:
Pattern 2 — Workspace Array-of-Tables
For workspaces with multiple Leptos apps. Uses [[workspace.metadata.leptos]] (array of tables). Each entry requires name, bin-package, lib-package.
Anti-pattern — using [workspace.metadata.leptos] (single table) in a workspace:
Pattern 3 — Tailwind Integration
When using Tailwind CSS, provide both tailwind-input-file and tailwind-config-file. cargo-leptos runs the Tailwind CLI automatically on cargo leptos watch.
Anti-pattern — setting both style-file and tailwind-input-file:
Pattern 4 — Custom Server-Fn Prefix
The server-fn-prefix key controls the HTTP path prefix used for all #[server] fn routes. Default is /api. Must match the Axum mount point.
Anti-pattern — mismatch between config prefix and axum mount:
Anti-Patterns to Block
- Using
cargo leptosfor a CSR-only app → switch to Trunk; cargo-leptos does not support CSR. - Missing
name/bin-package/lib-packagein workspace array entry → all three are required. bin-default-featuresorlib-default-featuresnot set tofalse→ always set explicitly to avoid leaking features across targets.[[workspace.metadata.leptos]]entries with identicalsite-addr→ each app must bind a distinct port.style-fileandtailwind-input-fileboth set → pick exactly one CSS pipeline.server-fn-prefixin config not matching the Axum router mount → mismatched prefix causes silent 404s on all server fns.js-dirchanged without moving actual JS files → cargo-leptos will silently fail to bundle JS.
Verification Hooks
References
- https://github.com/leptos-rs/cargo-leptos (README — full key reference)
- https://book.leptos.dev/deployment/cargo_leptos.html
- https://docs.rs/cargo-leptos
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/rusty/skills/cargo-leptos-config/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/adelabdelgawad/rust-fullstack-agents/cargo-leptos-config)