Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ on:
branches: [main]
jobs:
build-msrv:
name: Build on MSRV (1.66)
name: Build on MSRV (1.71)
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
rust: 1.66.0
rust: 1.71.0
- os: windows-latest
target: i686-pc-windows-msvc
rust: 1.66.0
rust: 1.71.0
runs-on: ${{ matrix.os }}
steps:
- name: Install rust
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: MSRV dependencies
if: matrix.rust == '1.66.0'
if: matrix.rust == '1.71.0'
run: make msrv-lock
- name: Check
env:
Expand All @@ -47,16 +47,16 @@ jobs:
rust: stable
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
rust: 1.66.0
rust: 1.71.0
- os: ubuntu-latest
target: i686-unknown-linux-gnu
rust: 1.66.0
rust: 1.71.0
- os: windows-latest
target: i686-pc-windows-msvc
rust: 1.66.0
rust: 1.71.0
- os: windows-latest
target: x86_64-pc-windows-msvc
rust: 1.66.0
rust: 1.71.0
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
rust: stable
Expand All @@ -80,7 +80,7 @@ jobs:
sudo apt-get update
sudo apt-get install gcc-multilib
- name: MSRV dependencies
if: matrix.rust == '1.66.0'
if: matrix.rust == '1.71.0'
run: make msrv-lock
- name: Test
env:
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
name = "console"
description = "A terminal and console abstraction for Rust"
version = "0.16.0"
version = "0.16.1"
keywords = ["cli", "terminal", "colors", "console", "ansi"]
license = "MIT"
edition = "2021"
homepage = "https://github.com/console-rs/console"
repository = "https://github.com/console-rs/console"
documentation = "https://docs.rs/console"
readme = "README.md"
rust-version = "1.66"
rust-version = "1.71"

[features]
default = ["unicode-width", "ansi-parsing", "std"]
Expand All @@ -27,7 +27,7 @@ unicode-width = { version = "0.2", optional = true }
encode_unicode = "1"

[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.60"
version = "0.61"
features = [
"Win32_Foundation",
"Win32_System_Console",
Expand Down
2 changes: 1 addition & 1 deletion src/ansi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ fn find_ansi_code_exclusive(it: &mut Peekable<CharIndices>) -> Option<(usize, us

/// Helper function to strip ansi codes.
#[cfg(feature = "alloc")]
pub fn strip_ansi_codes(s: &str) -> Cow<str> {
pub fn strip_ansi_codes(s: &str) -> Cow<'_, str> {
let mut char_it = s.char_indices().peekable();
match find_ansi_code_exclusive(&mut char_it) {
Some(_) => {
Expand Down
Loading