Skip to content

Commit 952717e

Browse files
committed
edition: migrate to Rust 2018
This was long overdue, but I had been busy with other things. This also bumps the MSRV to Rust 1.41, which is what is currently in Debian stable.
1 parent 427fdc3 commit 952717e

File tree

17 files changed

+174
-223
lines changed

17 files changed

+174
-223
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
include:
3232
- build: pinned
3333
os: ubuntu-18.04
34-
rust: 1.28.0
34+
rust: 1.41.1
3535
- build: stable
3636
os: ubuntu-18.04
3737
rust: stable

Cargo.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ readme = "README.md"
1010
keywords = ["memchr", "char", "scan", "strchr", "string"]
1111
license = "Unlicense/MIT"
1212
exclude = ["/ci/*", "/.travis.yml", "/Makefile", "/appveyor.yml"]
13+
edition = "2018"
14+
15+
[workspace]
16+
members = ["bench"]
1317

1418
[lib]
1519
name = "memchr"
@@ -31,7 +35,10 @@ use_std = ["std"]
3135
libc = { version = "0.2.18", default-features = false, optional = true }
3236

3337
[dev-dependencies]
34-
quickcheck = { version = "0.9", default-features = false }
38+
quickcheck = { version = "1.0.3", default-features = false }
39+
40+
[profile.bench]
41+
debug = true
3542

3643
[profile.test]
3744
opt-level = 3

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ on Linux. On Linux, `memrchr` is used in precisely the same scenario as
6767

6868
### Minimum Rust version policy
6969

70-
This crate's minimum supported `rustc` version is `1.28.0`.
70+
This crate's minimum supported `rustc` version is `1.41.1`.
7171

7272
The current policy is that the minimum Rust version required to use this crate
7373
can be increased in minor version updates. For example, if `crate 1.0` requires

0 commit comments

Comments
 (0)