-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(header): deprecate HeaderFormatter
- Loading branch information
1 parent
7611c30
commit 282466e
Showing
4 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ license = "MIT" | |
authors = ["Sean McArthur <[email protected]>", | ||
"Jonathan Reem <[email protected]>"] | ||
keywords = ["http", "hyper", "hyperium"] | ||
build = "build.rs" | ||
|
||
[dependencies] | ||
httparse = "1.0" | ||
|
@@ -28,5 +29,8 @@ url = "1.0" | |
[dev-dependencies] | ||
env_logger = "0.3" | ||
|
||
[build-dependencies] | ||
rustc_version = "0.1" | ||
|
||
[features] | ||
nightly = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extern crate rustc_version as rustc; | ||
|
||
fn main() { | ||
if rustc::version_matches(">= 1.9") { | ||
println!("cargo:rustc-cfg=has_deprecated"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters