rust-review
Installation
SKILL.md
Rust review guidelines
This project uses Rust for Coglet (crates/), the prediction server that runs
inside Cog containers. It handles HTTP requests, worker process management, and
prediction execution.
What linters already catch (skip these)
clippy runs in CI. cargo-deny audits dependencies for license/advisory issues. Don't flag issues these would catch.
What to look for
Error handling
- Use
thiserrorfor typed errors in library code,anyhowfor application errors - Don't use
.unwrap()or.expect()in non-test code unless the invariant is documented - Error context: use
.context()or.with_context()from anyhow, not bare?