Skip to content

Commit 8da81e0

Browse files
committed
Add an MSRV check to the CI
closes tafia#479
1 parent 7efd921 commit 8da81e0

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/rust.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ jobs:
1010
- name: Check fmt
1111
run: cargo fmt -- --check
1212

13+
msrv:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: dtolnay/[email protected]
18+
- run: cargo check
19+
1320
test:
1421
strategy:
1522
matrix:

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ repository = "https://github.com/tafia/quick-xml"
1010
keywords = ["xml", "serde", "parser", "writer", "html"]
1111
categories = ["asynchronous", "encoding", "parsing", "parser-implementations"]
1212
license = "MIT"
13+
rust-version = "1.54"
1314

1415
[dependencies]
1516
document-features = { version = "0.2", optional = true }
1617
encoding_rs = { version = "0.8", optional = true }
17-
serde = { version = "1.0", optional = true }
18-
tokio = { version = "1.21", optional = true, default-features = false, features = ["io-util"] }
19-
memchr = "2.5"
18+
serde = { version = "1.0.100", optional = true }
19+
tokio = { version = "1.0", optional = true, default-features = false, features = ["io-util"] }
20+
memchr = "2.0"
2021

2122
[dev-dependencies]
2223
criterion = "0.4"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![Crate](https://img.shields.io/crates/v/quick-xml.svg)](https://crates.io/crates/quick-xml)
55
[![docs.rs](https://docs.rs/quick-xml/badge.svg)](https://docs.rs/quick-xml)
66
[![codecov](https://img.shields.io/codecov/c/github/tafia/quick-xml)](https://codecov.io/gh/tafia/quick-xml)
7+
[![MSRV](https://img.shields.io/badge/rustc-1.54+-ab6000.svg)](https://blog.rust-lang.org/2021/07/29/Rust-1.54.0.html)
78

89
High performance xml pull reader/writer.
910

0 commit comments

Comments
 (0)