summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-openapi/examples/server/main.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-02-09 18:57:00 -0800
committerBryan Newbold <bnewbold@archive.org>2021-02-09 18:57:00 -0800
commit19c582a3cf1c42e9c75170650ccd141eda903479 (patch)
tree0738781689e4c12308016f184cb6eb02af1716a6 /rust/fatcat-openapi/examples/server/main.rs
parentbab3fb9fdcc921e1bb8a81e0f2b4e12558d2dde7 (diff)
downloadfatcat-cli-19c582a3cf1c42e9c75170650ccd141eda903479.tar.gz
fatcat-cli-19c582a3cf1c42e9c75170650ccd141eda903479.zip
move source code to top-level directory
Diffstat (limited to 'rust/fatcat-openapi/examples/server/main.rs')
-rw-r--r--rust/fatcat-openapi/examples/server/main.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/rust/fatcat-openapi/examples/server/main.rs b/rust/fatcat-openapi/examples/server/main.rs
deleted file mode 100644
index 5488dc6..0000000
--- a/rust/fatcat-openapi/examples/server/main.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-//! Main binary entry point for fatcat_openapi implementation.
-
-#![allow(missing_docs)]
-
-use clap::{App, Arg};
-
-mod server;
-
-/// Create custom server, wire it to the autogenerated router,
-/// and pass it to the web server.
-#[tokio::main]
-async fn main() {
- env_logger::init();
-
- let matches = App::new("server")
- .arg(
- Arg::with_name("https")
- .long("https")
- .help("Whether to use HTTPS or not"),
- )
- .get_matches();
-
- let addr = "127.0.0.1:8080";
-
- server::create(addr, matches.is_present("https")).await;
-}