Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (62 loc) · 2.5 KB
/
Copy pathCargo.toml
File metadata and controls
72 lines (62 loc) · 2.5 KB
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
[package]
name = "regexsolver"
version = "1.0.2"
edition = "2024"
rust-version = "1.88"
authors = ["Alexandre van Beurden"]
repository = "https://github.com/RegexSolver/regexsolver"
homepage = "https://github.com/RegexSolver/regexsolver"
documentation = "https://docs.rs/regexsolver"
license = "MIT"
keywords = ["automaton", "intersection", "union", "difference", "regex"]
categories = ["text-processing", "mathematics", "algorithms"]
description = "High-performance Rust library for building, combining, and analyzing regular expressions and finite automata"
readme = "README.md"
# An allowlist rather than a denylist, so a new directory is not published by
# accident. `/assets` is left out: the README links its image by URL.
include = [
"/src/**/*.rs",
"/benches/**/*.rs",
"/examples/**/*.rs",
"/tests/**/*.rs",
"/tests/data/*.txt",
"/README.md",
"/CHANGELOG.md",
"/LICENSE",
]
[dependencies]
tracing = "0.1"
regex-syntax = "0.8.11"
# The feature flag (ucd-*) has to match the Unicode version `regex-syntax` uses.
regex-charclass = { version = "1.2.0", features = ["ucd-16"] }
bit-set = "0.11.1"
indexmap = "2.13.0"
# `wasm` has no threads: `rayon` would build, but only as its single-thread
# fallback. The `parallel` feature stays enabled there and compiles to the same
# sequential code as `--no-default-features`, minus the dependency.
[target.'cfg(not(target_family = "wasm"))'.dependencies]
rayon = { version = "1.10.0", optional = true }
# `ahash` draws its hash keys from `getrandom`, which `wasm32-unknown-unknown` has
# no backend for; there it falls back to `compile-time-rng`, drawing them at build
# time instead. The keys being fixed per build makes it in theory vulnerable to
# HashDoS, acceptable as long as it does not serve untrusted data at scale.
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies]
ahash = "0.8.11"
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies]
ahash = { version = "0.8.11", default-features = false, features = ["std", "compile-time-rng"] }
[features]
default = ["parallel"]
parallel = ["dep:rayon"]
[dev-dependencies]
proptest = { version = "1", default-features = false, features = ["std", "bit-set"] }
regex = "1.13.1"
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
criterion = { version = "0.8", features = ["html_reports"] }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[profile.bench]
codegen-units = 1
[[bench]]
name = "operations"
harness = false