rust-development

Set up Rust projects with cargo, linting, and async templates.

1|1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/navikt/watson-sak-frontend --skill rust-development-navikt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-development
Source: https://github.com/navikt/watson-sak-frontend/tree/main/.opencode/skills/rust-development
Command: npx skills add https://github.com/navikt/watson-sak-frontend --skill rust-development-navikt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides patterns, templates, and procedures for idiomatic Rust development, enabling teams to set up reliable Rust projects with standard cargo configurations, lint rules, error handling strategies, async patterns with tokio, and testing guidelines.

Core Features & Use Cases

  • Project setup and cargo configuration with recommended lint rules and CI-ready testing templates.
  • Error handling guidance using libraries like thiserror and anyhow for library and application code.
  • Async programming patterns with tokio, including graceful shutdown and shared state examples.
  • Unsafe code review practices, with justifications, documentation, and safety checks.
  • Testing patterns including unit tests, table-driven tests, async tests with tokio, and property-based testing ideas.

Quick Start

Initialize a new Rust project with cargo, configure lint rules, and set up a basic async pattern scaffold.

Frequently Asked Questions about rust-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a new Rust project with cargo and linting?

To set up a Rust project with cargo, initialize the workspace and apply recommended lint rules using clippy. This provides a standardized project configuration that is CI-ready with proper formatting and testing templates included.

What's the best way to handle errors in Rust async applications?

The best way to handle errors in Rust async applications is using thiserror for library code and anyhow for application code. This approach provides idiomatic error handling strategies specifically designed for tokio async programming patterns.

How do I write async tests with tokio in Rust?

To write async tests with tokio in Rust, use the provided testing patterns that include unit tests, table-driven tests, and property-based testing ideas. These templates offer a standardized approach to validating async Rust code.

When do I need to review unsafe Rust code and what checks are required?

Reviewing unsafe Rust code is required when using unsafe blocks, demanding rigorous justifications, documentation, and safety checks. This ensures that unsafe usage follows standard review practices and maintains memory safety guarantees.

Does this Rust workflow support graceful shutdown and shared state in tokio?

Yes, this Rust workflow supports tokio async programming patterns including graceful shutdown and shared state examples. These templates provide standardized scaffolding for managing concurrent state and application lifecycle.