Install any skill in seconds. Free to start, no credit card required.
Get Started Free →dokhacgiakhoa/rust-pro
Master Rust 1.75+ development with async runtime (Tokio/smol).
Passed 21 of 23 test cases with the skill, and 20 of 23 without it.
2 fixed19 passed either way1 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
I'm building a backend service in Rust that needs to share state across HTTP handlers and dispatch jobs to background routines. Please provide a clean module structure and implementation showing idiomatic shared state management, background execution, and robust error handling.
| Checked | Without skill | With skill |
|---|---|---|
| Does not call unwrap() anywhere in the implementation. | Missed | Passed |
| Uses mpsc channels for background job dispatching. | Passed | Passed |
The instructions your model reads when the skill loads.
Goal: Write idiomatic, high-performance, and memory-safe Rust code following standard community practices (The Rust Way).
.clone() unless necessary. Use Arc<Mutex<T>> or RwLock<T> for shared state only when message passing (mpsc) is not viable.Result<T, E> with thiserror for libraries and anyhow for applications. Never use .unwrap() in production code; use .expect() with a context message or ? operator.tokio for general purpose apps. Use join_all for parallel execution of futures.New Type pattern to enforce validation at compile time.cargoclippy (Treat warnings as errors in CI)rustfmt#[test] and cargo test. Use mockall for mocking traits.my_crate/
├── Cargo.toml
├── src/
│ ├── main.rs # Binary entry point
│ ├── lib.rs # Library entry point
│ ├── bin/ # Additional binaries
│ ├── models/ # Data structures
│ ├── error.rs # Central error definition
│ └── utils.rs # Helper functions
└── tests/ # Integration tests
└── integration_test.rs
tokio, futuresaxum or actix-webserde, serde_jsonanyhow, thiserrortest cases passed, vs 20 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.