AgentSkillsCN

ikaria-rust-workspace

适用于在Ikaria中对Rust工作空间进行调整,涉及crate布局、共享依赖项,以及根级验证命令的更新。

SKILL.md
--- frontmatter
name: ikaria-rust-workspace
description: Use for Rust workspace changes that touch crate layout, shared dependencies, and root-level validation commands in Ikaria.

Ikaria Rust Workspace Workflow

Use this skill when work spans multiple crates or changes repository structure.

Workspace conventions

  • Crates are organized as:
    • bins/* for executables
    • sdks/* for reusable libraries
  • Centralize dependency versions in root Cargo.toml under [workspace.dependencies].
  • Child crates should consume shared dependencies with workspace = true.
  • Shared contracts used by both server/client should live in sdks/shared.

Standard validation flow (from repo root)

  1. task fmt
  2. task clippy
  3. task check
  4. task test

For server-impacting changes, also run:

  • task test-server
  • task build (wasm + host split build)

Change checklist

  • Keep edits minimal and scoped.
  • Avoid direct binary-to-binary dependencies.
  • Prefer adding reusable logic in sdks/* rather than duplicating across bins.