Skip to content

Commit

Permalink
Make the libudev dependency optional (#709)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergio Gasquez Arcos <[email protected]>
  • Loading branch information
ivmarkov and SergioGasquez authored Dec 19, 2024
1 parent 523eedc commit cc26a69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` (#709)
- Address Clippy lints (#710)

### Changed
Expand Down
5 changes: 3 additions & 2 deletions espflash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand All @@ -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",
Expand Down

0 comments on commit cc26a69

Please sign in to comment.