Habilidades systems-programming-rust-project
📦

systems-programming-rust-project

Seguro

Scaffold production Rust projects with cargo

Building Rust applications requires proper project structure and configuration. This skill generates complete, idiomatic Rust project scaffolding with cargo tooling, module organization, testing setup, and best practices.

Soporta: Claude Codex Code(CC)
🥉 74 Bronce
1

Descargar el ZIP de la skill

2

Subir en Claude

Ve a Configuración → Capacidades → Skills → Subir skill

3

Activa y empieza a usar

Pruébalo

Usando "systems-programming-rust-project". Create a binary project with CLI arguments

Resultado esperado:

Generated project structure with Cargo.toml, src/main.rs with clap Parser, src/cli.rs with command definitions, src/commands/ module, error handling with anyhow, and integration test setup.

Usando "systems-programming-rust-project". Set up a workspace for a web application

Resultado esperado:

Created workspace with crates/api (Axum web service), crates/core (shared types and logic), crates/cli (admin tool), shared dependencies in workspace Cargo.toml, and integration tests.

Auditoría de seguridad

Seguro
v1 • 2/25/2026

This skill is documentation-only instructional content for Rust project scaffolding. Static analyzer flagged 41 patterns (35 external_commands, 1 network, 5 blocker) but all are false positives from markdown code blocks and template examples. No executable code or actual security risks present.

1
Archivos escaneados
443
Líneas analizadas
0
hallazgos
1
Auditorías totales
No se encontraron problemas de seguridad
Auditado por: claude

Puntuación de calidad

38
Arquitectura
100
Mantenibilidad
87
Contenido
50
Comunidad
100
Seguridad
91
Cumplimiento de la especificación

Lo que puedes crear

CLI Tool Development

Quickly scaffold a new command-line tool with argument parsing, error handling, and proper module structure using clap and anyhow.

Rust Library Creation

Generate a reusable crate with documentation examples, integration tests, and minimal dependencies for publishing to crates.io.

Web Service Setup

Create a web API project with Axum routing, middleware, database integration with SQLx, and comprehensive error handling.

Prueba estos prompts

Basic Binary Project
Create a new Rust binary project called 'my-cli-tool' with clap for CLI parsing and tokio for async runtime.
Library with Tests
Generate a Rust library project with unit tests, integration tests, and documentation examples. Include proper error types.
Multi-crate Workspace
Set up a Rust workspace with three crates: core (library), api (web service), and cli (command-line interface). Share dependencies at workspace level.
Full Web API with Database
Scaffold a production-ready web API using Axum with SQLx for PostgreSQL, including user routes, authentication middleware, and health check endpoints.

Mejores prácticas

  • Use edition 2021 and set rust-version for compatibility guarantees
  • Organize code into modules by feature with clear separation of concerns
  • Include both unit tests in source files and integration tests in separate directory

Evitar

  • Avoid adding unnecessary dependencies - keep libraries minimal
  • Do not use unwrap() in production code - use proper error handling with Result
  • Avoid monolithic main.rs - split into logical modules early

Preguntas frecuentes

What Rust edition should I use?
Use Rust 2021 edition (current stable) with rust-version set to 1.75 or higher for modern features and long-term support.
Should I commit Cargo.lock for libraries?
No, libraries should not commit Cargo.lock. Applications and binaries should commit it for reproducible builds.
How do I add benchmarks to my project?
Add criterion as a dev-dependency, create a benches/ directory, and configure [[bench]] in Cargo.toml with harness = false.
What is a Rust workspace?
A workspace allows multiple crates to share a single Cargo.lock and build output. Use it for multi-crate projects that depend on each other.
How do I configure clippy for strict linting?
Run 'cargo clippy -- -D warnings' to deny all warnings. Create clippy.toml to customize thresholds like cognitive-complexity-threshold.
What framework should I use for web APIs in Rust?
Axum is recommended for new projects - it is ergonomic, well-maintained, and built on tokio and tower. Actix-web is also popular for performance-critical applications.

Detalles del desarrollador

Estructura de archivos

📄 SKILL.md