File: drop-criterion.patch

package info (click to toggle)
rust-syntect 5.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,860 kB
  • sloc: makefile: 2
file content (71 lines) | stat: -rw-r--r-- 2,125 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
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
Index: syntect/Cargo.toml
===================================================================
--- syntect.orig/Cargo.toml
+++ syntect/Cargo.toml
@@ -114,9 +114,9 @@ version = "2.0"
 version = "0.4.5"
 optional = true
 
-[dev-dependencies.criterion]
-version = "0.3"
-features = ["html_reports"]
+#[dev-dependencies.criterion]
+#version = "0.3"
+#features = ["html_reports"]
 
 [dev-dependencies.getopts]
 version = "0.2"
Index: syntect/benches/highlighting.rs
===================================================================
--- syntect.orig/benches/highlighting.rs
+++ syntect/benches/highlighting.rs
@@ -1,4 +1,4 @@
-use criterion::{Bencher, Criterion, criterion_group, criterion_main};
+/*use criterion::{Bencher, Criterion, criterion_group, criterion_main};
 use syntect::parsing::{SyntaxSet, ScopeStack};
 use syntect::highlighting::{ThemeSet};
 use syntect::html::highlighted_html_for_string;
@@ -67,3 +67,7 @@ criterion_group! {
     targets = highlighting_benchmark
 }
 criterion_main!(benches);
+*/
+fn main() {
+    //dummy main function
+}
Index: syntect/benches/loading.rs
===================================================================
--- syntect.orig/benches/loading.rs
+++ syntect/benches/loading.rs
@@ -1,4 +1,4 @@
-use criterion::{Bencher, Criterion, criterion_group, criterion_main};
+/*use criterion::{Bencher, Criterion, criterion_group, criterion_main};
 use syntect::parsing::{SyntaxSet, SyntaxSetBuilder};
 use syntect::highlighting::ThemeSet;
 
@@ -57,3 +57,8 @@ criterion_group! {
     targets = loading_benchmark
 }
 criterion_main!(benches);
+*/
+fn main() {
+    //dummy main function.
+}
+
Index: syntect/benches/parsing.rs
===================================================================
--- syntect.orig/benches/parsing.rs
+++ syntect/benches/parsing.rs
@@ -1,3 +1,4 @@
+/*
 use criterion::{Bencher, Criterion, criterion_group, criterion_main};
 use std::time::Duration;
 use syntect::parsing::{ParseState, SyntaxReference, SyntaxSet};
@@ -47,3 +48,7 @@ criterion_group! {
     targets = parsing_benchmark
 }
 criterion_main!(benches);
+*/
+fn main() {
+    //dummy main function
+}