← ClaudeAtlas

elite-rustlisted

Rust Elite Standards (Edition 2024, Safe & Robust)
so-sai/TachFile_To · ★ 0 · Data & Documents · score 36
Install: claude install-skill so-sai/TachFile_To
# Rust Elite Standards (Edition 2024) ## Architecture - **Edition**: Must use Rust Edition 2024. - **Dependencies**: Use Standard Polars `0.52.x` (ensure patch version compatibility). ## Safety & Error Handling - **No Panic Policy**: Strictly forbid `unwrap()` and `expect()` in business logic. - **Typed Errors**: Use `thiserror` for library errors and `anyhow` for application-level errors. - **Async**: Use `tokio` for async runtime unless specified otherwise. ## Testing & Quality (Atomic Simulator VAS) - **TDD Requirement**: "No Test, No Commit". Every feature must have a "Red Phase" failing test before logic implementation. - **Performance Benchmarks**: Core operations (e.g., Ledger queries) must meet sub-100ms targets for 1000 rows. - **Verification**: Every Mission must conclude with a `walkthrough.md` documenting test results. ## Interoperability (Tauri/TS) - **Data Contract**: All event payloads between Rust and TypeScript MUST use `camelCase`. Use `#[serde(rename_all = "camelCase")]` on structs. - **Glass Panel Philosophy**: UI is strictly a "Glass Panel". Zero business logic, zero state inferencing, and zero data modification allowed in the Frontend. UI ONLY renders what the Core (Rust) dictates. - **IPC Safety**: Use `#[tauri::arg(rename = "camelCase")]` or `#[allow(non_snake_case)]` to reconcile Rust's `snake_case` with Frontend's `camelCase` without breaking convention. ## Observability - **Traceability**: Every result-bearing function must be traced or logged