Skip to content

Commit 6201b4e

Browse files
committed
style: Format toml files
1 parent a209152 commit 6201b4e

File tree

3 files changed

+36
-25
lines changed

3 files changed

+36
-25
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[workspace]
22
resolver = "2"
3-
members = ["cargo-espflash", "espflash"]
3+
members = ["cargo-espflash", "espflash"]
44

55
[profile.release]
6-
lto = "thin"
6+
lto = "thin"
77
strip = true

cargo-espflash/Cargo.toml

+19-14
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ name = "cargo-espflash"
33
version = "3.0.0"
44
edition = "2021"
55
rust-version = "1.74"
6-
description = "Cargo subcommand for flashing Espressif devices"
7-
repository = "https://github.com/esp-rs/espflash"
8-
license = "MIT OR Apache-2.0"
9-
keywords = ["cargo", "cli", "embedded", "esp"]
10-
categories = ["command-line-utilities", "development-tools", "development-tools::cargo-plugins", "embedded"]
6+
description = "Cargo subcommand for flashing Espressif devices"
7+
repository = "https://github.com/esp-rs/espflash"
8+
license = "MIT OR Apache-2.0"
9+
keywords = ["cargo", "cli", "embedded", "esp"]
10+
categories = [
11+
"command-line-utilities",
12+
"development-tools",
13+
"development-tools::cargo-plugins",
14+
"embedded",
15+
]
1116

1217
[package.metadata.binstall]
1318
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }.{ archive-format }"
@@ -16,15 +21,15 @@ pkg-fmt = "zip"
1621

1722
[dependencies]
1823
cargo_metadata = "0.18.1"
19-
clap = { version = "4.5.2", features = ["derive", "wrap_help"] }
20-
env_logger = "0.11.3"
21-
esp-idf-part = "0.5.0"
22-
espflash = { version = "3.0.0", path = "../espflash" }
23-
log = "0.4.21"
24-
miette = { version = "7.2.0", features = ["fancy"] }
25-
serde = { version = "1.0.197", features = ["derive"] }
26-
thiserror = "1.0.58"
27-
toml = "0.8.11"
24+
clap = { version = "4.5.2", features = ["derive", "wrap_help"] }
25+
env_logger = "0.11.3"
26+
esp-idf-part = "0.5.0"
27+
espflash = { version = "3.0.0", path = "../espflash" }
28+
log = "0.4.21"
29+
miette = { version = "7.2.0", features = ["fancy"] }
30+
serde = { version = "1.0.197", features = ["derive"] }
31+
thiserror = "1.0.58"
32+
toml = "0.8.11"
2833

2934
[target.'cfg(unix)'.dependencies]
3035
cargo = { version = "0.77.0", features = ["vendored-openssl"] }

espflash/Cargo.toml

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
2-
name = "espflash"
3-
version = "3.0.0"
4-
edition = "2021"
2+
name = "espflash"
3+
version = "3.0.0"
4+
edition = "2021"
55
rust-version = "1.74"
66
description = "A command-line tool for flashing Espressif devices"
77
repository = "https://github.com/esp-rs/espflash"
@@ -26,13 +26,19 @@ required-features = ["cli", "serialport"]
2626
addr2line = { version = "0.21.0", optional = true }
2727
base64 = "0.22.0"
2828
bytemuck = { version = "1.14.3", features = ["derive"] }
29-
clap = { version = "4.5.2", features = ["derive", "env", "wrap_help"], optional = true }
29+
clap = { version = "4.5.2", features = [
30+
"derive",
31+
"env",
32+
"wrap_help",
33+
], optional = true }
3034
clap_complete = { version = "4.5.1", optional = true }
3135
comfy-table = { version = "7.1.0", optional = true }
3236
crossterm = { version = "0.27.0", optional = true } # 0.26.x and 0.27.x causes issues on Windows
3337
ctrlc = { version = "3.4.4", optional = true }
3438
# defmt dependencies are pinned since defmt does not guarantee MSRV even for patch releases
35-
defmt-decoder = { version = "=0.3.10", features = ["unstable"], optional = true }
39+
defmt-decoder = { version = "=0.3.10", features = [
40+
"unstable",
41+
], optional = true }
3642
defmt-parser = { version = "=0.3.4", features = ["unstable"], optional = true }
3743
dialoguer = { version = "0.11.0", optional = true }
3844
directories = { version = "5.0.1", optional = true }
@@ -44,7 +50,7 @@ indicatif = { version = "0.17.8", optional = true }
4450
lazy_static = { version = "1.4.0", optional = true }
4551
log = "0.4.21"
4652
md-5 = "0.10.6"
47-
miette = { version = "7.2.0" }
53+
miette = "7.2.0"
4854
parse_int = { version = "0.6.0", optional = true }
4955
regex = { version = "1.10.3", optional = true }
5056
serde = { version = "1.0.197", features = ["derive"] }
@@ -55,7 +61,7 @@ strum = { version = "0.26.2", features = ["derive"] }
5561
thiserror = "1.0.58"
5662
toml = { version = "0.8.11", optional = true }
5763
update-informer = { version = "1.1.0", optional = true }
58-
xmas-elf = { version = "0.9.1" }
64+
xmas-elf = "0.9.1"
5965

6066
[target.'cfg(unix)'.dependencies]
6167
libc = "0.2.153"
@@ -80,9 +86,9 @@ cli = [
8086
"dep:parse_int",
8187
"dep:toml",
8288
"dep:update-informer",
89+
"miette/fancy",
8390
"serialport",
84-
"miette/fancy"
8591
]
8692

8793
# enables connecting to a device via serial port
88-
serialport = ["dep:serialport", "dep:slip-codec", "dep:regex", "dep:toml"]
94+
serialport = ["dep:regex", "dep:serialport", "dep:slip-codec", "dep:toml"]

0 commit comments

Comments
 (0)