agentsclimarketplace

Rust

Skill G1Joshi/Agent-Skills/skills/languages/rust

Rust programming with ownership, borrowing, lifetimes, and zero-cost abstractions. Use for .rs files.From its SKILL.md

Install
npx -y skills add G1Joshi/Agent-Skills --skill rust

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.4 KB, 301 tokens by cl100k_base, as published. Nobody here has run it

Rust

A language empowering everyone to build reliable and efficient software.

When to Use

  • Systems programming (drivers, OS)
  • WebAssembly
  • Performance-critical applications
  • Command-line tools (great developer experience)

Quick Start

fn main() {
    println!("Hello, World!");

    let mut x = 5; // mutable
    x = 6;

    let y = 10; // immutable by default
}

Core Concepts

Ownership & Borrowing

The borrow checker ensures rules are followed at compile time.

  • Each value has a single owner.
  • You can have multiple immutable borrows OR one mutable borrow, but not both simultaneously.

Lifetimes

Ensuring references remain valid for as long as they are used.

Traits

Similar to interfaces, defining shared behavior.

Best Practices

Do:

  • Embrace the borrow checker (it's your friend)
  • Use Result<T, E> and Option<T> for error handling
  • Use cargo clippy for linting
  • Use match for exhaustive pattern matching

Don't:

  • Use unsafe unless absolutely necessary
  • unwrap() in production code (use proper error handling)

References

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.