Skip to main content

Lang Rust

Navigate, test, and clippy Rust via cargo.

Skill metadata​

SourceBundled (installed by default)
Pathskills/software-development/lang-rust
Version1.1.0
AuthorVibeOS
LicenseMIT
Platformslinux, macos, windows

Reference: full SKILL.md​

info

The following is the complete skill definition that VibeOS loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.

Rust Language Pack Skill

Drive Rust work with the project index and standard CLI recipes. LSP hint: rust-analyzer (editor-side when applicable). Zero new core tools.

What this language is (beginner)​

Системный язык с жёсткой безопасностью памяти. Выбирают, когда важны скорость и надёжность.

Лучше всего для:

  • производительные сервисы и CLI
  • WASM, системные утилиты, драйверы-уровень
  • код, где нельзя «уронить» процесс ошибкой памяти
  • критичные по latency бэкенды (Axum и др.)

When to Use​

Выбирай этот pack, если:

  • нужна максимальная надёжность + скорость
  • пользователь явно просит Rust / safety
  • переписываете горячий путь из Python/JS

Manifests (автодетект репозитория): Cargo.toml

Обычно рядом: TypeScript/WASM на фронте; часто рядом с C/C++ FFI.

См. также skill choose-language-pack, если цель ещё не ясна.

When NOT to use​

  • быстрый прототип / обучение → Python / TypeScript
  • простой микросервис без жёстких SLO → Go
  • мобильный UI → Kotlin / Swift / Flutter

Prerequisites​

vibeos pack apply lang-rust --apply
vibeos pack apply project-intelligence --apply

How to Run​

vibeos project index build
cargo test
cargo clippy
cargo build

Quick Reference​

GoalCommand
Apply packvibeos pack apply lang-rust --apply
Doctorvibeos language doctor rust
Primary testcargo test
Choose guideskill choose-language-pack

Procedure​

  1. Если язык ещё не выбран для нового проекта — сначала choose-language-pack.
  2. Work from the project root that matches pack manifests.
  3. Index query → read_file → edit → path-scoped tests when iterating.
  4. Prefer the package manager / toolchain already locked in the repo.
  5. Explain non-obvious toolchain choices in plain language for the user.

Pitfalls​

  • Do not invent core tools; stay on terminal + read_file + index CLI.
  • Prefer package-scoped cargo test -p when iterating.
  • Do not invent core tools; stay on terminal + read_file + index CLI.

Verification​

vibeos language doctor rust
cargo test