diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2020-11-17 15:46:20 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2020-11-19 14:55:14 -0800 |
commit | 89016d99a20269c1a576bd4c7673f83af55e8218 (patch) | |
tree | d57902f19bfb546ae941c566e2be0ab7aa9796fd /rust/fatcat-openapi/examples/server.rs | |
parent | b4d675b3a4a085d6338d8df5196f4a37dd7c39bc (diff) | |
download | fatcat-89016d99a20269c1a576bd4c7673f83af55e8218.tar.gz fatcat-89016d99a20269c1a576bd4c7673f83af55e8218.zip |
codegen rust crate for v0.3.3
Diffstat (limited to 'rust/fatcat-openapi/examples/server.rs')
-rw-r--r-- | rust/fatcat-openapi/examples/server.rs | 11 |
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; |