| Crates.io | vex-persist |
| lib.rs | vex-persist |
| version | 0.1.2 |
| created_at | 2025-12-14 22:23:49.715022+00 |
| updated_at | 2025-12-18 01:42:46.946535+00 |
| description | Persistence layer for VEX Protocol |
| homepage | |
| repository | https://github.com/provnai/vex |
| max_upload_size | |
| id | 1985199 |
| size | 119,488 |
Persistence layer for the VEX Protocol.
[dependencies]
# SQLite (default)
vex-persist = "0.1"
# PostgreSQL
vex-persist = { version = "0.1", features = ["postgres"] }
use vex_persist::{SqliteBackend, AgentStore};
use vex_core::Agent;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let backend = SqliteBackend::new("vex.db").await?;
let store = AgentStore::new(backend);
let agent = Agent::new("my-agent");
store.save(&agent).await?;
Ok(())
}
MIT License - see LICENSE for details.