1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-24 03:42:59 +01:00

use doc_auto_cfg

This commit is contained in:
Rob Ede 2023-04-01 05:18:22 +01:00
parent a6bece7b33
commit c60d2f9ddb
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
5 changed files with 2 additions and 13 deletions

View File

@ -42,7 +42,7 @@ native-tls = ["tokio-native-tls"]
uri = ["http"] uri = ["http"]
[dependencies] [dependencies]
actix-rt = { version = "2.2.0", default-features = false } actix-rt = { version = "2.2", default-features = false }
actix-service = "2" actix-service = "2"
actix-utils = "3" actix-utils = "3"

View File

@ -21,7 +21,6 @@
use tokio_rustls::rustls; use tokio_rustls::rustls;
use std::{ use std::{
env,
fs::File, fs::File,
io::{self, BufReader}, io::{self, BufReader},
sync::{ sync::{

View File

@ -10,15 +10,12 @@ use std::{
use actix_utils::counter::Counter; use actix_utils::counter::Counter;
#[cfg(feature = "openssl")] #[cfg(feature = "openssl")]
#[cfg_attr(docsrs, doc(cfg(feature = "openssl")))]
pub mod openssl; pub mod openssl;
#[cfg(feature = "rustls")] #[cfg(feature = "rustls")]
#[cfg_attr(docsrs, doc(cfg(feature = "rustls")))]
pub mod rustls; pub mod rustls;
#[cfg(feature = "native-tls")] #[cfg(feature = "native-tls")]
#[cfg_attr(docsrs, doc(cfg(feature = "native-tls")))]
pub mod native_tls; pub mod native_tls;
pub(crate) static MAX_CONN: AtomicUsize = AtomicUsize::new(256); pub(crate) static MAX_CONN: AtomicUsize = AtomicUsize::new(256);

View File

@ -22,19 +22,15 @@ mod resolver;
pub mod tcp; pub mod tcp;
#[cfg(feature = "uri")] #[cfg(feature = "uri")]
#[cfg_attr(docsrs, doc(cfg(feature = "uri")))]
mod uri; mod uri;
#[cfg(feature = "openssl")] #[cfg(feature = "openssl")]
#[cfg_attr(docsrs, doc(cfg(feature = "openssl")))]
pub mod openssl; pub mod openssl;
#[cfg(feature = "rustls")] #[cfg(feature = "rustls")]
#[cfg_attr(docsrs, doc(cfg(feature = "rustls")))]
pub mod rustls; pub mod rustls;
#[cfg(feature = "native-tls")] #[cfg(feature = "native-tls")]
#[cfg_attr(docsrs, doc(cfg(feature = "native-tls")))]
pub mod native_tls; pub mod native_tls;
pub use self::connection::Connection; pub use self::connection::Connection;

View File

@ -4,17 +4,14 @@
#![warn(future_incompatible, missing_docs)] #![warn(future_incompatible, missing_docs)]
#![doc(html_logo_url = "https://actix.rs/img/logo.png")] #![doc(html_logo_url = "https://actix.rs/img/logo.png")]
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")] #![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
// enable unstable doc_cfg feature only on on docs.rs where nightly compiler is used #![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#[cfg(feature = "openssl")] #[cfg(feature = "openssl")]
#[allow(unused_extern_crates)] #[allow(unused_extern_crates)]
extern crate tls_openssl as openssl; extern crate tls_openssl as openssl;
#[cfg(feature = "accept")] #[cfg(feature = "accept")]
#[cfg_attr(docsrs, doc(cfg(feature = "accept")))]
pub mod accept; pub mod accept;
#[cfg(feature = "connect")] #[cfg(feature = "connect")]
#[cfg_attr(docsrs, doc(cfg(feature = "connect")))]
pub mod connect; pub mod connect;