# Rust Testing

> Guide for Rust testing and Cargo usage. Use when writing unit or integration tests, configuring Cargo.toml, or running cargo commands. Use when this capability is needed.

- Skill: `tomevault-io/rust-testing-8` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/rust-testing-8`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/rust-testing-8/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/rust-testing-8

---


# Rust Testing and Cargo

Unit tests, integration tests, Cargo.toml configuration, and common commands.

## When to Use This Skill

Activate when:
- Writing unit tests with #[test] and #[cfg(test)]
- Setting up integration tests in tests/ directory
- Configuring Cargo.toml dependencies and profiles
- Running cargo test, build, clippy, or fmt
- Using #[should_panic] or Result-returning tests

For test patterns, Cargo.toml configuration, and command reference, see `references/testing.md`.

---
> Source: [vinnie357/claude-skills](https://github.com/vinnie357/claude-skills) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-16 -->

