Skip to content

Commit 6b446bb

Browse files
authored
Make crate MSVR 1.63 (#146)
1 parent d170bd2 commit 6b446bb

File tree

4 files changed

+39
-2
lines changed

4 files changed

+39
-2
lines changed

.github/workflows/test.yml

+31-1
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,44 @@ on: pull_request
33
env: { CLICOLOR_FORCE: 1 }
44

55
jobs:
6-
test:
6+
cargo-fmt:
7+
name: cargo-fmt@stable
78
runs-on: ubuntu-latest
89
steps:
910
- name: Checkout repository
1011
uses: actions/checkout@v3
12+
- name: Install Rust stable
13+
uses: dtolnay/rust-toolchain@master
14+
with:
15+
toolchain: stable
16+
components: rustfmt
1117
- name: Run formatting checks
1218
run: cargo fmt --check
19+
cargo-clippy:
20+
name: cargo-clippy@stable
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v3
25+
- name: Install Rust stable
26+
uses: dtolnay/rust-toolchain@master
27+
with:
28+
toolchain: stable
29+
components: clippy
1330
- name: Run clippy checks
1431
run: cargo clippy --all-features -- -D warnings
32+
cargo-test:
33+
name: cargo-test@${{ matrix.version }}
34+
runs-on: ubuntu-latest
35+
strategy:
36+
matrix:
37+
version: ["stable", "beta", "1.63"]
38+
steps:
39+
- name: Checkout repository
40+
uses: actions/checkout@v3
41+
- name: Install Rust ${{ matrix.version }}
42+
uses: dtolnay/rust-toolchain@master
43+
with:
44+
toolchain: ${{ matrix.version }}
1545
- name: Run tests
1646
run: cargo test

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Unreleased
22

3+
# 2.0.3
4+
- Document crate MSRV of `1.63`.
5+
36
# 2.0.2
47
- Fix typo in `src/control.rs`.
58
- Replace `atty` dependency with `is-terminal`.

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
[package]
22
name = "colored"
33
description = "The most simple way to add colors in your terminal"
4-
version = "2.0.2"
4+
version = "2.0.3"
55
edition = "2021"
66
authors = ["Thomas Wickham <[email protected]>"]
77
license = "MPL-2.0"
88
homepage = "https://github.com/mackwic/colored"
99
repository = "https://github.com/mackwic/colored"
1010
readme = "README.md"
1111
keywords = ["color", "string", "term", "ansi_term", "term-painter"]
12+
rust-version = "1.63"
1213

1314
[features]
1415
# with this feature, no color will ever be written

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ Thanks for the [ansi\_term crate](https://github.com/ogham/rust-ansi-term) for
138138
providing a reference implementation, which greatly helped making this crate
139139
output correct strings.
140140

141+
## Minimum Supported Rust Version (MSRV)
142+
The current MSRV is `1.63`, which is checked and enforced automatically via CI. This version may change in the future in minor version bumps, so if you require a specific Rust version you should use a restricted version requirement such as `~X.Y`.
143+
141144
## License
142145

143146
[Mozilla Public License 2.0](https://www.mozilla.org/en-US/MPL/2.0/). See the

0 commit comments

Comments
 (0)