LNMP - LLM Native Minimal Protocol
LNMP is a meta crate that provides unified access to all modules of the LLM Native Minimal Protocol ecosystem. Instead of managing multiple dependencies, simply add lnmp to your project and get everything you need.
Quick Start
Add this to your Cargo.toml:
[]
= "0.5.4"
Then use any LNMP module:
use *;
use ;
use ;
use VectorDelta;
use SpatialStreamer;
What's Included
This meta crate re-exports all LNMP modules:
| Module | Description |
|---|---|
core |
Core type definitions and protocol structures |
codec |
Encoding and decoding functionality |
embedding |
Embedding vector operations and delta compression |
envelope |
Secure message enveloping and integrity |
llb |
Large Language Block operations |
quant |
Quantization utilities for efficient data representation |
sanitize |
Data sanitization and validation |
sfe |
Secure Function Evaluation primitives |
spatial |
Spatial data streaming and hybrid protocols |
transport |
Transport protocol bindings (HTTP, Kafka, gRPC, NATS) |
net |
Network behavior layer (MessageKind, QoS, ECO routing) |
Why Use the Meta Crate?
Before (Multiple Dependencies)
[]
= "0.5.4"
= "0.5.4"
= "0.5.4"
= "0.5.4"
# ... which ones do I need?
After (Single Dependency)
[]
= "0.5.4" # Everything included!
Usage Examples
Basic Message Encoding
use *;
let message = new;
let encoded = encode?;
let decoded = decode?;
Embedding Delta Compression
use ;
let old_vector = vec!;
let new_vector = vec!;
let delta = compute?;
Spatial Streaming
use ;
let streamer = new;
// Stream spatial data efficiently...
Network Routing
use ;
// Create a network message
let msg = new;
// Make intelligent routing decision
let policy = default;
let decision = policy.decide?;
Individual Modules
If you prefer fine-grained control and only need specific functionality, you can still depend on individual crates:
lnmp-core- Core protocol definitionslnmp-codec- Encoding/decodinglnmp-embedding- Embedding operationslnmp-llb- Large Language Blockslnmp-quant- Quantizationlnmp-sanitize- Sanitizationlnmp-sfe- Secure Function Evaluationlnmp-spatial- Spatial streaminglnmp-transport- Transport bindingslnmp-net- Network behavior layer
Documentation
License
MIT License - see LICENSE for details.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.