systems-programming-rust-project
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.
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez Ă utiliser
Tester
Utilisation de "systems-programming-rust-project". Create a binary project with CLI arguments
Résultat attendu:
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.
Utilisation de "systems-programming-rust-project". Set up a workspace for a web application
Résultat attendu:
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.
Audit de sécurité
SûrThis 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.
Score de qualité
Ce que vous pouvez construire
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.
Essayez ces prompts
Create a new Rust binary project called 'my-cli-tool' with clap for CLI parsing and tokio for async runtime.
Generate a Rust library project with unit tests, integration tests, and documentation examples. Include proper error types.
Set up a Rust workspace with three crates: core (library), api (web service), and cli (command-line interface). Share dependencies at workspace level.
Scaffold a production-ready web API using Axum with SQLx for PostgreSQL, including user routes, authentication middleware, and health check endpoints.
Bonnes pratiques
- 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
Éviter
- 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