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.tomldefines the project manifest and dependencies.cargo checkis faster thancargo buildfor catching errors.- Use
clippyas the primary linter; it catches common Rust anti-patterns.
More from thinkfleetai/thinkfleet-engine
local-whisper
Local speech-to-text using OpenAI Whisper. Runs fully offline after model download. High quality transcription with multiple model sizes.
149flyio-cli-public
Use the Fly.io flyctl CLI for deploying and operating apps on Fly.io: deploys (local or remote builder), viewing status/logs, SSH/console, secrets/config, scaling, machines, volumes, and Fly Postgres (create/attach/manage databases). Use when asked to deploy to Fly.io, debug fly deploy/build/runtime failures, set up GitHub Actions deploys/previews, or safely manage Fly apps and Postgres.
24kagi-search
Web search using Kagi Search API. Use when you need to search the web for current information, facts, or references. Requires KAGI_API_KEY in the environment.
22feishu-bridge
Connect a Feishu (Lark) bot to ThinkFleet via WebSocket long-connection. No public server, domain, or ngrok required. Use when setting up Feishu/Lark as a messaging channel, troubleshooting the Feishu bridge, or managing the bridge service (start/stop/logs). Covers bot creation on Feishu Open Platform, credential setup, bridge startup, macOS launchd auto-restart, and group chat behavior tuning.
13bambu-local
Control Bambu Lab 3D printers locally via MQTT (no cloud). Supports A1, A1 Mini, P1P, P1S, X1C.
10voice-transcribe
Transcribe audio files using OpenAI's gpt-4o-mini-transcribe model with vocabulary hints and text replacements. Requires uv (https://docs.astral.sh/uv/).
10