Skip to main content
The Logic-Injection-on-Origin Protocol (LIOP) provides high-performance native Rust crates engineered for low-latency agent runtimes, systems software, and embedded enclaves.
The Rust SDK is currently in Alpha (v0.1.0) under active development. Interfaces and function signatures may evolve prior to formal publication on crates.io. For immediate production deployments requiring multi-tier gateway routing, automated OAuth 2.1 tokens, and battle-tested L7 interceptors, refer to the TypeScript SDK.

Architecture of the Crates

The Rust implementation is partitioned into two specialized crates within the repository workspace:

liop-core

Binary Protocol & Stubs: Protocol Buffer definitions (liop_core.proto) compiled through tonic and prost. Exports typed gRPC service traits, client stubs, and network message types without pulling heavy runtime dependencies.

liop-client

Agent Execution Engine: High-level client runtime encapsulating Zero-Trust intent negotiation, post-quantum key encapsulation (ML-KEM-768), symmetric payload sealing (AES-256-GCM), and cryptographic ZK-Receipt validation.

Cargo Dependency Configuration

Until official publication on crates.io, consume the crates directly from the GitHub repository or as a path dependency in a monorepo workspace.

Consuming from Git Repository

Add the following to your Cargo.toml:
Cargo.toml

Consuming via Local Workspace Path

If developing within a local clone of the LIOP repository:
Cargo.toml

In-Situ WASI Logic Injection Example

The liop-client crate exposes the inject_logic function, automating the full five-stage cryptographic lifecycle:
  1. Zero-Trust Intent Negotiation: Establishes session parameters with the destination node.
  2. Post-Quantum Key Exchange: Generates an ephemeral ML-KEM-768 keypair and encapsulates a 256-bit shared secret.
  3. Payload Sealing: Encrypts the compiled guest WASM binary (wasm32-wasip1) using AES-256-GCM.
  4. Asynchronous Stream Dispatch: Dispatches the encrypted module over Tonic gRPC to the host sandbox.
  5. ZK-Receipt Verification: Verifies the host’s HMAC-SHA256 computational proof against the session secret and payload digest.
src/main.rs

Technical Specifications & Dependencies

The crates maintain minimal dependency graphs to ensure deterministic compilation and zero memory leaks:

Roadmap to crates.io Publication

The development path for the Rust SDK encompasses three primary milestones:
  1. WASI Preview 2 (Component Model) Support: Migrating from wasm32-wasip1 to WASI Preview 2 WIT interfaces for rich, strongly-typed object exchange across the guest-host boundary.
  2. Ergonomic Server Traits: Exposing a high-level LiopServer trait matching the TypeScript ergonomics, enabling developers to author native Rust data enclaves with minimal boilerplate.
  3. Crates.io Automated CI/CD Pipeline: Establishing automated cargo-release workflows with OIDC provenance verification.