-
-
Notifications
You must be signed in to change notification settings - Fork 58
/
Cargo.toml
76 lines (64 loc) · 1.92 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
67
68
69
70
71
72
73
74
75
76
[package]
name = "bstr"
version = "1.11.0" #:version
authors = ["Andrew Gallant <[email protected]>"]
description = "A string type that is not required to be valid UTF-8."
documentation = "https://docs.rs/bstr"
homepage = "https://github.com/BurntSushi/bstr"
repository = "https://github.com/BurntSushi/bstr"
readme = "README.md"
keywords = ["string", "str", "byte", "bytes", "text"]
license = "MIT OR Apache-2.0"
categories = ["text-processing", "encoding"]
exclude = ["/.github", "/scripts"]
edition = "2021"
rust-version = "1.73"
resolver = "2"
[workspace]
members = ["bench"]
[lib]
bench = false
[features]
default = ["std", "unicode"]
std = ["alloc", "memchr/std", "serde?/std"]
alloc = ["memchr/alloc", "serde?/alloc"]
unicode = ["dep:regex-automata"]
serde = ["dep:serde"]
[dependencies]
memchr = { version = "2.7.1", default-features = false }
serde = { version = "1.0.85", default-features = false, optional = true }
[dependencies.regex-automata]
version = "0.4.1"
default-features = false
features = ["dfa-search"]
optional = true
[dev-dependencies]
quickcheck = { version = "1", default-features = false }
ucd-parse = "0.1.3"
unicode-segmentation = "1.2.1"
[package.metadata.docs.rs]
# We want to document all features.
all-features = true
# Since this crate's feature setup is pretty complicated, it is worth opting
# into a nightly unstable option to show the features that need to be enabled
# for public API items. To do that, we set 'docsrs', and when that's enabled,
# we enable the 'doc_auto_cfg' feature.
#
# To test this locally, run:
#
# RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features
rustdoc-args = ["--cfg", "docsrs"]
[profile.release]
debug = true
[[example]]
name = "graphemes"
required-features = ["std", "unicode"]
[[example]]
name = "lines"
required-features = ["std"]
[[example]]
name = "uppercase"
required-features = ["std", "unicode"]
[[example]]
name = "words"
required-features = ["std", "unicode"]