Skip to content

Commit

Permalink
edition: migrate to Rust 2018
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
BurntSushi committed Apr 30, 2021
1 parent 427fdc3 commit 952717e
Show file tree
Hide file tree
Showing 17 changed files with 174 additions and 223 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
include:
- build: pinned
os: ubuntu-18.04
rust: 1.28.0
rust: 1.41.1
- build: stable
os: ubuntu-18.04
rust: stable
Expand Down
9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ readme = "README.md"
keywords = ["memchr", "char", "scan", "strchr", "string"]
license = "Unlicense/MIT"
exclude = ["/ci/*", "/.travis.yml", "/Makefile", "/appveyor.yml"]
edition = "2018"

[workspace]
members = ["bench"]

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

[dev-dependencies]
quickcheck = { version = "0.9", default-features = false }
quickcheck = { version = "1.0.3", default-features = false }

[profile.bench]
debug = true

[profile.test]
opt-level = 3
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ on Linux. On Linux, `memrchr` is used in precisely the same scenario as

### Minimum Rust version policy

This crate's minimum supported `rustc` version is `1.28.0`.
This crate's minimum supported `rustc` version is `1.41.1`.

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

0 comments on commit 952717e

Please sign in to comment.