From 70982c1719d8c302cee3092fb7db2200391ba4e9 Mon Sep 17 00:00:00 2001 From: Georg Semmler Date: Tue, 16 Dec 2025 15:02:15 +0100 Subject: [PATCH 1/3] Exclude development scripts from published package During a dependency review we noticed that the commit crate includes various development scripts. These development scripts shouldn't be there as they might, at some point become problematic. As of now they prevent any downstream user from enabling the `[bans.build.interpreted]` option of cargo deny. I opted for using an explicit include list instead of an exclude list to prevent these files from being included in the published packages to make sure that everything that's included is an conscious choice. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 814d362f..cd8b00d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ repository = "https://github.com/console-rs/console" documentation = "https://docs.rs/console" readme = "README.md" rust-version = "1.71" +include = ["CHANGELOG.md", "Cargo.toml", "LICENSE", "README.md", "src/**/*.rs"] [features] default = ["unicode-width", "ansi-parsing", "std"] From ec9e38b145ce8b1bfdbec76fb8089e7067141924 Mon Sep 17 00:00:00 2001 From: Georg Semmler Date: Tue, 16 Dec 2025 15:06:42 +0100 Subject: [PATCH 2/3] Fix clippy warnings --- src/ansi.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/ansi.rs b/src/ansi.rs index d13d16e9..09239be4 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -6,8 +6,9 @@ use core::{ str::CharIndices, }; -#[derive(Debug, Clone, Copy)] +#[derive(Debug, Clone, Copy, Default)] enum State { + #[default] Start, S1, S2, @@ -23,12 +24,6 @@ enum State { Trap, } -impl Default for State { - fn default() -> Self { - Self::Start - } -} - impl State { fn is_final(&self) -> bool { #[allow(clippy::match_like_matches_macro)] From dd141ff58bd16d809a287292dc576c8bedc839be Mon Sep 17 00:00:00 2001 From: Georg Semmler Date: Tue, 16 Dec 2025 15:46:24 +0100 Subject: [PATCH 3/3] Bump version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index cd8b00d4..6649f616 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "console" description = "A terminal and console abstraction for Rust" -version = "0.16.1" +version = "0.16.2" keywords = ["cli", "terminal", "colors", "console", "ansi"] license = "MIT" edition = "2021"