Skip to content

Commit 7693758

Browse files
committedAug 23, 2022
remove unused dependencies & add GHA flow
1 parent 6ef6838 commit 7693758

File tree

6 files changed

+21
-17
lines changed

6 files changed

+21
-17
lines changed
 

‎.github/workflows/build_and_test.yml

+19
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,23 @@ jobs:
3838
with:
3939
command: test
4040
args: --doc --target x86_64-unknown-linux-gnu ${{ matrix.features }}
41+
- name: "Clean"
42+
uses: actions-rs/cargo@v1
43+
with:
44+
command: clean
45+
- uses: actions-rs/toolchain@v1
46+
with:
47+
toolchain: nightly
48+
override: true
49+
profile: minimal
50+
- name: "Install cargo-udeps"
51+
uses: actions-rs/install@v0.1
52+
with:
53+
crate: cargo-udeps
54+
version: latest
55+
- name: "check unused deps"
56+
uses: actions-rs/cargo@v1
57+
with:
58+
command: udeps
59+
args: ${{ matrix.mode }} --workspace ${{ matrix.features }}
4160

‎boards/arduino_nano_connect/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ rp2040-boot2 = { version = "0.2.0", optional = true }
1616
rp2040-hal = { path = "../../rp2040-hal", version = "0.5.0" }
1717
cortex-m-rt = { version = "0.7.0", optional = true }
1818
embedded-hal = { version = "0.2.4", features = ["unproven"] }
19-
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
2019
embedded-time = "0.12.0"
2120

2221
[dev-dependencies]

‎boards/pimoroni-badger2040/Cargo.toml

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ embedded-hal ="0.2.5"
2121
[dev-dependencies]
2222
panic-halt= "0.2.0"
2323
nb = "1.0"
24-
embedded-graphics = "0.7.1"
25-
26-
defmt = "0.3.0"
27-
defmt-rtt = "0.3.0"
2824

2925
[features]
3026
default = ["boot2", "rt"]

‎boards/rp-pico/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ rp2040-hal = { path = "../../rp2040-hal", version = "0.5.0" }
1717
cortex-m-rt = { version = "0.7", optional = true }
1818
embedded-time = "0.12.0"
1919
usb-device= "0.2.9"
20-
usbd-serial = "0.1.1"
21-
usbd-hid = "0.5.1"
2220
futures = { version = "0.3", default-features = false, optional = true }
2321

2422
[dev-dependencies]
@@ -38,6 +36,8 @@ hd44780-driver = "0.4.0"
3836
pio = "0.2.0"
3937
pio-proc = "0.2.1"
4038
critical-section = "1.0.0"
39+
usbd-serial = "0.1.1"
40+
usbd-hid = "0.5.1"
4141

4242
defmt = "0.3.0"
4343
defmt-rtt = "0.3.0"

‎boards/vcc-gnd-yd-rp2040/Cargo.toml

-9
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,15 @@ rp2040-hal = { path = "../../rp2040-hal", version = "0.5.0" }
1717
cortex-m-rt = { version = "0.7", optional = true }
1818
embedded-time = "0.12.0"
1919
usb-device= "0.2.9"
20-
usbd-serial = "0.1.1"
21-
usbd-hid = "0.5.1"
2220
futures = { version = "0.3", default-features = false, optional = true }
2321

2422
[dev-dependencies]
2523
panic-halt= "0.2.0"
2624
embedded-hal ="0.2.5"
27-
cortex-m-rtic = "1.1.2"
2825
nb = "1.0"
29-
i2c-pio = "0.3.0"
30-
heapless = "0.7.9"
3126
smart-leds = "0.3.0"
3227
ws2812-pio = "0.3.0"
33-
ssd1306 = "0.7.0"
34-
embedded-graphics = "0.7.1"
35-
hd44780-driver = "0.4.0"
3628
pio = "0.2.0"
37-
pio-proc = "0.2.1"
3829

3930
[features]
4031
default = ["boot2", "rt"]

‎rp2040-hal-macros/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ proc-macro = true
1212
[dependencies]
1313
quote = "1.0"
1414
proc-macro2 = "1.0"
15-
cortex-m-rt = "0.7.0"
1615

1716
[dependencies.syn]
1817
features = ["extra-traits", "full"]

0 commit comments

Comments
 (0)