-
Notifications
You must be signed in to change notification settings - Fork 417
/
Cargo.toml
66 lines (61 loc) · 1.67 KB
/
Cargo.toml
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
[package]
publish = false
name = "regex-benchmark"
version = "0.1.0"
authors = ["The Rust Project Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/rust-lang/regex"
documentation = "https://docs.rs/regex"
homepage = "https://github.com/rust-lang/regex"
description = "Regex benchmarks for Rust's and other engines."
build = "build.rs"
workspace = ".."
[dependencies]
docopt = "0.8"
lazy_static = "1"
libc = "0.2"
onig = { version = "3", optional = true }
libpcre-sys = { version = "0.2", optional = true }
memmap = "0.6"
regex = { version = "1.0.0", path = ".." }
regex-syntax = { version = "0.6.0", path = "../regex-syntax" }
serde = "1"
serde_derive = "1"
[build-dependencies]
cc = "1"
pkg-config = "0.3.9"
[[bin]]
name = "regex-run-one"
path = "src/main.rs"
bench = false
# Use features to conditionally compile benchmarked regexes, since not every
# regex works on every engine. Additionally, it is useful to be able to build
# each benchmark individually, so that not all dependencies are required to
# run only one benchmark.
#
# Note that when running benchmarks, only ONE feature should be set at a time.
# Doing anything else will probably result in weird "duplicate definition"
# compiler errors.
#
# Tip: use the `bench/run` script (in this directory) to run benchmarks.
[features]
re-pcre1 = ["libpcre-sys"]
re-pcre2 = []
re-onig = ["onig"]
re-stdcpp = []
libcxx = []
re-boost = []
re-re2 = []
re-dphobos = []
re-dphobos-dmd = ["re-dphobos"]
re-dphobos-dmd-ct = ["re-dphobos-dmd"]
re-dphobos-ldc = ["re-dphobos"]
re-dphobos-ldc-ct = ["re-dphobos-ldc"]
re-rust = []
re-rust-bytes = []
re-tcl = []
[[bench]]
name = "bench"
path = "src/bench.rs"
test = false
bench = true