Skip to content

Commit

Permalink
feat(server): expose Accept without httpX features (#2382)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Dec 29, 2020
1 parent 510b998 commit a6d4fcb
Show file tree
Hide file tree
Showing 6 changed files with 458 additions and 449 deletions.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ cfg_feature! {
}

cfg_feature! {
#![all(feature = "server", any(feature = "http1", feature = "http2"))]
#![all(feature = "server")]

pub mod server;
#[cfg(any(feature = "http1", feature = "http2"))]
#[doc(no_inline)]
pub use crate::server::Server;
}
2 changes: 1 addition & 1 deletion src/server/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ use bytes::Bytes;
use pin_project::pin_project;
use tokio::io::{AsyncRead, AsyncWrite};

use super::Accept;
use super::accept::Accept;
use crate::body::{Body, HttpBody};
use crate::common::exec::{ConnStreamExec, Exec, NewSvcExec};
#[cfg(feature = "http2")]
Expand Down
Loading

0 comments on commit a6d4fcb

Please sign in to comment.