mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-30 00:14:58 +02:00
@ -1,15 +1,11 @@
|
||||
use std::sync::mpsc;
|
||||
use std::{thread, time::Duration};
|
||||
|
||||
#[cfg(feature = "openssl")]
|
||||
extern crate tls_openssl as openssl;
|
||||
#[cfg(feature = "rustls")]
|
||||
extern crate tls_rustls as rustls;
|
||||
|
||||
#[cfg(feature = "openssl")]
|
||||
use openssl::ssl::SslAcceptorBuilder;
|
||||
|
||||
use actix_web::{test, web, App, HttpResponse, HttpServer};
|
||||
#[cfg(any(unix, feature = "openssl"))]
|
||||
use {
|
||||
actix_web::{test, web, App, HttpResponse, HttpServer},
|
||||
std::{sync::mpsc, thread, time::Duration},
|
||||
};
|
||||
|
||||
#[cfg(unix)]
|
||||
#[actix_rt::test]
|
||||
@ -72,7 +68,7 @@ async fn test_start() {
|
||||
}
|
||||
|
||||
#[cfg(feature = "openssl")]
|
||||
fn ssl_acceptor() -> SslAcceptorBuilder {
|
||||
fn ssl_acceptor() -> openssl::ssl::SslAcceptorBuilder {
|
||||
use openssl::{
|
||||
pkey::PKey,
|
||||
ssl::{SslAcceptor, SslMethod},
|
||||
|
Reference in New Issue
Block a user