WindsurfRustArchitecture

Rust Windsurf Rules

Windsurf rules for Rust: async Rust, WASM, systems programming, and production Rust patterns.

.windsurfrules
- Use axum for web services; it's the most ergonomic Tokio-native framework
- Use sqlx for async database access with compile-time query checking
- Target WASM with wasm-pack for browser-compatible Rust
- Use tracing and tracing-subscriber for structured async-aware logging
- Apply tower middleware for cross-cutting concerns (auth, rate limiting)
- Use cargo workspaces to organize related crates in a monorepo
- Enable cargo-deny to audit licenses and vulnerabilities in dependencies
- Write documentation with doc-tests; they're tested automatically

How to use with Windsurf

Create a `.windsurfrules` file in your project root. Windsurf's Cascade AI applies these rules automatically.

#rust#windsurf#axum#wasm#coding-rules

Related Rules