From e600c52c9d75e2158ab59e077591a9a8ee9dadbe Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Mon, 28 Oct 2024 22:29:35 +0100 Subject: [PATCH 1/3] Make 1.50.0 the MSRV (#9) --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8be61a2..2975aad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: os: [windows-latest, macos-latest, ubuntu-latest] - rust: [1.36.0, stable, beta, nightly] + rust: [1.50.0, stable, beta, nightly] fail-fast: false steps: From 6cb7148fad2da644d2d4f41750a02963d1c88dd6 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 29 Oct 2024 03:00:33 +0530 Subject: [PATCH 2/3] fix(osx): leaked CFDictionary object allocated by IORegistryEntryCreateCFProperties (#8) --- src/macos.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/macos.rs b/src/macos.rs index d6ffb81..c37aba4 100644 --- a/src/macos.rs +++ b/src/macos.rs @@ -39,6 +39,7 @@ pub fn enumerate_platform(vid: Option, pid: Option) -> Vec let properties: CFDictionary = CFMutableDictionary::wrap_under_get_rule(props).to_immutable(); + CFRelease(props.as_void_ptr()); let _ = || -> Result<(), Box> { let key = CFString::from_static_string("idVendor"); From 55ca6b960930719256f3a3edffee885bb51fc8c8 Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Mon, 28 Oct 2024 22:31:31 +0100 Subject: [PATCH 3/3] 0.2.1 release --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index dac9177..5ad5e99 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT" name = "usb_enumeration" readme = "README.md" repository = "https://github.com/meatysolutions/usb_enumeration" -version = "0.2.0" +version = "0.2.1" [lib] crate-type = ["lib"]