원클릭으로
build-rust
Build Rust code with proper error handling, optimization, and workspace support for development, testing, and production
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Build Rust code with proper error handling, optimization, and workspace support for development, testing, and production
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | build-rust |
| description | Build Rust code with proper error handling, optimization, and workspace support for development, testing, and production |
Build Rust workspaces efficiently with the build-rust CLI.
./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
| 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) |
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: CARGO_TARGET_DIR=/mnt/fastssd/rslm-target ./scripts/build-rust.sh dev
| Issue | Fix |
|---|---|
| Timeout | CARGO_BUILD_JOBS=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 |
| Cross-compilation | rustup target add x86_64-unknown-linux-musl |
# 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
| 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 |
cargo clippy -- -D warnings)ADR-032 (Disk Space), ADR-036 (Dependency Deduplication)
Checkpoint episodes and create handoff packs for multi-agent session continuity
Configure, test, benchmark, and manage embedding providers for semantic search and vector operations
Create and traverse typed relationships between episodes for dependency tracking and knowledge graphs
Manage episode tags for organization, filtering, and retrieval across the memory system
Generate task playbooks and explain patterns using learned strategies from episodic memory
Record and analyze recommendation sessions and feedback to drive the self-learning loop