Skip to content

Commit cc26a69

Browse files
Make the libudev dependency optional (#709)
Co-authored-by: Sergio Gasquez Arcos <[email protected]>
1 parent 523eedc commit cc26a69

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Allow `partition_table_offset` to be specified in the config file. (for #699)
1313
- Support external log-processors (#705)
14+
- Make the `libudev` dependency optional with a new - enabled by default - feature: `libudev` (#709)
1415
- Address Clippy lints (#710)
1516

1617
### Changed

espflash/Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ miette = "7.2.0"
5454
parse_int = { version = "0.6.0", optional = true }
5555
regex = { version = "1.11.0", optional = true }
5656
serde = { version = "1.0.210", features = ["derive"] }
57-
serialport = { version = "4.6.0", optional = true }
57+
serialport = { version = "4.6.0", default-features = false, optional = true }
5858
sha2 = "0.10.8"
5959
slip-codec = { version = "0.4.0", optional = true }
6060
strum = { version = "0.26.3", features = ["derive"] }
@@ -67,7 +67,8 @@ xmas-elf = "0.9.1"
6767
libc = "0.2.159"
6868

6969
[features]
70-
default = ["cli"]
70+
default = ["cli", "libudev"]
71+
libudev = ["serialport?/libudev"]
7172
cli = [
7273
"dep:addr2line",
7374
"dep:clap",

0 commit comments

Comments
 (0)