| Crates.io | llm-config-storage |
| lib.rs | llm-config-storage |
| version | 0.5.0 |
| created_at | 2025-11-21 21:46:49.608994+00 |
| updated_at | 2025-11-21 21:46:49.608994+00 |
| description | Persistent storage backend for LLM Config Manager using embedded Sled database with encryption support |
| homepage | https://github.com/globalbusinessadvisors/llm-config-manager |
| repository | https://github.com/globalbusinessadvisors/llm-config-manager |
| max_upload_size | |
| id | 1944321 |
| size | 62,183 |
Persistent storage backend for LLM Config Manager using embedded Sled database with encryption support.
Add this to your Cargo.toml:
[dependencies]
llm-config-storage = "0.5.0"
llm-config-crypto = "0.5.0"
use llm_config_storage::StorageBackend;
use llm_config_crypto::CryptoManager;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Initialize storage with encryption
let crypto = CryptoManager::new()?;
let storage = StorageBackend::open("./data", Some(crypto))?;
// Store configuration
storage.put("app.database.url", b"postgres://localhost/mydb").await?;
// Retrieve configuration
let value = storage.get("app.database.url").await?;
Ok(())
}
// Create namespace-specific storage
let namespace = storage.namespace("production");
namespace.put("api.key", b"secret-key").await?;
Benchmarks on modern hardware:
This crate requires Rust 1.75 or later.
Licensed under the Apache License, Version 2.0. See LICENSE for details.
See CONTRIBUTING.md for contribution guidelines.