Skip to content

Commit c1a16c4

Browse files
authored
Merge pull request #98 from http-rs/security
add security submodule
2 parents 9ab6f9b + a6e47cd commit c1a16c4

File tree

5 files changed

+639
-7
lines changed

5 files changed

+639
-7
lines changed

Cargo.toml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,21 @@ unstable = []
2222
hyperium_http = ["http"]
2323

2424
[dependencies]
25-
anyhow = "1.0.26"
26-
cookie = "0.12.0"
27-
infer = "0.1.2"
28-
omnom = "2.1.1"
29-
pin-project-lite = "0.1.0"
30-
url = "2.1.0"
3125

3226
# Note(yoshuawuyts): used for async_std's `channel` only; use "core" once possible.
3327
async-std = { version = "1.4.0", features = ["unstable"] }
3428

3529
# features: hyperium/http
3630
http = { version = "0.2.0", optional = true }
3731

32+
anyhow = "1.0.26"
33+
cookie = "0.12.0"
34+
infer = "0.1.2"
35+
omnom = "2.1.1"
36+
pin-project-lite = "0.1.0"
37+
url = "2.1.0"
38+
serde_json = "1.0.51"
39+
serde = { version = "1.0", features = ["derive"] }
40+
3841
[dev-dependencies]
3942
http = "0.2.0"

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
//! differently. But as a rule: if you know the size of the body, it's usually more efficient to
9494
//! declare it up front. But if you don't, things will still work.
9595
96-
#![forbid(rust_2018_idioms)]
9796
#![deny(missing_debug_implementations, nonstandard_style)]
9897
#![warn(missing_docs, unreachable_pub)]
9998
#![cfg_attr(test, deny(warnings))]
@@ -164,6 +163,8 @@ pub use crate::cookies::Cookie;
164163
#[doc(inline)]
165164
pub mod trailers;
166165

166+
pub mod security;
167+
167168
#[cfg(feature = "hyperium_http")]
168169
mod hyperium_http;
169170

0 commit comments

Comments
 (0)