From 341086a6ffde28985209e9dbf5b4b0d49fede725 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 11 Dec 2021 00:14:08 -0800 Subject: [PATCH] Update to 2018 edition and rust 1.31+ --- .github/workflows/ci.yml | 18 +----------------- Cargo.toml | 3 ++- README.md | 2 +- 3 files changed, 4 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c70d972..09d6846 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - rust: [nightly, beta, stable, 1.26.0] + rust: [nightly, beta, stable, 1.31.0] steps: - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@master @@ -28,22 +28,6 @@ jobs: - run: cargo bench --no-run --features i128 if: matrix.rust == 'nightly' - mintest: - name: Rust 1.20.0 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: dtolnay/rust-toolchain@1.20.0 - - run: cargo test - - msrv: - name: Rust 1.0.0 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: dtolnay/rust-toolchain@1.0.0 - - run: cargo build - miri: name: Miri runs-on: ubuntu-latest diff --git a/Cargo.toml b/Cargo.toml index f7a838c..e927756 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "itoa" version = "0.4.8" # remember to update html_root_url authors = ["David Tolnay "] -rust-version = "1.0" +rust-version = "1.31" license = "MIT OR Apache-2.0" description = "Fast functions for printing integer primitives to an io::Write" repository = "https://github.com/dtolnay/itoa" @@ -10,6 +10,7 @@ documentation = "https://docs.rs/itoa" categories = ["value-formatting"] readme = "README.md" exclude = ["performance.png"] +edition = "2018" [features] default = ["std"] diff --git a/README.md b/README.md index cff3bb3..298983e 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This crate provides fast functions for printing integer primitives to an See also [`dtoa`] for printing floating point primitives. -*Version requirement: rustc 1.0+* +*Version requirement: rustc 1.31+* [`io::Write`]: https://doc.rust-lang.org/std/io/trait.Write.html [`fmt::Write`]: https://doc.rust-lang.org/core/fmt/trait.Write.html