d-o-hub/rust-self-learning-memory

build-rust

Build Rust code with proper error handling, optimization, and workspace support for development, testing, and production

First seen Feb 21, 2026

Installation

$ npx skills add d-o-hub/rust-self-learning-memory --skill build-rust

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from d-o-hub/rust-self-learning-memory · top by installs.

npx skills add d-o-hub/rust-self-learning-memory

Browse all from d-o-hub/rust-self-learning-memory

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 12
License LICENSE
Default branch main
Open issues 3
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,653 B
  • docs SUMMARY.md 138 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 39 installs

SKILL.md

Rust Build Operations

Build Rust workspaces efficiently with the build-rust CLI.

CLI Usage

./scripts/build-rust.sh dev        # Development (fast, debug symbols)
./scripts/build-rust.sh release   # Production (optimized, stripped)
./scripts/build-rust.sh profile   # Performance analysis (--timings)
./scripts/build-rust.sh check     # Fast type-check only
./scripts/build-rust.sh clean     # Artifact cleanup
./scripts/build-rust.sh release do-memory-core  # Build specific crate

Build Modes

Mode Use Case Flags
dev Development iteration --workspace
release Production deployment --release --workspace
profile Performance analysis --release --timings
check Fast validation --workspace (type-check only)

Disk Space Optimization (ADR-032)

Dev profile reduces target/ size (~5.2 GB to ~2 GB):

[profile.dev]
debug = "line-tables-only"    # ~60% smaller
[profile.dev.package."*"]
debug = false                 # No debug for deps
[profile.dev.build-override]
opt-level = 3                 # Faster proc-macros

Cleanup: ./scripts/clean-artifacts.sh quick|standard|full Offload: CARGOTARGETDIR=/mnt/fastssd/rslm-target ./scripts/build-rust.sh dev

Error Handling

Issue Fix
Timeout CARGOBUILDJOBS=4 cargo build or use check
Memory cargo build -j 1 or monitor with /usr/bin/time -v
Dep conflicts cargo update then `cargo tree -d grep -cE "^[a-z]"`
Cross-compilation rustup target add x86_64-unknown-linux-musl

Common Workflows

# Full CI Pipeline
./scripts/code-quality.sh fmt && ./scripts/code-quality.sh clippy --workspace
cargo build --release --workspace && cargo nextest run --all && cargo test --doc

# Quick Development
cargo check -p do-memory-core && cargo test -p do-memory-core --lib

# Production Release
cargo build --release --workspace && strip target/release/do-memory-mcp

Troubleshooting

Issue Fix
Incremental cache corruption cargo clean && cargo build
Stale lock file rm Cargo.lock && cargo generate-lockfile
Rust version mismatch rustup update stable && rustup default stable

Verification Checklist

  • Build completes, no clippy warnings (cargo clippy -- -D warnings)
  • Tests compile, binary < 10MB stripped, startup < 100ms

References

ADR-032 (Disk Space), ADR-036 (Dependency Deduplication)