| Crates.io | v-authorization-lmpl |
| lib.rs | v-authorization-lmpl |
| version | 0.2.0 |
| created_at | 2025-10-25 10:57:06.287554+00 |
| updated_at | 2025-10-25 12:29:25.614921+00 |
| description | LMDB implementation for Veda authorization |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1900081 |
| size | 43,300 |
LMDB implementation for Veda authorization system.
This crate provides LMDB-based storage backend for the Veda authorization framework. It implements the AuthorizationContext trait from v_authorization crate using Lightning Memory-Mapped Database (LMDB).
use v_authorization_lmpl::LmdbAzContext;
// Create with default settings
let mut az_ctx = LmdbAzContext::default();
// Create with custom max read counter
let mut az_ctx = LmdbAzContext::new(10000);
// Create with full configuration
let mut az_ctx = LmdbAzContext::new_with_config(
10000,
Some("tcp://localhost:9999".to_string()),
Some("full".to_string()),
Some(true)
);
The context can be configured with:
max_read_counter: Number of authorization operations before database reconnectionstat_collector_url: Optional URL for statistics collectionstat_mode: Statistics collection mode ("full", "minimal", or "none")use_cache: Enable/disable authorization cachelmdb-rs-m: LMDB Rust bindingsv_authorization: Core authorization frameworknng: Nanomsg-next-generation for statistics reporting