From b4818b2ff093764c13376334456680e227c076bc Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Thu, 19 Dec 2024 13:11:44 +0000 Subject: [PATCH] Make the libudev dependency optional --- CHANGELOG.md | 1 + espflash/Cargo.toml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd0a1b93..cad56412 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Allow `partition_table_offset` to be specified in the config file. (for #699) - Support external log-processors (#705) +- Make the `libudev` dependency optional with a new - enabled by default - feature: `libudev` ### Changed diff --git a/espflash/Cargo.toml b/espflash/Cargo.toml index 9d8eb861..6d98c9f3 100644 --- a/espflash/Cargo.toml +++ b/espflash/Cargo.toml @@ -54,7 +54,7 @@ miette = "7.2.0" parse_int = { version = "0.6.0", optional = true } regex = { version = "1.11.0", optional = true } serde = { version = "1.0.210", features = ["derive"] } -serialport = { version = "4.6.0", optional = true } +serialport = { version = "4.6.0", default-features = false, optional = true } sha2 = "0.10.8" slip-codec = { version = "0.4.0", optional = true } strum = { version = "0.26.3", features = ["derive"] } @@ -67,7 +67,8 @@ xmas-elf = "0.9.1" libc = "0.2.159" [features] -default = ["cli"] +default = ["cli", "libudev"] +libudev = ["serialport?/libudev"] cli = [ "dep:addr2line", "dep:clap",