Skip to content

Commit

Permalink
Make crate MSVR 1.63 (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwittenborn committed Jul 5, 2023
1 parent d170bd2 commit 6b446bb
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
32 changes: 31 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,44 @@ on: pull_request
env: { CLICOLOR_FORCE: 1 }

jobs:
test:
cargo-fmt:
name: cargo-fmt@stable
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt
- name: Run formatting checks
run: cargo fmt --check
cargo-clippy:
name: cargo-clippy@stable
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy
- name: Run clippy checks
run: cargo clippy --all-features -- -D warnings
cargo-test:
name: cargo-test@${{ matrix.version }}
runs-on: ubuntu-latest
strategy:
matrix:
version: ["stable", "beta", "1.63"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust ${{ matrix.version }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.version }}
- name: Run tests
run: cargo test
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Unreleased

# 2.0.3
- Document crate MSRV of `1.63`.

# 2.0.2
- Fix typo in `src/control.rs`.
- Replace `atty` dependency with `is-terminal`.
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "colored"
description = "The most simple way to add colors in your terminal"
version = "2.0.2"
version = "2.0.3"
edition = "2021"
authors = ["Thomas Wickham <mackwic@gmail.com>"]
license = "MPL-2.0"
homepage = "https://github.com/mackwic/colored"
repository = "https://github.com/mackwic/colored"
readme = "README.md"
keywords = ["color", "string", "term", "ansi_term", "term-painter"]
rust-version = "1.63"

[features]
# with this feature, no color will ever be written
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ Thanks for the [ansi\_term crate](https://github.com/ogham/rust-ansi-term) for
providing a reference implementation, which greatly helped making this crate
output correct strings.

## Minimum Supported Rust Version (MSRV)
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`.

## License

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

0 comments on commit 6b446bb

Please sign in to comment.