Jason Macnak | 5a41ca2 | 2020-03-18 02:11:51 +0000 | [diff] [blame] | 1 | [package] |
| 2 | name = "memchr" |
Joel Galenson | 1e1ba1a | 2021-09-22 11:10:59 -0700 | [diff] [blame] | 3 | version = "2.4.1" #:version |
Jason Macnak | 5a41ca2 | 2020-03-18 02:11:51 +0000 | [diff] [blame] | 4 | authors = ["Andrew Gallant <jamslam@gmail.com>", "bluss"] |
| 5 | description = "Safe interface to memchr." |
| 6 | documentation = "https://docs.rs/memchr/" |
Joel Galenson | 1e1ba1a | 2021-09-22 11:10:59 -0700 | [diff] [blame] | 7 | homepage = "https://github.com/BurntSushi/memchr" |
| 8 | repository = "https://github.com/BurntSushi/memchr" |
Jason Macnak | 5a41ca2 | 2020-03-18 02:11:51 +0000 | [diff] [blame] | 9 | readme = "README.md" |
| 10 | keywords = ["memchr", "char", "scan", "strchr", "string"] |
| 11 | license = "Unlicense/MIT" |
Joel Galenson | 55b3fae | 2021-05-19 16:08:01 -0700 | [diff] [blame] | 12 | exclude = ["/bench", "/.github", "/fuzz"] |
| 13 | edition = "2018" |
| 14 | |
| 15 | [workspace] |
| 16 | members = ["bench"] |
Jason Macnak | 5a41ca2 | 2020-03-18 02:11:51 +0000 | [diff] [blame] | 17 | |
| 18 | [lib] |
| 19 | name = "memchr" |
| 20 | bench = false |
| 21 | |
| 22 | [features] |
| 23 | default = ["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. |
| 29 | std = [] |
| 30 | # The 'use_std' feature is DEPRECATED. It will be removed in memchr 3. Until |
| 31 | # then, it is alias for the 'std' feature. |
| 32 | use_std = ["std"] |
| 33 | |
Joel Galenson | 1e1ba1a | 2021-09-22 11:10:59 -0700 | [diff] [blame] | 34 | # Internal feature, only used when building as part of libstd, not part of the |
| 35 | # stable interface of this crate. |
| 36 | rustc-dep-of-std = ['core', 'compiler_builtins'] |
| 37 | |
Jason Macnak | 5a41ca2 | 2020-03-18 02:11:51 +0000 | [diff] [blame] | 38 | [dependencies] |
| 39 | libc = { version = "0.2.18", default-features = false, optional = true } |
| 40 | |
Joel Galenson | 1e1ba1a | 2021-09-22 11:10:59 -0700 | [diff] [blame] | 41 | # Internal feature, only used when building as part of libstd, not part of the |
| 42 | # stable interface of this crate. |
| 43 | core = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-core' } |
| 44 | compiler_builtins = { version = '0.1.2', optional = true } |
| 45 | |
Jason Macnak | 5a41ca2 | 2020-03-18 02:11:51 +0000 | [diff] [blame] | 46 | [dev-dependencies] |
Joel Galenson | 55b3fae | 2021-05-19 16:08:01 -0700 | [diff] [blame] | 47 | quickcheck = { version = "1.0.3", default-features = false } |
| 48 | |
| 49 | [profile.release] |
| 50 | debug = true |
| 51 | |
| 52 | [profile.bench] |
| 53 | debug = true |
Jason Macnak | 5a41ca2 | 2020-03-18 02:11:51 +0000 | [diff] [blame] | 54 | |
| 55 | [profile.test] |
| 56 | opt-level = 3 |
Joel Galenson | 55b3fae | 2021-05-19 16:08:01 -0700 | [diff] [blame] | 57 | debug = true |