From 61c3673f80752e0104e04d092b49d90f8f7b1d02 Mon Sep 17 00:00:00 2001 From: Daniel Alley Date: Sat, 17 Sep 2022 23:10:42 -0400 Subject: [PATCH] Add an MSRV check to the CI closes #479 --- .github/workflows/rust.yml | 7 +++++++ Cargo.toml | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1f4869b6..12b50f15 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,6 +10,13 @@ jobs: - name: Check fmt run: cargo fmt -- --check + msrv: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@1.56 + - run: cargo check --all-features + test: strategy: matrix: diff --git a/Cargo.toml b/Cargo.toml index 90ee1fcd..94ef4405 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,13 +10,14 @@ repository = "https://github.com/tafia/quick-xml" keywords = ["xml", "serde", "parser", "writer", "html"] categories = ["asynchronous", "encoding", "parsing", "parser-implementations"] license = "MIT" +rust_version = "1.54" [dependencies] document-features = { version = "0.2", optional = true } encoding_rs = { version = "0.8", optional = true } -serde = { version = "1.0", optional = true } -tokio = { version = "1.21", optional = true, default-features = false, features = ["io-util"] } -memchr = "2.5" +serde = { version = "^1.0.100", optional = true } +tokio = { version = "^1.0", optional = true, default-features = false, features = ["io-util"] } +memchr = "^2.0" [dev-dependencies] criterion = "0.4"