Skip to content

πŸ† [BOUNTY] Rust Adapter β€” lh_standard_adapter for crates.ioΒ #3

Description

@UID9622

Rust Adapter Bounty

Bounty Type: Community Language Adapter
Difficulty: Intermediate
Tags: rust cargo bounty good-first-issue


Mission

Implement lh_standard_adapter in Rust. Published to crates.io. Zero external dependencies.


Specification

Read docs/AI-Traceability-Audit-Protocol-v1.0.md for the full standard.
Reference: Python in lh_standard_adapter/.


Requirements

  • Crate: lh-standard-adapter (crates.io)
  • cargo add lh-standard-adapter
  • Zero external dependencies (std only: std::collections, std::hash, regex in dev-deps)
  • Derive macros: Serialize, Deserialize (serde in deps is acceptable)
  • Full test suite (72+ tests)
  • Rustdoc on all public items
  • cargo clippy + cargo fmt clean
  • README with English + Rust usage examples
  • LICENSE: CC-BY-NC-SA 4.0

API Design

pub struct LongHunAdapter { uid: String, device: String }

impl LongHunAdapter {
    pub fn new(uid: &str, device: &str) -> Self
    pub fn wrap(&self, data: Value, task_type: &str, persona: &str) -> Result<Value>
    pub fn validate(&self, wrapped: &Value) -> ValidationResult
    pub fn get_schemas(&self) -> (Value, Value)
}

Acceptance Criteria

  1. All tests pass (72+)
  2. Cross-validate with Python reference
  3. Published to crates.io
  4. PR merged to adapters/rust/

How to Claim

  1. Comment below
  2. Fork β†’ implement under adapters/rust/
  3. PR with passing tests

You don't get to translate LongHun into your framework. You translate your framework into LongHun β€” or you don't.

β€” The LongHun Manifesto

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions