]> git.proxmox.com Git - rustc.git/blob - src/vendor/regex/Cargo.toml
New upstream version 1.20.0+dfsg1
[rustc.git] / src / vendor / regex / Cargo.toml
1 [package]
2 name = "regex"
3 version = "0.2.2" #:version
4 authors = ["The Rust Project Developers"]
5 license = "MIT/Apache-2.0"
6 readme = "README.md"
7 repository = "https://github.com/rust-lang/regex"
8 documentation = "https://doc.rust-lang.org/regex"
9 homepage = "https://github.com/rust-lang/regex"
10 description = """
11 An implementation of regular expressions for Rust. This implementation uses
12 finite automata and guarantees linear time matching on all inputs.
13 """
14 categories = ["text-processing"]
15
16 [dependencies]
17 # For very fast prefix literal matching.
18 aho-corasick = "0.6.0"
19 # For skipping along search text quickly when a leading byte is known.
20 memchr = "1.0.0"
21 # For managing regex caches quickly across multiple threads.
22 thread_local = "0.3.2"
23 # For parsing regular expressions.
24 regex-syntax = { path = "regex-syntax", version = "0.4.1" }
25 # For accelerating text search.
26 simd = { version = "0.1.1", optional = true }
27 # For compiling UTF-8 decoding into automata.
28 utf8-ranges = "1.0.0"
29
30 [dev-dependencies]
31 # For examples.
32 lazy_static = "0.2.2"
33 # For property based tests.
34 quickcheck = { version = "0.4.1", default-features = false }
35 # For generating random test data.
36 rand = "0.3.15"
37
38 [features]
39 # Enable to use the unstable pattern traits defined in std.
40 pattern = []
41 # Enable to use simd acceleration.
42 simd-accel = ["simd"]
43
44 [lib]
45 # There are no benchmarks in the library code itself
46 bench = false
47
48 # Run the test suite on the default behavior of Regex::new.
49 # This includes a mish mash of NFAs and DFAs, which are chosen automatically
50 # based on the regex. We test both of the NFA implementations by forcing their
51 # usage with the test definitions below. (We can't test the DFA implementations
52 # in the same way since they can't be used for every regex tested.)
53 [[test]]
54 path = "tests/test_default.rs"
55 name = "default"
56
57 # The same as the default tests, but run on bytes::Regex.
58 [[test]]
59 path = "tests/test_default_bytes.rs"
60 name = "default-bytes"
61
62 # Run the test suite on the NFA algorithm over Unicode codepoints.
63 [[test]]
64 path = "tests/test_nfa.rs"
65 name = "nfa"
66
67 # Run the test suite on the NFA algorithm over bytes that match UTF-8 only.
68 [[test]]
69 path = "tests/test_nfa_utf8bytes.rs"
70 name = "nfa-utf8bytes"
71
72 # Run the test suite on the NFA algorithm over arbitrary bytes.
73 [[test]]
74 path = "tests/test_nfa_bytes.rs"
75 name = "nfa-bytes"
76
77 # Run the test suite on the backtracking engine over Unicode codepoints.
78 [[test]]
79 path = "tests/test_backtrack.rs"
80 name = "backtrack"
81
82 # Run the test suite on the backtracking engine over bytes that match UTF-8
83 # only.
84 [[test]]
85 path = "tests/test_backtrack_utf8bytes.rs"
86 name = "backtrack-utf8bytes"
87
88 # Run the test suite on the backtracking engine over arbitrary bytes.
89 [[test]]
90 path = "tests/test_backtrack_bytes.rs"
91 name = "backtrack-bytes"
92
93 [profile.test]
94 debug = true