File: 1002_test-requires-runtime.patch

package info (click to toggle)
rust-hyper-rustls-0.24 0.24.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 348 kB
  • sloc: sh: 47; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 686 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: add feature guards ensuring runtime is available
 tests_alpn_http2 fails to build if no runtime is enabled
Author: Peter Michael Green <plugwash@debian.org>
Last-Update: 2023-12-12
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/

--- a/src/connector/builder.rs
+++ b/src/connector/builder.rs
@@ -353,7 +353,7 @@
     }
 
     #[test]
-    #[cfg(all(not(feature = "http1"), feature = "http2"))]
+    #[cfg(all(not(feature = "http1"), feature = "http2", any(feature = "native-tokio", feature = "tokio-runtime")))]
     fn test_alpn_http2() {
         let roots = rustls::RootCertStore::empty();
         let tls_config = rustls::ClientConfig::builder()