File: 2004_no_feature_read_buf.patch

package info (click to toggle)
rust-rustls-0.21 0.21.12-15
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,408 kB
  • sloc: sh: 327; python: 104; makefile: 9
file content (43 lines) | stat: -rw-r--r-- 1,108 bytes parent folder | download | duplicates (2)
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
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
@@ -10,10 +10,6 @@
 repository = "https://github.com/rustls/rustls"
 categories = ["network-programming", "cryptography"]
 autobenches = false
-build = "build.rs"
-
-[build-dependencies]
-rustversion = { version = "1.0.6", optional = true }
 
 [dependencies]
 log = { version = "0.4.4", optional = true }
@@ -28,7 +24,6 @@
 secret_extraction = []
 quic = []
 tls12 = []
-read_buf = ["rustversion"]
 
 [dev-dependencies]
 bencher = "0.1.5"
--- 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");
-}