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 thiserror for typed errors in library code, anyhow for 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 ?
Related skills
Installs
5
Repository
replicate/cog
GitHub Stars
9.4K
First Seen
Apr 27, 2026