Skip to content

Commit 1789015

Browse files
committed
Option to watch ELF for changes, or load when flashing ESP profile
1 parent 06b6e5e commit 1789015

9 files changed

Lines changed: 631 additions & 54 deletions

File tree

Cargo.lock

Lines changed: 117 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@ version = "0.1.0"
44
edition = "2024"
55

66
[features]
7-
default = ["macros","espflash","defmt"]
7+
default = ["macros", "espflash", "defmt_watch"]
88
# Allow flashing ESP32 targets with binary and ELF files
99
espflash = ["dep:espflash"]
1010
logging = []
11-
defmt = ["dep:defmt-decoder", "dep:defmt-parser", "dep:ratatui-explorer", "dep:md5"]
11+
defmt = [
12+
"dep:defmt-decoder",
13+
"dep:defmt-parser",
14+
"dep:ratatui-explorer",
15+
"dep:md5",
16+
"dep:notify",
17+
]
18+
defmt_watch = ["defmt", "dep:notify"]
1219
macros = []
1320
portable = []
1421

@@ -36,7 +43,9 @@ enum-rotate = "0.1.1"
3643
# enum_rotate = { path = "../enum-rotate" }
3744
# espflash = { version = "3.3.0", optional = true, features = ["serialport"] }
3845
# espflash = { path = "../espflash/espflash", optional = true, features = ["serialport"] }
39-
espflash = { git = "https://github.com/nullstalgia/espflash", branch = "public_verify_and_skip", optional = true, default-features = false, features = ["serialport"] }
46+
espflash = { git = "https://github.com/nullstalgia/espflash", branch = "public_verify_and_skip", optional = true, default-features = false, features = [
47+
"serialport",
48+
] }
4049
fs-err = "3.1.0"
4150
hex = "0.4.3"
4251
human-panic = "2.0.2"
@@ -48,6 +57,9 @@ libc = "0.2.169"
4857
md5 = { version = "0.8.0", optional = true }
4958
memchr = "2.7.4"
5059
nom = "7.1"
60+
notify = { version = "8.0.0", features = [
61+
"crossbeam-channel",
62+
], optional = true }
5163
num-integer = "0.1.46"
5264
# log = "0.4.25"
5365
# num_enum = "0.7.3"

0 commit comments

Comments
 (0)