From 4050e03325997ac33a0b45c5fd8f2fef4550b373 Mon Sep 17 00:00:00 2001 From: Christian Meusel Date: Sun, 1 Dec 2024 16:24:12 +0100 Subject: [PATCH 1/3] Pin libc as a sub dependency of clap for MSRV 1.59.0 --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index b7d0af2d..66cedfbd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,6 +44,11 @@ serde = { version = "1.0", features = ["derive"], optional = true } assert_hex = "0.4.1" clap = { version = "3.1.6", features = ["derive"] } envconfig = "0.10.0" +# TODES Remove pinning this subdependency (of clap) when we are bumping our +# MSRV (libc raised its MSRV with a patch release 0.2.167 from 1.19.0 to +# 1.63.0). Trick the resolver into picking a compatible release of libc by +# adding it as a direct dependency meanwhile. +libc = ">=0.2.0, <=0.2.163" # TODO: Remove pinning this subdependency of clap when we are bumping our MSRV. # (There has been an incompatible change with the MSRV of os_str_bytes with # 6.6.0) Until then we are tricking the dependency resolver into using a From e93aedc0b5e98728acaede33d24b516fb15c5944 Mon Sep 17 00:00:00 2001 From: Christian Meusel Date: Sun, 1 Dec 2024 16:57:21 +0100 Subject: [PATCH 2/3] Allow successor to Unicode DFS license --- deny.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/deny.toml b/deny.toml index f28316d1..8699a5ce 100644 --- a/deny.toml +++ b/deny.toml @@ -81,6 +81,7 @@ allow = [ "BSD-2-Clause", "MIT", "MPL-2.0", + "Unicode-3.0", "Unicode-DFS-2016", ] # The confidence threshold for detecting a license from license text. From c2d0c9d097d6aaa351b0c747a5bd6b498b55fd09 Mon Sep 17 00:00:00 2001 From: Christian Meusel Date: Sun, 1 Dec 2024 17:26:35 +0100 Subject: [PATCH 3/3] Add pining sub dependency libc to changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba3d385e..30ff094d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ project adheres to [Semantic Versioning](https://semver.org/). ### Added ### Changed ### Fixed + +* Pin subdependeny `libc` to maintain compatibility with MSRV 1.59.0. + [#229](https://github.com/serialport/serialport-rs/pull/229) + ### Removed