A simple JSON-based database that works through loading full self-copy into the memory. Should be more than enough for the needs of kf modding.
17 lines
440 B
Rust
17 lines
440 B
Rust
use std::env;
|
|
use std::path::Path;
|
|
mod database;
|
|
|
|
use simplelog::{Config, LevelFilter, SimpleLogger};
|
|
|
|
fn main() {
|
|
let _ = SimpleLogger::init(LevelFilter::Info, Config::default());
|
|
let args: Vec<String> = env::args().collect();
|
|
let filename = &args[1];
|
|
let db = database::Database::load(Path::new(filename));
|
|
/*match db {
|
|
Ok(db) => print!("{}", db),
|
|
Err(error) => println!("OH NO: {}", error),
|
|
}*/
|
|
}
|