spatial-db/src/main.rs

28 lines
501 B
Rust
Raw Normal View History

mod simple_server;
mod storage;
mod storage_server;
use clap::Parser;
2023-09-26 14:55:29 -07:00
#[cfg(test)]
mod tests;
#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
struct Args {
/// `http` starts a build-in http server that listens for reads and writes
/// to the database
#[arg(long)]
http: bool,
}
fn main() {
let args = Args::parse();
if args.http {
println!("Proxy was enabled");
storage_server::main();
}
println!("Hello, world!");
}