style: format all files with prettier

This commit is contained in:
Seth Hobson
2026-01-19 17:07:03 -05:00
parent 8d37048deb
commit 56848874a2
355 changed files with 15215 additions and 10241 deletions

View File

@@ -15,6 +15,7 @@ $ARGUMENTS
### 1. Analyze Project Type
Determine the project type from user requirements:
- **Binary**: CLI tools, applications, services
- **Library**: Reusable crates, shared utilities
- **Workspace**: Multi-crate projects, monorepos
@@ -64,6 +65,7 @@ binary-project/
```
**Cargo.toml**:
```toml
[package]
name = "project-name"
@@ -96,6 +98,7 @@ codegen-units = 1
```
**src/main.rs**:
```rust
use anyhow::Result;
use clap::Parser;
@@ -121,6 +124,7 @@ async fn main() -> Result<()> {
```
**src/cli.rs**:
```rust
use clap::{Parser, Subcommand};
@@ -156,6 +160,7 @@ pub struct RunArgs {
```
**src/error.rs**:
```rust
use std::fmt;
@@ -199,6 +204,7 @@ library-name/
```
**Cargo.toml for Library**:
```toml
[package]
name = "library-name"
@@ -218,7 +224,8 @@ path = "src/lib.rs"
```
**src/lib.rs**:
```rust
````rust
//! Library documentation
//!
//! # Examples
@@ -245,7 +252,7 @@ mod tests {
assert_eq!(2 + 2, 4);
}
}
```
````
### 5. Generate Workspace Structure
@@ -271,6 +278,7 @@ workspace/
```
**Cargo.toml (workspace root)**:
```toml
[workspace]
members = [
@@ -325,6 +333,7 @@ web-api/
```
**Cargo.toml for Web API**:
```toml
[package]
name = "web-api"
@@ -344,6 +353,7 @@ tracing-subscriber = "0.3"
```
**src/main.rs (Axum)**:
```rust
use axum::{Router, routing::get};
use tower_http::cors::CorsLayer;
@@ -375,6 +385,7 @@ async fn main() {
### 7. Configure Development Tools
**Makefile**:
```makefile
.PHONY: build test lint fmt run clean bench
@@ -401,6 +412,7 @@ bench:
```
**rustfmt.toml**:
```toml
edition = "2021"
max_width = 100
@@ -409,6 +421,7 @@ use_small_heuristics = "Max"
```
**clippy.toml**:
```toml
cognitive-complexity-threshold = 30
```