Skip to content

Commit f7adce8

Browse files
committed
Reformat all Cargo.toml files
Keys are now sorted, and all one-liners.
1 parent b423208 commit f7adce8

File tree

4 files changed

+70
-80
lines changed

4 files changed

+70
-80
lines changed

on-target-tests/Cargo.toml

Lines changed: 26 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,69 @@
11
[package]
2+
authors = ["The rp-rs Developers"]
3+
description = "Test cases that run on an RP2040"
24
edition = "2021"
5+
license = "MIT OR Apache-2.0"
36
name = "on-target-tests"
4-
version = "0.1.0"
57
publish = false
8+
readme = "README.md"
9+
repository = "https://github.com/rp-rs/rp-hal"
10+
version = "0.1.0"
611

712
[[test]]
8-
name = "dma_m2m_u8"
913
harness = false
14+
name = "dma_m2m_u8"
1015

1116
[[test]]
12-
name = "dma_m2m_u16"
1317
harness = false
18+
name = "dma_m2m_u16"
1419

1520
[[test]]
16-
name = "dma_m2m_u32"
1721
harness = false
22+
name = "dma_m2m_u32"
1823

1924
[[test]]
20-
name = "dma_spi_loopback_u8"
2125
harness = false
26+
name = "dma_spi_loopback_u8"
2227

2328
[[test]]
24-
name = "dma_spi_loopback_u16"
2529
harness = false
30+
name = "dma_spi_loopback_u16"
2631

2732
[[test]]
28-
name = "dma_dyn"
2933
harness = false
34+
name = "dma_dyn"
3035

3136
[[test]]
32-
name = "i2c_loopback"
3337
harness = false
38+
name = "i2c_loopback"
3439

3540
[[test]]
36-
name = "i2c_loopback_async"
3741
harness = false
42+
name = "i2c_loopback_async"
3843

3944
[[test]]
40-
name = "gpio"
4145
harness = false
46+
name = "gpio"
4247

4348
[dependencies]
4449
cortex-m = "0.7"
4550
cortex-m-rt = "0.7"
46-
embedded_hal_0_2 = { package = "embedded-hal", version = "0.2.5", features = [
47-
"unproven",
48-
] }
49-
embedded-hal = "1.0.0"
50-
embedded-hal-async = "1.0.0"
51-
51+
critical-section = "1.0.0"
5252
defmt = "0.3"
5353
defmt-rtt = "0.4"
5454
defmt-test = "0.3.1"
55-
panic-probe = { version = "0.3", features = ["print-defmt"] }
56-
57-
rp2040-hal = { path = "../rp2040-hal", features = [
58-
"critical-section-impl",
59-
"defmt",
60-
"rt",
61-
"i2c-write-iter",
62-
] }
63-
# Needed to set spi frequencies
55+
embedded-hal = "1.0.0"
56+
embedded-hal-async = "1.0.0"
57+
embedded_hal_0_2 = {package = "embedded-hal", version = "0.2.5", features = ["unproven"]}
6458
fugit = "0.3.6"
65-
59+
futures = {version = "0.3.30", default-features = false, features = ["async-await"]}
60+
heapless = {version = "0.8.0", features = ["portable-atomic-critical-section", "defmt-03"]}
61+
i2c-write-iter = {version = "1.0.0", features = ["async"]}
62+
itertools = {version = "0.12.0", default-features = false}
63+
nostd_async = {version = "0.6.1", features = ["wfe"]}
64+
panic-probe = {version = "0.3", features = ["print-defmt"]}
6665
rp2040-boot2 = "0.3.0"
67-
critical-section = "1.0.0"
68-
heapless = { version = "0.8.0", features = [
69-
"portable-atomic-critical-section",
70-
"defmt-03",
71-
] }
72-
# - `wfe`: we may want to signal between cores with sev
73-
# - `wfe` implies `cortex-m`
74-
nostd_async = { version = "0.6.1", features = ["wfe"] }
75-
futures = { version = "0.3.30", default-features = false, features = [
76-
"async-await",
77-
] }
78-
i2c-write-iter = { version = "1.0.0", features = ["async"] }
79-
itertools = { version = "0.12.0", default-features = false }
66+
rp2040-hal = {path = "../rp2040-hal", features = ["critical-section-impl", "defmt", "rt", "i2c-write-iter"]}
8067

8168
[profile.dev]
8269
codegen-units = 1

rp2040-hal-examples/Cargo.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
[package]
2-
name = "rp2040-hal-examples"
3-
version = "0.1.0"
4-
edition = "2021"
52
authors = ["The rp-rs Developers"]
6-
homepage = "https://github.com/rp-rs/rp-hal"
3+
categories = ["embedded", "hardware-support", "no-std", "no-std::no-alloc"]
74
description = "Examples for the rp2040-hal crate"
5+
edition = "2021"
6+
homepage = "https://github.com/rp-rs/rp-hal"
7+
keywords = ["embedded", "hal", "raspberry-pi", "rp2040", "embedded-hal"]
88
license = "MIT OR Apache-2.0"
9-
rust-version = "1.77"
9+
name = "rp2040-hal-examples"
1010
repository = "https://github.com/rp-rs/rp-hal"
11-
categories = ["embedded", "hardware-support", "no-std", "no-std::no-alloc"]
12-
keywords = ["embedded", "hal", "raspberry-pi", "rp2040", "embedded-hal"]
11+
rust-version = "1.77"
12+
version = "0.1.0"
1313

1414
[dependencies]
1515
cortex-m = "0.7.2"
1616
cortex-m-rt = "0.7"
1717
cortex-m-rtic = "1.1.4"
18-
critical-section = { version = "1.0.0" }
18+
critical-section = {version = "1.0.0"}
1919
defmt = "0.3"
2020
defmt-rtt = "0.4.0"
2121
dht-sensor = "0.2.1"
22-
embedded_hal_0_2 = { package = "embedded-hal", version = "0.2.5", features = ["unproven"] }
2322
embedded-alloc = "0.5.1"
2423
embedded-hal = "1.0.0"
2524
embedded-hal-async = "1.0.0"
25+
embedded_hal_0_2 = {package = "embedded-hal", version = "0.2.5", features = ["unproven"]}
2626
fugit = "0.3.6"
27-
futures = { version = "0.3.30", default-features = false, features = ["async-await"] }
27+
futures = {version = "0.3.30", default-features = false, features = ["async-await"]}
2828
hd44780-driver = "0.4.0"
2929
nb = "1.0"
30-
nostd_async = { version = "0.6.1", features = ["cortex_m"] }
30+
nostd_async = {version = "0.6.1", features = ["cortex_m"]}
3131
panic-halt = "0.2.0"
32-
panic-probe = { version = "0.3.1", features = ["print-defmt"] }
32+
panic-probe = {version = "0.3.1", features = ["print-defmt"]}
3333
pio = "0.2.0"
3434
pio-proc = "0.2.0"
3535
rp2040-boot2 = "0.3.0"
36-
rp2040-hal = { path = "../rp2040-hal", version = "0.10.0", features = ["binary-info", "critical-section-impl", "rt", "defmt"] }
36+
rp2040-hal = {path = "../rp2040-hal", version = "0.10.0", features = ["binary-info", "critical-section-impl", "rt", "defmt"]}

rp2040-hal-macros/Cargo.toml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
[package]
2+
authors = ["The rp-rs Developers"]
23
description = "Macros used by rp2040-hal"
4+
edition = "2021"
35
license = "MIT OR Apache-2.0"
46
name = "rp2040-hal-macros"
57
readme = "README.md"
6-
version = "0.1.0"
7-
edition = "2021"
88
repository = "https://github.com/rp-rs/rp-hal"
9-
authors = ["The rp-rs Developers"]
9+
version = "0.1.0"
1010

1111
[lib]
1212
proc-macro = true
1313

1414
[dependencies]
15-
quote = "1.0"
1615
proc-macro2 = "1.0"
17-
18-
[dependencies.syn]
19-
features = ["full"]
20-
version = "2.0"
21-
16+
quote = "1.0"
17+
syn = {version = "2.0", features = ["full"]}

rp2040-hal/Cargo.toml

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[package]
2-
name = "rp2040-hal"
3-
version = "0.10.0"
42
authors = ["The rp-rs Developers"]
3+
categories = ["embedded", "hardware-support", "no-std", "no-std::no-alloc"]
4+
description = "A Rust Embedded-HAL impl for the rp2040 microcontroller"
55
edition = "2021"
66
homepage = "https://github.com/rp-rs/rp-hal"
7-
description = "A Rust Embedded-HAL impl for the rp2040 microcontroller"
7+
keywords = ["embedded", "hal", "raspberry-pi", "rp2040", "embedded-hal"]
88
license = "MIT OR Apache-2.0"
9-
rust-version = "1.77"
9+
name = "rp2040-hal"
1010
repository = "https://github.com/rp-rs/rp-hal"
11-
categories = ["embedded", "hardware-support", "no-std", "no-std::no-alloc"]
12-
keywords = ["embedded", "hal", "raspberry-pi", "rp2040", "embedded-hal"]
11+
rust-version = "1.77"
12+
version = "0.10.0"
1313

1414
[package.metadata.docs.rs]
1515
features = ["rt", "rom-v2-intrinsics", "defmt", "rtic-monotonic"]
@@ -18,35 +18,42 @@ targets = ["thumbv6m-none-eabi"]
1818
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1919

2020
[dependencies]
21-
bitfield = { version = "0.14.0" }
22-
chrono = { version = "0.4", default-features = false, optional = true }
21+
# Non-optional dependencies. Keep these sorted by name.
22+
bitfield = {version = "0.14.0"}
2323
cortex-m = "0.7.2"
24-
critical-section = { version = "1.0.0" }
25-
defmt = { version = ">=0.2.0, <0.4", optional = true }
26-
embedded_hal_0_2 = { package = "embedded-hal", version = "0.2.5", features = ["unproven"] }
24+
critical-section = {version = "1.0.0"}
2725
embedded-dma = "0.2.0"
2826
embedded-hal = "1.0.0"
2927
embedded-hal-async = "1.0.0"
3028
embedded-hal-nb = "1.0.0"
3129
embedded-io = "0.6.1"
32-
frunk = { version = "0.4.1", default-features = false }
30+
embedded_hal_0_2 = {package = "embedded-hal", version = "0.2.5", features = ["unproven"]}
31+
frunk = {version = "0.4.1", default-features = false}
3332
fugit = "0.3.6"
34-
i2c-write-iter = { version = "1.0.0", features = ["async"], optional = true }
35-
itertools = { version = "0.10.1", default-features = false }
33+
itertools = {version = "0.10.1", default-features = false}
3634
nb = "1.0"
3735
paste = "1.0"
3836
pio = "0.2.0"
3937
rand_core = "0.6.3"
40-
rp2040-hal-macros = { version = "0.1.0", path = "../rp2040-hal-macros" }
41-
rp2040-pac = { version = "0.6.0", features = ["critical-section"] }
42-
rtic-monotonic = { version = "1.0.0", optional = true }
38+
rp2040-hal-macros = {version = "0.1.0", path = "../rp2040-hal-macros"}
39+
rp2040-pac = {version = "0.6.0", features = ["critical-section"]}
4340
usb-device = "0.3"
4441
vcell = "0.1"
45-
void = { version = "1.0.2", default-features = false }
42+
void = {version = "1.0.2", default-features = false}
43+
44+
# Optional dependencies. Keep these sorted by name.
45+
chrono = {version = "0.4", default-features = false, optional = true}
46+
defmt = {version = ">=0.2.0, <0.4", optional = true}
47+
i2c-write-iter = {version = "1.0.0", features = ["async"], optional = true}
48+
rtic-monotonic = {version = "1.0.0", optional = true}
4649

4750
[dev-dependencies]
51+
# Non-optional dependencies. Keep these sorted by name.
4852
pio-proc = "0.2.0"
49-
rand = { version = "0.8.5", default-features = false }
53+
rand = {version = "0.8.5", default-features = false}
54+
55+
# Optional dependencies. Keep these sorted by name.
56+
# None
5057

5158
[features]
5259
# Minimal startup / runtime for Cortex-M microcontrollers

0 commit comments

Comments
 (0)