File: remove-reqwest.patch

package info (click to toggle)
rust-syn 2.0.98-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,700 kB
  • sloc: makefile: 2
file content (106 lines) | stat: -rw-r--r-- 2,685 bytes parent folder | download
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
diff --git a/Cargo.toml b/Cargo.toml
index 3f36a10..8cb5f06 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -236,9 +236,9 @@
 [target."cfg(not(miri))".dev-dependencies.rayon]
 version = "1"
 
-[target."cfg(not(miri))".dev-dependencies.reqwest]
-version = "0.12"
-features = ["blocking"]
+#[target."cfg(not(miri))".dev-dependencies.reqwest]
+#version = "0.12"
+#features = ["blocking"]
 
 [target."cfg(not(miri))".dev-dependencies.tar]
 version = "0.4.16"
diff --git a/benches/file.rs b/benches/file.rs
index 5754d20..f479e6b 100644
--- a/benches/file.rs
+++ b/benches/file.rs
@@ -1,3 +1,4 @@
+/*
 // $ cargo bench --features full,test --bench file
 
 #![feature(rustc_private, test)]
@@ -55,4 +56,4 @@
 fn parse_file(b: &mut Bencher) {
     let tokens = get_tokens();
     b.iter(|| syn::parse2::<syn::File>(tokens.clone()));
-}
+}*/
diff --git a/benches/rust.rs b/benches/rust.rs
index 75a9f91..c0b1e10 100644
--- a/benches/rust.rs
+++ b/benches/rust.rs
@@ -1,3 +1,7 @@
+fn main() {
+    eprintln!("Debian: this bench is disabled due to dependency on reqwest.\n\
+    To run it, please unapply debian/patches/remove-reqwest.patch.");
+/*
 // $ cargo bench --features full,test --bench rust
 //
 // Syn only, useful for profiling:
@@ -190,5 +194,5 @@
             elapsed.subsec_millis(),
         );
     }
-    eprintln!();
+    eprintln!();*/
 }
diff --git a/tests/repo/mod.rs b/tests/repo/mod.rs
index 96f039c..3130aef 100644
--- a/tests/repo/mod.rs
+++ b/tests/repo/mod.rs
@@ -484,6 +484,7 @@
 }
 
 pub fn clone_rust() {
+    return;
     let needs_clone = match fs::read_to_string("tests/rust/COMMIT") {
         Err(_) => true,
         Ok(contents) => contents.trim() != REVISION,
@@ -529,7 +530,7 @@
 }
 
 fn download_and_unpack() -> Result<()> {
-    let url = format!(
+    /*let url = format!(
         "https://github.com/rust-lang/rust/archive/{}.tar.gz",
         REVISION
     );
@@ -555,6 +556,6 @@
         entry.unpack(&out)?;
     }
 
-    fs::write("tests/rust/COMMIT", REVISION)?;
+    fs::write("tests/rust/COMMIT", REVISION)?;*/
     Ok(())
 }
diff --git a/tests/test_precedence.rs b/tests/test_precedence.rs
index 7231bd6..2c42792 100644
--- a/tests/test_precedence.rs
+++ b/tests/test_precedence.rs
@@ -60,7 +60,7 @@
 #[path = "../src/scan_expr.rs"]
 mod scan_expr;
 
-#[test]
+//#[test]
 fn test_rustc_precedence() {
     repo::rayon_init();
     repo::clone_rust();
diff --git a/tests/test_round_trip.rs b/tests/test_round_trip.rs
index 197552f..e6a93c4 100644
--- a/tests/test_round_trip.rs
+++ b/tests/test_round_trip.rs
@@ -49,7 +49,7 @@
 mod common;
 mod repo;
 
-#[test]
+//#[test]
 fn test_round_trip() {
     repo::rayon_init();
     repo::clone_rust();