-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
137 lines (111 loc) · 4.13 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
[package]
name = "embassy-pico-template"
authors = ["Lechev.space <dev@lechev.space>", "Lachezar Lechev"]
version = "0.1.0"
license = "MIT OR Apache-2.0"
edition = "2021"
[profile.release]
# TODO: You might want to tweak these parameters for your project needs!
# Optimization settings w/out debug symbols
opt-level = 3
strip = false
debug = false
# With debug symbols
# debug = 2
codegen-units = 1
lto = true
[features]
default = ["std"]
# default = ["firmware"]
firmware = ["cortex-m", "rp2040", "defmt"]
defmt = [
"dep:defmt",
"dep:defmt-rtt",
"heapless/defmt-impl",
"panic-probe/print-defmt",
"embassy-sync/defmt",
"embassy-executor/defmt",
"embassy-time/defmt",
"embassy-embedded-hal/defmt",
"embassy-time/defmt-timestamp-uptime",
"embassy-rp/defmt",
# WIFI
"cyw43?/defmt",
"cyw43-pio?/defmt",
"embassy-usb/defmt",
"embassy-net/defmt",
# "embassy-net-wiznet/defmt",
"embedded-hal-async/defmt-03",
"embedded-io/defmt-03",
"embedded-io-async/defmt-03",
]
std = [
"alloc",
"embassy-executor/arch-std",
"embassy-time/std",
"embassy-sync/std",
"embassy-embedded-hal/std",
"embedded-io/std",
"embedded-io-async/std",
"critical-section/std",
"portable-atomic/std",
]
alloc = []
cortex-m = ["dep:cortex-m", "dep:cortex-m-rt"]
rp2040 = [
"embassy-rp/critical-section-impl",
"embassy-rp/rt",
"embassy-rp/time-driver",
"embassy-executor/arch-cortex-m",
"portable-atomic/critical-section",
]
[dependencies]
embassy-sync = { version = "0.5.0", git = "https://github.com/embassy-rs/embassy", rev = "3184250" }
embassy-executor = { version = "0.5", git = "https://github.com/embassy-rs/embassy", rev = "3184250", features = ["integrated-timers", "executor-thread"] }
embassy-time = { version = "0.3", git = "https://github.com/embassy-rs/embassy", rev = "3184250" }
embassy-rp = { version = "0.1", git = "https://github.com/embassy-rs/embassy", rev = "3184250", features = [
"unstable-pac",
"time-driver",
] }
# Pico W WiFi
cyw43 = { git = "https://github.com/embassy-rs/embassy", rev = "3184250", optional = true, features = ["firmware-logs"] }
cyw43-pio = { git = "https://github.com/embassy-rs/embassy", rev = "3184250", optional = true, features = ["overclock"] }
# `usbd-hid` feature is enabled by default
embassy-usb = { version = "0.2.0", git = "https://github.com/embassy-rs/embassy", rev = "3184250", default-features = false }
embassy-net = { version = "0.4.0", git = "https://github.com/embassy-rs/embassy", rev = "3184250", features = [
"udp",
"tcp",
"dhcpv4",
"medium-ethernet",
] }
embassy-embedded-hal = { version = "0.1.0", git = "https://github.com/embassy-rs/embassy", rev = "3184250" }
embassy-futures = { version = "0.1.0", git = "https://github.com/embassy-rs/embassy", rev = "3184250" }
embassy-usb-logger = { version = "0.1.0", git = "https://github.com/embassy-rs/embassy", rev = "3184250" }
# TODO: If you're using a RP Pico board with a W5500 or W5100S chip
# embassy-net-wiznet = { version = "0.1.0", git = "https://github.com/embassy-rs/embassy", rev = "52e269e" }
cortex-m = { version = "0.7", optional = true }
# Require 0.7.3 because of <https://github.com/rust-embedded/cortex-m/discussions/469>
cortex-m-rt = { version = "0.7.3", optional = true }
panic-probe = "0.3"
futures = { version = "0.3.17", default-features = false, features = [
"async-await",
"cfg-target-has-atomic",
"unstable",
] }
embedded-hal = { package = "embedded-hal", version = "1.0.0" }
embedded-hal-async = "1.0.0-rc.3"
embedded-io = { version = "0.6" }
embedded-io-async = "0.6.0"
embedded-storage = "0.3"
static_cell = { version = "2", features = [] }
# Atomic support
portable-atomic = { version = "1", default-features = false, features = ["require-cas"] }
# Logging
defmt = { version = "0.3", optional = true }
defmt-rtt = { version = "0.4", optional = true }
log = { version = "0.4", optional = true }
critical-section = "1.1"
heapless = { version = "0.8" }
[dev-dependencies]
# TODO: You can use `tokio` for running async tests using the `test` macro.
# tokio = { version = "1", default-features = false, features = ["rt", "macros"] }