Generate Cargo Project
Scaffold a Rust Cargo project with idiomatic structure and Cargo best practices.
What To Do
- Cargo.toml with edition = "2021", pinned dependency versions, and [profile.release] optimizations
- src/lib.rs or src/main.rs with module declaration skeleton and top-level lint attributes
- src/error.rs with a thiserror-derived error type
- tests/ directory with a basic integration test stub
- benches/ directory with a criterion benchmark stub
- .cargo/config.toml with rustflags = ["-D", "warnings"]
Project Types
lib (default)
- src/lib.rs re-exports the public API
- Include #![deny(missing_docs)] and #![deny(clippy::unwrap_used)]
bin