blob: 2348487b310536f9ccf3a591967de9109f1ab087 [file] [log] [blame]
Jason Macnak5a41ca22020-03-18 02:11:51 +00001[package]
2name = "memchr"
Joel Galenson1e1ba1a2021-09-22 11:10:59 -07003version = "2.4.1" #:version
Jason Macnak5a41ca22020-03-18 02:11:51 +00004authors = ["Andrew Gallant <jamslam@gmail.com>", "bluss"]
5description = "Safe interface to memchr."
6documentation = "https://docs.rs/memchr/"
Joel Galenson1e1ba1a2021-09-22 11:10:59 -07007homepage = "https://github.com/BurntSushi/memchr"
8repository = "https://github.com/BurntSushi/memchr"
Jason Macnak5a41ca22020-03-18 02:11:51 +00009readme = "README.md"
10keywords = ["memchr", "char", "scan", "strchr", "string"]
11license = "Unlicense/MIT"
Joel Galenson55b3fae2021-05-19 16:08:01 -070012exclude = ["/bench", "/.github", "/fuzz"]
13edition = "2018"
14
15[workspace]
16members = ["bench"]
Jason Macnak5a41ca22020-03-18 02:11:51 +000017
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
Joel Galenson1e1ba1a2021-09-22 11:10:59 -070034# 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
Jason Macnak5a41ca22020-03-18 02:11:51 +000038[dependencies]
39libc = { version = "0.2.18", default-features = false, optional = true }
40
Joel Galenson1e1ba1a2021-09-22 11:10:59 -070041# 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
Jason Macnak5a41ca22020-03-18 02:11:51 +000046[dev-dependencies]
Joel Galenson55b3fae2021-05-19 16:08:01 -070047quickcheck = { version = "1.0.3", default-features = false }
48
49[profile.release]
50debug = true
51
52[profile.bench]
53debug = true
Jason Macnak5a41ca22020-03-18 02:11:51 +000054
55[profile.test]
56opt-level = 3
Joel Galenson55b3fae2021-05-19 16:08:01 -070057debug = true