aboutsummaryrefslogtreecommitdiffstats
path: root/rust/fatcat-openapi/examples/server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/fatcat-openapi/examples/server.rs')
-rw-r--r--rust/fatcat-openapi/examples/server.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/rust/fatcat-openapi/examples/server.rs b/rust/fatcat-openapi/examples/server.rs
index a033413b..1a4fd06d 100644
--- a/rust/fatcat-openapi/examples/server.rs
+++ b/rust/fatcat-openapi/examples/server.rs
@@ -4,13 +4,17 @@
// Imports required by this file.
// extern crate <name of this crate>;
-use fatcat_openapi;
+extern crate clap;
+extern crate fatcat_openapi;
+extern crate hyper_openssl;
+extern crate iron;
+extern crate swagger;
// Imports required by server library.
// extern crate fatcat_openapi;
// extern crate swagger;
-use chrono;
-use futures;
+extern crate chrono;
+extern crate futures;
#[macro_use]
extern crate error_chain;
@@ -20,6 +24,7 @@ use hyper_openssl::openssl::ssl::{SslAcceptorBuilder, SslMethod};
use hyper_openssl::openssl::x509::X509_FILETYPE_PEM;
use hyper_openssl::OpensslServer;
use iron::{Chain, Iron};
+use swagger::auth::AllowAllMiddleware;
mod server_lib;