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
TypeScript Windsurf Rules
WindsurfTypeScript
Windsurf rules for TypeScript: strict type safety, functional patterns, and modern TypeScript conventions.
Code Style
typescript · windsurfCopy Ready
React Windsurf Rules
WindsurfReact
Windsurf rules for React: modern patterns, performance, and scalable React architecture.
Architecture
react · windsurfCopy Ready
Go Windsurf Rules
WindsurfGo
Windsurf rules for Go: hexagonal architecture, clean code, observability, and production Go patterns.
Architecture
go · windsurfCopy Ready
Docker Windsurf Rules
WindsurfDocker
Windsurf rules for Docker and container architecture: compose patterns, registries, and microservice conventions.
Architecture
docker · windsurfCopy Ready