soma-som-core 0.1.0

Universal soma(som) structural primitives — Quad / Tree / Ring / Genesis / Fingerprint / TemporalLedger / CrossingRecord
Documentation
// SPDX-License-Identifier: LGPL-3.0-only
#![allow(missing_docs)]

//! Pluggable configuration resolution.
//!
//! The ring resolves configuration values by lexicon-coordinate string key;
//! the byte representation is application-defined. Adopters typically use
//! serde + a canonical encoding (CBOR / bincode) and decode at the consumer.

/// Pluggable configuration lookup.
pub trait ConfigurationProvider: Send + Sync {
    fn resolve(&self, key: &str) -> Option<Vec<u8>>;
}

/// No-op default — no configuration values set.
pub struct EmptyConfig;

impl ConfigurationProvider for EmptyConfig {
    fn resolve(&self, _key: &str) -> Option<Vec<u8>> {
        None
    }
}