1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
Description: drop nightly-only feature read_buf
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2023-08-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/rustls/Cargo.toml
+++ b/rustls/Cargo.toml
@@ -12,7 +12,6 @@
autobenches = false
autotests = false
exclude = ["src/testdata", "tests/**"]
-build = "build.rs"
[features]
default = ["ring", "logging", "std", "tls12"]
@@ -20,14 +19,10 @@
brotli = ["dep:brotli", "dep:brotli-decompressor", "std"]
custom-provider = []
logging = ["log"]
-read_buf = ["rustversion", "std"]
ring = ["dep:ring", "webpki/ring"]
std = ["webpki/std", "pki-types/std", "once_cell/std"]
tls12 = []
-[build-dependencies]
-rustversion = { version = "1.0.6", optional = true }
-
[dependencies]
brotli = { workspace = true, optional = true }
brotli-decompressor = { workspace = true, optional = true }
--- a/rustls/build.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-//! This build script allows us to enable the `read_buf` language feature only
-//! for Rust Nightly.
-//!
-//! See the comment in lib.rs to understand why we need this.
-
-#[cfg_attr(feature = "read_buf", rustversion::not(nightly))]
-fn main() {}
-
-#[cfg(feature = "read_buf")]
-#[rustversion::nightly]
-fn main() {
- println!("cargo:rustc-cfg=read_buf");
-}
|