toolchain-rust

Rust project toolchain -- cargo build, test, clippy, formatting, and cross-compilation.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "toolchain-rust" with this command: npx skills add thinkfleetai/thinkfleet-engine/thinkfleetai-thinkfleet-engine-toolchain-rust

Rust Toolchain

Common commands for Rust projects.

Build & run

cargo build
cargo build --release
cargo run
cargo run --release
cargo run -- --arg1 value1

Testing

cargo test
cargo test -- --nocapture         # Show stdout
cargo test test_name              # Run specific test
cargo test --lib                  # Lib tests only
cargo test --doc                  # Doc tests only

Linting

cargo clippy -- -W clippy::all
cargo clippy --fix                # Auto-fix suggestions

Formatting

cargo fmt
cargo fmt -- --check              # Check only (CI)

Dependencies

cargo add serde --features derive
cargo add tokio --features full
cargo remove unused-crate
cargo update                      # Update Cargo.lock
cargo tree                        # Dependency tree
cargo audit                       # Security audit

Documentation

cargo doc --open
cargo doc --no-deps

Benchmarks

cargo bench

Check (fast compile check)

cargo check
cargo check --all-targets

Cross-compilation

rustup target add x86_64-unknown-linux-musl
cargo build --release --target x86_64-unknown-linux-musl

Workspace

cargo build --workspace
cargo test --workspace
cargo build -p my-crate           # Specific crate

Notes

  • Cargo.toml defines the project manifest and dependencies.
  • cargo check is faster than cargo build for catching errors.
  • Use clippy as the primary linter; it catches common Rust anti-patterns.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

toolchain-node

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

toolchain-go

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

toolchain-python

No summary provided by upstream source.

Repository SourceNeeds Review