| Crates.io | enigma-signaling |
| lib.rs | enigma-signaling |
| version | 0.0.1 |
| created_at | 2025-12-15 17:28:06.805204+00 |
| updated_at | 2025-12-15 17:28:06.805204+00 |
| description | Canonical signaling messages (SDP/ICE) for Enigma. No network layer. |
| homepage | https://github.com/Gladius33/enigma-signaling |
| repository | https://github.com/Gladius33/enigma-signaling |
| max_upload_size | |
| id | 1986435 |
| size | 22,274 |
Canonical JSON encoding for Enigma signaling envelopes (SDP/ICE) with strict validation.
Features
Quick start
use enigma_signaling::{decode, encode, validate, SignalingEnvelope, SignalingKind};
use uuid::Uuid;
let envelope = SignalingEnvelope {
id: Uuid::new_v4(),
from: "caller".to_string(),
to: "callee".to_string(),
ts_ms: 1,
kind: SignalingKind::Offer {
sdp: "v=0...".to_string(),
},
};
validate(&envelope)?;
let json = encode(&envelope)?;
let roundtrip = decode(&json)?;
assert_eq!(roundtrip.kind, envelope.kind);
Validation rules
from and to are non-empty and at most 64 charsts_ms is strictly positivecandidateLicense MIT 2025 Sébastien TOUILLEUX (Gladius33)