[rust-server] (Re-)Adding support for rust-server (#290)

* First attempt at getting rust-server working

* Solve the problem of spurious 'object's

* We've found the missing models

* Catch some single-var objects correctly

* Get single-param models 'working'

* Got files working

* Remove surplus logging

* Disable some things to get it compiling

* `cargo test` now passes as well

* Create rust-server-specific petstore.yaml

We've commented out a few bits that rust-server doesn't yet support

* Remove commented-out code

And finally get rid of the generation date in the sample
This commit is contained in:
Benjamin Gill
2018-06-13 11:53:03 +01:00
committed by William Cheng
parent 49b8ece776
commit 6f6a4a1013
22 changed files with 4192 additions and 3309 deletions

View File

@@ -29,6 +29,7 @@ use hyper::server::Http;
use tokio_proto::TcpServer;
use clap::{App, Arg};
use swagger::auth::AllowAllAuthenticator;
use swagger::EmptyContext;
mod server_lib;
@@ -54,9 +55,9 @@ fn main() {
.get_matches();
let service_fn =
petstore_api::server::auth::NewService::new(
petstore_api::server::auth::NewService::<_, EmptyContext>::new(
AllowAllAuthenticator::new(
server_lib::NewService,
server_lib::NewService::new(),
"cosmo"
)
);