mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-10 16:42:45 +00:00
[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:
committed by
William Cheng
parent
49b8ece776
commit
6f6a4a1013
@@ -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"
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user