cargo-leptos-config

Validate and synchronize cargo-leptos metadata blocks in Cargo.toml files.

Updated May 26, 2026
One-click install
npx skills add https://github.com/adelabdelgawad/rust-fullstack-agents --skill cargo-leptos-config
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cargo-leptos-config
Source: https://github.com/adelabdelgawad/rust-fullstack-agents/tree/main/plugins/rusty/skills/cargo-leptos-config
Command: npx skills add https://github.com/adelabdelgawad/rust-fullstack-agents --skill cargo-leptos-config

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configuring cargo-leptos metadata blocks for Leptos Rust projects to ensure SSR/CSR settings are correct and consistent.

Core Features & Use Cases

  • Automatically detects and validates metadata blocks in Cargo.toml ([package.metadata.leptos] or [[workspace.metadata.leptos]]).
  • Synchronizes site-addr, assets-dir, style-file, and workspace-wide leptos settings across single crates and workspaces.
  • Assists debugging cargo leptos build failures by verifying config viability and suggesting fixes.

Quick Start

Run the cargo-leptos-config skill to verify and update your Cargo.toml leptos metadata in a Leptos project.

Frequently Asked Questions about cargo-leptos-config

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure cargo-leptos metadata in Cargo.toml for a Leptos project?▼

Configuring cargo-leptos metadata involves setting up the [[package.metadata.leptos]] block in your Cargo.toml to manage SSR/CSR settings, site-addr, and style-file paths. The skill automates this validation and synchronization across single-package crates.

Why does my cargo leptos build fail with a metadata misconfiguration?▼

Your cargo leptos build fails when metadata keys in Cargo.toml are invalid or missing. You resolve this by verifying config viability, flagging misconfigurations, and applying suggested fixes to your [[package.metadata.leptos]] blocks.

Can I use cargo-leptos settings across a Rust workspace with multiple crates?▼

Yes, you can synchronize cargo-leptos settings across a Rust workspace. The skill detects [[workspace.metadata.leptos]] blocks, handling workspace-wide settings and individual crate configurations to keep builds consistent.

What is the correct way to set up SSR and CSR paths in Leptos Cargo.toml?▼

Setting up SSR and CSR paths requires configuring assets-dir and style-file in your [[package.metadata.leptos]] block. The skill validates these metadata keys to ensure your cargo-leptos configuration remains correct and consistent.

Does cargo-leptos support workspace-wide site-addr and assets synchronization?▼

Cargo-leptos supports workspace-wide site-addr and assets synchronization by managing [[workspace.metadata.leptos]] metadata. The skill ensures these settings are correctly applied and consistent across all crates within the workspace.