Skip to content

Commit d691e75

Browse files
Merge pull request #65 from FrameworkComputer/workspace-dependencies
2 parents a04651c + f9e4e83 commit d691e75

File tree

5 files changed

+97
-79
lines changed

5 files changed

+97
-79
lines changed

Cargo.toml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,31 @@ members = [
1919
# target. But we set the default target to thumbv6m-none-eabi
2020
default-members = ["fl16-inputmodules"]
2121

22-
#[patch.'https://github.com/rp-rs/rp-hal.git']
23-
#rp2040-hal = { path = "./rp2040-hal" }
24-
#
25-
#[patch.crates-io]
26-
#rp2040-hal = { path = "./rp2040-hal" }
22+
[workspace.dependencies]
23+
cortex-m = "0.7"
24+
cortex-m-rt = "0.7.3"
25+
embedded-hal = { version = "0.2.7", features = ["unproven"] }
26+
panic-probe = { version = "0.3", features = ["print-defmt"] }
27+
rp2040-panic-usb-boot = "0.5.0"
28+
rp2040-hal = { version = "0.8", features = ["rt", "critical-section-impl"] }
29+
rp2040-boot2 = "0.3"
30+
defmt = "0.3"
31+
defmt-rtt = "0.4"
32+
# USB Serial
33+
usb-device = "0.2.9"
34+
heapless = "0.7.16"
35+
usbd-serial = "0.1.1"
36+
usbd-hid = "0.6.1"
37+
fugit = "0.3.7"
38+
# LED Matrix
39+
is31fl3741 = { git = "https://github.com/JohnAZoidberg/is31fl3741", branch = "merged" }
40+
# B1 Display
41+
st7306 = { git = "https://github.com/FrameworkComputer/st7306-rs", branch = "update-deps" }
42+
embedded-graphics = "0.8"
43+
tinybmp = "0.5.0"
44+
# C1 Minimal
45+
smart-leds = "0.3.0"
46+
ws2812-pio = "0.6.0"
2747

2848
# cargo build/run
2949
[profile.dev]

b1display/Cargo.toml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,30 @@ name = "b1display"
44
version = "0.1.5"
55

66
[dependencies]
7-
cortex-m = "0.7"
8-
cortex-m-rt = "0.7.3"
9-
embedded-hal = { version = "0.2.7", features = ["unproven"] }
7+
cortex-m.workspace = true
8+
cortex-m-rt.workspace = true
9+
embedded-hal.workspace = true
1010

11-
defmt = "0.3"
12-
defmt-rtt = "0.4"
11+
defmt.workspace = true
12+
defmt-rtt.workspace = true
1313

14-
#panic-probe = { version = "0.3", features = ["print-defmt"] }
15-
rp2040-panic-usb-boot = "0.5.0"
14+
#panic-probe.workspace = true
15+
rp2040-panic-usb-boot.workspace = true
1616

1717
# Not using an external BSP, we've got the Framework Laptop 16 BSPs locally in this crate
18-
rp2040-hal = { version="0.8", features=["rt", "critical-section-impl"] }
19-
rp2040-boot2 = "0.3"
18+
rp2040-hal.workspace = true
19+
rp2040-boot2.workspace = true
2020

2121
# USB Serial
22-
usb-device= "0.2.9"
23-
24-
heapless = "0.7.16"
25-
usbd-serial = "0.1.1"
26-
usbd-hid = "0.6.1"
27-
fugit = "0.3.7"
28-
29-
st7306 = { git = "https://github.com/FrameworkComputer/st7306-rs", branch = "update-deps" }
30-
embedded-graphics = "0.8"
31-
tinybmp = "0.5.0"
22+
usb-device.workspace = true
23+
heapless.workspace = true
24+
usbd-serial.workspace = true
25+
usbd-hid.workspace = true
26+
fugit.workspace = true
27+
28+
st7306.workspace = true
29+
embedded-graphics.workspace = true
30+
tinybmp.workspace = true
3231

3332
[dependencies.fl16-inputmodules]
3433
path = "../fl16-inputmodules"

c1minimal/Cargo.toml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,30 @@ name = "c1minimal"
44
version = "0.1.5"
55

66
[dependencies]
7-
cortex-m = "0.7"
8-
cortex-m-rt = "0.7.3"
9-
embedded-hal = { version = "0.2.7", features = ["unproven"] }
7+
cortex-m.workspace = true
8+
cortex-m-rt.workspace = true
9+
embedded-hal.workspace = true
1010

11-
defmt = "0.3"
12-
defmt-rtt = "0.4"
11+
defmt.workspace = true
12+
defmt-rtt.workspace = true
1313

14-
#panic-probe = { version = "0.3", features = ["print-defmt"] }
15-
rp2040-panic-usb-boot = "0.5.0"
14+
#panic-probe.workspace = true
15+
rp2040-panic-usb-boot.workspace = true
1616

17-
# Not using an external BSP, we've got the Framework Laptop BSPs locally in this crate
18-
rp2040-hal = { version="0.8", features=["rt", "critical-section-impl"] }
19-
rp2040-boot2 = "0.3"
17+
# Not using an external BSP, we've got the Framework Laptop 16 BSPs locally in this crate
18+
rp2040-hal.workspace = true
19+
rp2040-boot2.workspace = true
2020

2121
# USB Serial
22-
usb-device= "0.2.9"
23-
24-
heapless = "0.7.16"
25-
usbd-serial = "0.1.1"
26-
usbd-hid = "0.6.1"
27-
fugit = "0.3.7"
28-
29-
smart-leds = "0.3.0"
30-
ws2812-pio = "0.6.0"
22+
usb-device.workspace = true
23+
heapless.workspace = true
24+
usbd-serial.workspace = true
25+
usbd-hid.workspace = true
26+
fugit.workspace = true
27+
28+
# C1 Minimal
29+
smart-leds.workspace = true
30+
ws2812-pio.workspace = true
3131

3232
[dependencies.fl16-inputmodules]
3333
path = "../fl16-inputmodules"

fl16-inputmodules/Cargo.toml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,42 @@ version = "0.1.5"
55

66
[dependencies]
77
crc = "3.0"
8-
cortex-m = "0.7"
9-
cortex-m-rt = "0.7.3"
10-
embedded-hal = { version = "0.2.7", features = ["unproven"] }
8+
cortex-m.workspace = true
9+
cortex-m-rt.workspace = true
10+
embedded-hal.workspace = true
1111

12-
defmt = "0.3"
13-
defmt-rtt = "0.4"
12+
defmt.workspace = true
13+
defmt-rtt.workspace = true
1414

15-
#panic-probe = { version = "0.3", features = ["print-defmt"] }
16-
rp2040-panic-usb-boot = "0.5.0"
15+
#panic-probe.workspace = true
16+
rp2040-panic-usb-boot.workspace = true
1717

1818
# Not using an external BSP, we've got the Framework Laptop 16 BSPs locally in this crate
19-
rp2040-hal = { version = "0.8", features = ["rt", "critical-section-impl"] }
20-
rp2040-boot2 = "0.3"
19+
rp2040-hal.workspace = true
20+
rp2040-boot2.workspace = true
2121

2222
# USB Serial
23-
usb-device = "0.2.9"
23+
usb-device.workspace = true
24+
heapless.workspace = true
25+
usbd-serial.workspace = true
26+
usbd-hid.workspace = true
27+
fugit.workspace = true
2428

25-
heapless = "0.7.16"
26-
usbd-serial = "0.1.1"
27-
usbd-hid = "0.6.1"
28-
fugit = "0.3.7"
2929
num = { version = "0.4", default-features = false }
3030
num-derive = "0.3"
3131
num-traits = { version = "0.2", default-features = false }
3232

3333
# LED Matrix
34-
is31fl3741 = { git = "https://github.com/JohnAZoidberg/is31fl3741", branch = "merged", optional = true }
34+
is31fl3741 = { workspace = true, optional = true }
3535

3636
# B1 Display
37-
st7306 = { git = "https://github.com/FrameworkComputer/st7306-rs", branch = "update-deps", optional = true }
38-
embedded-graphics = { version = "0.8", optional = true }
39-
tinybmp = { version = "0.5.0", optional = true }
37+
st7306 = { workspace = true, optional = true }
38+
embedded-graphics = { workspace = true, optional = true }
39+
tinybmp = { workspace = true, optional = true }
4040

4141
# C1 Minimal
42-
smart-leds = { version = "0.3.0", optional = true }
43-
ws2812-pio = { version = "0.6.0", optional = true }
42+
smart-leds = { workspace = true, optional = true }
43+
ws2812-pio = { workspace = true, optional = true }
4444

4545
[features]
4646
default = []

ledmatrix/Cargo.toml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,28 @@ name = "ledmatrix"
44
version = "0.1.5"
55

66
[dependencies]
7-
cortex-m = "0.7"
8-
cortex-m-rt = "0.7.3"
9-
embedded-hal = { version = "0.2.7", features = ["unproven"] }
7+
cortex-m.workspace = true
8+
cortex-m-rt.workspace = true
9+
embedded-hal.workspace = true
1010

11-
defmt = "0.3"
12-
defmt-rtt = "0.4"
11+
defmt.workspace = true
12+
defmt-rtt.workspace = true
1313

14-
#panic-probe = { version = "0.3", features = ["print-defmt"] }
15-
rp2040-panic-usb-boot = "0.5.0"
14+
#panic-probe.workspace = true
15+
rp2040-panic-usb-boot.workspace = true
1616

1717
# Not using an external BSP, we've got the Framework Laptop 16 BSPs locally in this crate
18-
rp2040-hal = { version = "0.8", features = ["rt", "critical-section-impl"] }
19-
rp2040-boot2 = "0.3"
18+
rp2040-hal.workspace = true
19+
rp2040-boot2.workspace = true
2020

2121
# USB Serial
22-
usb-device = "0.2.9"
22+
usb-device.workspace = true
23+
heapless.workspace = true
24+
usbd-serial.workspace = true
25+
usbd-hid.workspace = true
26+
fugit.workspace = true
2327

24-
heapless = "0.7.16"
25-
usbd-serial = "0.1.1"
26-
usbd-hid = "0.6.1"
27-
fugit = "0.3.7"
28-
29-
is31fl3741 = { git = "https://github.com/JohnAZoidberg/is31fl3741", branch = "merged" }
28+
is31fl3741.workspace = true
3029

3130
[dependencies.fl16-inputmodules]
3231
path = "../fl16-inputmodules"

0 commit comments

Comments
 (0)