Skip to content

Commit ce6d0e9

Browse files
committed
remove unused dependencies & add GHA flow
1 parent 3261ecc commit ce6d0e9

File tree

6 files changed

+23
-23
lines changed

6 files changed

+23
-23
lines changed

.github/workflows/build_and_test.yml

+21-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ on: [push, pull_request]
22
name: Build and Test check
33
jobs:
44
builds:
5-
name: "Build checks"
5+
name: Build checks
66
runs-on: ubuntu-20.04
77
strategy:
88
matrix:
@@ -16,26 +16,41 @@ jobs:
1616
target: thumbv6m-none-eabi
1717
override: true
1818
profile: minimal
19-
- name: "Build workspace"
19+
- name: Build workspace
2020
uses: actions-rs/cargo@v1
2121
with:
2222
command: build
2323
args: ${{ matrix.mode }} --workspace ${{ matrix.features }}
24-
- name: "Build workspace and examples"
24+
- name: Build workspace and examples
2525
uses: actions-rs/cargo@v1
2626
with:
2727
command: build
2828
args: ${{ matrix.mode }} --workspace --examples ${{ matrix.features }}
29-
- name: "List built examples and clean"
29+
- name: List built examples and clean
3030
run: rm -vrf target/thumbv6m-none-eabi/*/examples/* | sed -e "s/removed '\(.*\)'/\1/" | xargs -l basename | grep -Ev '(-|\.d)'
31-
- name: "Test"
31+
- name: Test
3232
uses: actions-rs/cargo@v1
3333
with:
3434
command: test
3535
args: --tests --target x86_64-unknown-linux-gnu ${{ matrix.features }}
36-
- name: "Test docs"
36+
- name: Test docs
3737
uses: actions-rs/cargo@v1
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+
target: thumbv6m-none-eabi
49+
override: true
50+
profile: minimal
51+
- name: Check unused deps
52+
uses: aig787/cargo-udeps-action@v1
53+
with:
54+
version: latest
55+
args: ${{ matrix.mode }} --workspace ${{ matrix.features }}
4156

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

2120
[dev-dependencies]
2221
panic-halt= "0.2.0"

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
fugit = "0.3.5"
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
fugit = "0.3.5"
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.4.0"
30-
heapless = "0.7.9"
3126
smart-leds = "0.3.0"
3227
ws2812-pio = "0.4.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)