Skip to content

Commit

Permalink
build: Lower MSRV to 1.71.1
Browse files Browse the repository at this point in the history
This project builds successfully with the MSRV of `pulldown-cmark`. Therefore we can lower `rust-version` to 1.71.1.

Add documentation for the current MSRV and that this project follows MSRV policy of `pulldown-cmark`.

Use `cargo hack` for MSRV CI job, to automatically install rustc according to `rust-version` and then execute `cargo check`.
  • Loading branch information
caspermeijn committed Aug 22, 2024
1 parent c6899bc commit 21a7f26
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@cargo-no-dev-deps
- uses: dtolnay/rust-toolchain@1.79.0
- run: cargo no-dev-deps check
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack --rust-version --no-dev-deps check
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ documentation = "https://docs.rs/crate/pulldown-cmark-to-cmark"
readme = "README.md"
edition = "2018"
include = ["src/*.rs", "LICENSE-APACHE", "README.md", "CHANGELOG.md"]
rust-version = "1.79.0"
rust-version = "1.71.1"

[dependencies]
pulldown-cmark = { version = "0.12.0", default-features = false }
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ cargo add pulldown-cmark-to-cmark
[sc-example]: https://github.com/Byron/pulldown-cmark-to-cmark/blob/76667725b61be24890fbdfed5e7ecdb4c1ad1dc8/examples/stupicat.rs#L21
[api]: https://docs.rs/crate/pulldown-cmark-to-cmark

### Supported Rust Versions

`pulldown-cmark-to-cmark` follows the MSRV (minimum supported rust version) policy of [`pulldown-cmark`]. The current MSRV is 1.71.1.

[`pulldown-cmark`]: https://github.com/pulldown-cmark/pulldown-cmark

### Friends of this project

* [**termbook**](https://github.com/Byron/termbook)
Expand Down

0 comments on commit 21a7f26

Please sign in to comment.