2023-10-01 01:06:22 -07:00
|
|
|
mod simple_server;
|
2023-09-26 13:26:10 -07:00
|
|
|
mod storage;
|
|
|
|
mod storage_server;
|
|
|
|
use clap::Parser;
|
|
|
|
|
2023-09-26 14:55:29 -07:00
|
|
|
#[cfg(test)]
|
|
|
|
mod tests;
|
|
|
|
|
2023-09-26 13:26:10 -07:00
|
|
|
#[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();
|
|
|
|
}
|
2023-10-01 01:06:22 -07:00
|
|
|
|
2023-09-26 13:26:10 -07:00
|
|
|
println!("Hello, world!");
|
|
|
|
}
|