• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[package]
2name = "memchr"
3version = "2.5.0"  #:version
4authors = ["Andrew Gallant <jamslam@gmail.com>", "bluss"]
5description = "Safe interface to memchr."
6documentation = "https://docs.rs/memchr/"
7homepage = "https://github.com/BurntSushi/memchr"
8repository = "https://github.com/BurntSushi/memchr"
9readme = "README.md"
10keywords = ["memchr", "char", "scan", "strchr", "string"]
11license = "Unlicense/MIT"
12exclude = ["/bench", "/.github", "/fuzz"]
13edition = "2018"
14
15[workspace]
16members = ["bench"]
17
18[lib]
19name = "memchr"
20bench = false
21
22[features]
23default = ["std"]
24
25# The 'std' feature permits the memchr crate to use the standard library. This
26# permits this crate to use runtime CPU feature detection to automatically
27# accelerate searching via vector instructions. Without the standard library,
28# this automatic detection is not possible.
29std = []
30# The 'use_std' feature is DEPRECATED. It will be removed in memchr 3. Until
31# then, it is alias for the 'std' feature.
32use_std = ["std"]
33
34# Internal feature, only used when building as part of libstd, not part of the
35# stable interface of this crate.
36rustc-dep-of-std = ['core', 'compiler_builtins']
37
38[dependencies]
39libc = { version = "0.2.18", default-features = false, optional = true }
40
41# Internal feature, only used when building as part of libstd, not part of the
42# stable interface of this crate.
43core = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-core' }
44compiler_builtins = { version = '0.1.2', optional = true }
45
46[dev-dependencies]
47quickcheck = { version = "1.0.3", default-features = false }
48
49[profile.release]
50debug = true
51
52[profile.bench]
53debug = true
54
55[profile.test]
56opt-level = 3
57debug = true
58