diff --git a/rupring/Cargo.toml b/rupring/Cargo.toml index dfd1161..b66a253 100644 --- a/rupring/Cargo.toml +++ b/rupring/Cargo.toml @@ -41,5 +41,6 @@ signal-hook = "0.3.17" [features] default = [] -full = ["aws-lambda"] -aws-lambda = [] \ No newline at end of file +full = ["aws-lambda", "tls"] +aws-lambda = [] +tls = [] \ No newline at end of file diff --git a/rupring/src/core/mod.rs b/rupring/src/core/mod.rs index 953ac2e..eacab0e 100644 --- a/rupring/src/core/mod.rs +++ b/rupring/src/core/mod.rs @@ -7,6 +7,7 @@ mod parse; #[cfg(feature = "aws-lambda")] use bootings::aws_lambda::LambdaRequestEvent; + use hyper_util::rt::TokioExecutor; use tokio::time::error::Elapsed; use tokio::time::Instant; @@ -20,7 +21,6 @@ pub(crate) mod route; use std::collections::HashMap; use std::convert::Infallible; use std::error::Error; - use std::net::SocketAddr; use std::sync::atomic::AtomicBool; use std::sync::atomic::AtomicU64;