Installation & Dependency Setup
MagnumDB is published as a Rust crate on crates.io. You can add it directly to your Rust application using Cargo.
1. Cargo CLI Installation
Run the following command inside your Rust project directory:
bash
$ cargo add magnumdb@=0.4.82. Manual Cargo.toml Configuration
Alternatively, add magnumdb directly to your Cargo.toml manifest:
Cargo.toml
toml
[dependencies]
magnumdb = "0.4.8"
anyhow = "1.0"3. Basic Sanity Check
Verify database engine initialization in your src/main.rs:
src/main.rs
rust
12345678use magnumdb::{Config, Database}; fn main() -> anyhow::Result<()> { let config = Config::default().with_path("./test_db"); let mut db = Database::open(config)?; println!("MagnumDB v0.4.8 initialized successfully."); Ok(()) }