Back to list
d-o-hub

build-compile

by d-o-hub

A modular Rust-based self-learning episodic memory system for AI agents, featuring hybrid storage with Turso (SQL) and redb (KV), async execution tracking, reward scoring, reflection, and pattern-based skill evolution. Designed for real-world applicability, maintainability, and scalable agent workflows.

3🍴 0📅 Jan 23, 2026

SKILL.md


name: build-compile description: Build Rust code with proper error handling and optimization for development, testing, and production. Use when compiling the self-learning memory project or troubleshooting build errors.

Build and Compile

Build Rust code with proper error handling and optimization.

Build Commands

Build TypeCommandPurpose
Developmentcargo buildFast compile, debug symbols
Releasecargo build --releaseOptimized for production
Checkcargo checkFast type check only

Build Profiles

[profile.dev]
opt-level = 0
debug = true

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = true

Common Errors

Type Errors

error[E0308]: mismatched types

Fix: Ensure return types match

Lifetime Errors

error[E0597]: value does not live long enough

Fix: Clone data or return owned type

Trait Bound Errors

error[E0277]: trait bound `X: Send` not satisfied

Fix: Use Send-safe types (Arc<Mutex>)

Async Errors

error: await only allowed in async functions

Fix: Make function async

Speed Up Builds

# Incremental
export CARGO_INCREMENTAL=1

# Clean rebuild
cargo clean && cargo build --all

# Parallel jobs
cargo build -j 8

Optimization Tips

  • LTO: lto = "fat" in release
  • Codegen units: codegen-units = 1
  • Profile: cargo build --timings

Score

Total Score

75/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon