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.

Suporta: Claude Codex Code(CC)
🥉 74 Bronze
1

Baixar o ZIP da skill

2

Upload no Claude

Vá em Configurações → Capacidades → Skills → Upload skill

3

Ative e comece a usar

Testar

A utilizar "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.

A utilizar "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.

Auditoria de Segurança

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
Arquivos analisados
443
Linhas analisadas
0
achados
1
Total de auditorias
Nenhum problema de segurança encontrado
Auditado por: claude

Pontuação de qualidade

38
Arquitetura
100
Manutenibilidade
87
Conteúdo
50
Comunidade
100
Segurança
91
Conformidade com especificações

O Que Você Pode Construir

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.

Tente Estes 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.

Melhores Práticas

  • 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

Perguntas Frequentes

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.

Detalhes do Desenvolvedor

Estrutura de arquivos

📄 SKILL.md