diff options
| -rw-r--r-- | Cargo.lock | 184 | ||||
| -rw-r--r-- | Cargo.toml | 14 | ||||
| -rw-r--r-- | examples/binary_sensor.rs | 2 | ||||
| -rw-r--r-- | examples/button.rs | 2 | ||||
| -rw-r--r-- | examples/common/mod.rs | 2 | ||||
| -rw-r--r-- | examples/device_tracker.rs | 2 | ||||
| -rw-r--r-- | examples/number.rs | 2 | ||||
| -rw-r--r-- | examples/sensor.rs | 6 | ||||
| -rw-r--r-- | examples/switch.rs | 2 |
9 files changed, 159 insertions, 57 deletions
| @@ -3,6 +3,15 @@ | |||
| 3 | version = 4 | 3 | version = 4 |
| 4 | 4 | ||
| 5 | [[package]] | 5 | [[package]] |
| 6 | name = "aho-corasick" | ||
| 7 | version = "1.1.4" | ||
| 8 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 9 | checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" | ||
| 10 | dependencies = [ | ||
| 11 | "memchr", | ||
| 12 | ] | ||
| 13 | |||
| 14 | [[package]] | ||
| 6 | name = "bitflags" | 15 | name = "bitflags" |
| 7 | version = "1.3.2" | 16 | version = "1.3.2" |
| 8 | source = "registry+https://github.com/rust-lang/crates.io-index" | 17 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| @@ -15,12 +24,32 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
| 15 | checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" | 24 | checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" |
| 16 | 25 | ||
| 17 | [[package]] | 26 | [[package]] |
| 27 | name = "cc" | ||
| 28 | version = "1.2.53" | ||
| 29 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 30 | checksum = "755d2fce177175ffca841e9a06afdb2c4ab0f593d53b4dee48147dfaade85932" | ||
| 31 | dependencies = [ | ||
| 32 | "find-msvc-tools", | ||
| 33 | "shlex", | ||
| 34 | ] | ||
| 35 | |||
| 36 | [[package]] | ||
| 18 | name = "cfg-if" | 37 | name = "cfg-if" |
| 19 | version = "1.0.4" | 38 | version = "1.0.4" |
| 20 | source = "registry+https://github.com/rust-lang/crates.io-index" | 39 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 21 | checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" | 40 | checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" |
| 22 | 41 | ||
| 23 | [[package]] | 42 | [[package]] |
| 43 | name = "cordyceps" | ||
| 44 | version = "0.3.4" | ||
| 45 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 46 | checksum = "688d7fbb8092b8de775ef2536f36c8c31f2bc4006ece2e8d8ad2d17d00ce0a2a" | ||
| 47 | dependencies = [ | ||
| 48 | "loom", | ||
| 49 | "tracing", | ||
| 50 | ] | ||
| 51 | |||
| 52 | [[package]] | ||
| 24 | name = "critical-section" | 53 | name = "critical-section" |
| 25 | version = "1.2.0" | 54 | version = "1.2.0" |
| 26 | source = "registry+https://github.com/rust-lang/crates.io-index" | 55 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| @@ -114,9 +143,9 @@ dependencies = [ | |||
| 114 | [[package]] | 143 | [[package]] |
| 115 | name = "embassy-executor" | 144 | name = "embassy-executor" |
| 116 | version = "0.9.1" | 145 | version = "0.9.1" |
| 117 | source = "registry+https://github.com/rust-lang/crates.io-index" | 146 | source = "git+https://github.com/embassy-rs/embassy#dd4b0ae19e97101dab86af061e69e2d3d3a03387" |
| 118 | checksum = "06070468370195e0e86f241c8e5004356d696590a678d47d6676795b2e439c6b" | ||
| 119 | dependencies = [ | 147 | dependencies = [ |
| 148 | "cordyceps", | ||
| 120 | "critical-section", | 149 | "critical-section", |
| 121 | "document-features", | 150 | "document-features", |
| 122 | "embassy-executor-macros", | 151 | "embassy-executor-macros", |
| @@ -126,8 +155,7 @@ dependencies = [ | |||
| 126 | [[package]] | 155 | [[package]] |
| 127 | name = "embassy-executor-macros" | 156 | name = "embassy-executor-macros" |
| 128 | version = "0.7.0" | 157 | version = "0.7.0" |
| 129 | source = "registry+https://github.com/rust-lang/crates.io-index" | 158 | source = "git+https://github.com/embassy-rs/embassy#dd4b0ae19e97101dab86af061e69e2d3d3a03387" |
| 130 | checksum = "dfdddc3a04226828316bf31393b6903ee162238576b1584ee2669af215d55472" | ||
| 131 | dependencies = [ | 159 | dependencies = [ |
| 132 | "darling", | 160 | "darling", |
| 133 | "proc-macro2", | 161 | "proc-macro2", |
| @@ -138,14 +166,12 @@ dependencies = [ | |||
| 138 | [[package]] | 166 | [[package]] |
| 139 | name = "embassy-executor-timer-queue" | 167 | name = "embassy-executor-timer-queue" |
| 140 | version = "0.1.0" | 168 | version = "0.1.0" |
| 141 | source = "registry+https://github.com/rust-lang/crates.io-index" | 169 | source = "git+https://github.com/embassy-rs/embassy#dd4b0ae19e97101dab86af061e69e2d3d3a03387" |
| 142 | checksum = "2fc328bf943af66b80b98755db9106bf7e7471b0cf47dc8559cd9a6be504cc9c" | ||
| 143 | 170 | ||
| 144 | [[package]] | 171 | [[package]] |
| 145 | name = "embassy-futures" | 172 | name = "embassy-futures" |
| 146 | version = "0.1.2" | 173 | version = "0.1.2" |
| 147 | source = "registry+https://github.com/rust-lang/crates.io-index" | 174 | source = "git+https://github.com/embassy-rs/embassy#dd4b0ae19e97101dab86af061e69e2d3d3a03387" |
| 148 | checksum = "dc2d050bdc5c21e0862a89256ed8029ae6c290a93aecefc73084b3002cdebb01" | ||
| 149 | 175 | ||
| 150 | [[package]] | 176 | [[package]] |
| 151 | name = "embassy-ha" | 177 | name = "embassy-ha" |
| @@ -158,7 +184,7 @@ dependencies = [ | |||
| 158 | "embassy-net", | 184 | "embassy-net", |
| 159 | "embassy-sync", | 185 | "embassy-sync", |
| 160 | "embassy-time", | 186 | "embassy-time", |
| 161 | "embedded-io-async 0.7.0", | 187 | "embedded-io-async", |
| 162 | "heapless 0.9.2", | 188 | "heapless 0.9.2", |
| 163 | "rand", | 189 | "rand", |
| 164 | "serde", | 190 | "serde", |
| @@ -171,15 +197,14 @@ dependencies = [ | |||
| 171 | [[package]] | 197 | [[package]] |
| 172 | name = "embassy-net" | 198 | name = "embassy-net" |
| 173 | version = "0.8.0" | 199 | version = "0.8.0" |
| 174 | source = "registry+https://github.com/rust-lang/crates.io-index" | 200 | source = "git+https://github.com/embassy-rs/embassy#dd4b0ae19e97101dab86af061e69e2d3d3a03387" |
| 175 | checksum = "71f0aa32082b7df00164f485322d6edab59122c9718b363b07ec23424c2c06a0" | ||
| 176 | dependencies = [ | 201 | dependencies = [ |
| 177 | "defmt 1.0.1", | 202 | "defmt 1.0.1", |
| 178 | "document-features", | 203 | "document-features", |
| 179 | "embassy-net-driver", | 204 | "embassy-net-driver", |
| 180 | "embassy-sync", | 205 | "embassy-sync", |
| 181 | "embassy-time", | 206 | "embassy-time", |
| 182 | "embedded-io-async 0.7.0", | 207 | "embedded-io-async", |
| 183 | "embedded-nal-async", | 208 | "embedded-nal-async", |
| 184 | "heapless 0.8.0", | 209 | "heapless 0.8.0", |
| 185 | "managed", | 210 | "managed", |
| @@ -189,22 +214,20 @@ dependencies = [ | |||
| 189 | [[package]] | 214 | [[package]] |
| 190 | name = "embassy-net-driver" | 215 | name = "embassy-net-driver" |
| 191 | version = "0.2.0" | 216 | version = "0.2.0" |
| 192 | source = "registry+https://github.com/rust-lang/crates.io-index" | 217 | source = "git+https://github.com/embassy-rs/embassy#dd4b0ae19e97101dab86af061e69e2d3d3a03387" |
| 193 | checksum = "524eb3c489760508f71360112bca70f6e53173e6fe48fc5f0efd0f5ab217751d" | ||
| 194 | dependencies = [ | 218 | dependencies = [ |
| 195 | "defmt 0.3.100", | 219 | "defmt 1.0.1", |
| 196 | ] | 220 | ] |
| 197 | 221 | ||
| 198 | [[package]] | 222 | [[package]] |
| 199 | name = "embassy-sync" | 223 | name = "embassy-sync" |
| 200 | version = "0.7.2" | 224 | version = "0.7.2" |
| 201 | source = "registry+https://github.com/rust-lang/crates.io-index" | 225 | source = "git+https://github.com/embassy-rs/embassy#dd4b0ae19e97101dab86af061e69e2d3d3a03387" |
| 202 | checksum = "73974a3edbd0bd286759b3d483540f0ebef705919a5f56f4fc7709066f71689b" | ||
| 203 | dependencies = [ | 226 | dependencies = [ |
| 204 | "cfg-if", | 227 | "cfg-if", |
| 205 | "critical-section", | 228 | "critical-section", |
| 206 | "defmt 1.0.1", | 229 | "defmt 1.0.1", |
| 207 | "embedded-io-async 0.6.1", | 230 | "embedded-io-async", |
| 208 | "futures-core", | 231 | "futures-core", |
| 209 | "futures-sink", | 232 | "futures-sink", |
| 210 | "heapless 0.8.0", | 233 | "heapless 0.8.0", |
| @@ -213,8 +236,7 @@ dependencies = [ | |||
| 213 | [[package]] | 236 | [[package]] |
| 214 | name = "embassy-time" | 237 | name = "embassy-time" |
| 215 | version = "0.5.0" | 238 | version = "0.5.0" |
| 216 | source = "registry+https://github.com/rust-lang/crates.io-index" | 239 | source = "git+https://github.com/embassy-rs/embassy#dd4b0ae19e97101dab86af061e69e2d3d3a03387" |
| 217 | checksum = "f4fa65b9284d974dad7a23bb72835c4ec85c0b540d86af7fc4098c88cff51d65" | ||
| 218 | dependencies = [ | 240 | dependencies = [ |
| 219 | "cfg-if", | 241 | "cfg-if", |
| 220 | "critical-section", | 242 | "critical-section", |
| @@ -231,8 +253,7 @@ dependencies = [ | |||
| 231 | [[package]] | 253 | [[package]] |
| 232 | name = "embassy-time-driver" | 254 | name = "embassy-time-driver" |
| 233 | version = "0.2.1" | 255 | version = "0.2.1" |
| 234 | source = "registry+https://github.com/rust-lang/crates.io-index" | 256 | source = "git+https://github.com/embassy-rs/embassy#dd4b0ae19e97101dab86af061e69e2d3d3a03387" |
| 235 | checksum = "a0a244c7dc22c8d0289379c8d8830cae06bb93d8f990194d0de5efb3b5ae7ba6" | ||
| 236 | dependencies = [ | 257 | dependencies = [ |
| 237 | "document-features", | 258 | "document-features", |
| 238 | ] | 259 | ] |
| @@ -240,8 +261,7 @@ dependencies = [ | |||
| 240 | [[package]] | 261 | [[package]] |
| 241 | name = "embassy-time-queue-utils" | 262 | name = "embassy-time-queue-utils" |
| 242 | version = "0.3.0" | 263 | version = "0.3.0" |
| 243 | source = "registry+https://github.com/rust-lang/crates.io-index" | 264 | source = "git+https://github.com/embassy-rs/embassy#dd4b0ae19e97101dab86af061e69e2d3d3a03387" |
| 244 | checksum = "80e2ee86063bd028a420a5fb5898c18c87a8898026da1d4c852af2c443d0a454" | ||
| 245 | dependencies = [ | 265 | dependencies = [ |
| 246 | "embassy-executor-timer-queue", | 266 | "embassy-executor-timer-queue", |
| 247 | "heapless 0.8.0", | 267 | "heapless 0.8.0", |
| @@ -274,32 +294,17 @@ dependencies = [ | |||
| 274 | 294 | ||
| 275 | [[package]] | 295 | [[package]] |
| 276 | name = "embedded-io" | 296 | name = "embedded-io" |
| 277 | version = "0.6.1" | ||
| 278 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 279 | checksum = "edd0f118536f44f5ccd48bcb8b111bdc3de888b58c74639dfb034a357d0f206d" | ||
| 280 | |||
| 281 | [[package]] | ||
| 282 | name = "embedded-io" | ||
| 283 | version = "0.7.1" | 297 | version = "0.7.1" |
| 284 | source = "registry+https://github.com/rust-lang/crates.io-index" | 298 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 285 | checksum = "9eb1aa714776b75c7e67e1da744b81a129b3ff919c8712b5e1b32252c1f07cc7" | 299 | checksum = "9eb1aa714776b75c7e67e1da744b81a129b3ff919c8712b5e1b32252c1f07cc7" |
| 286 | 300 | ||
| 287 | [[package]] | 301 | [[package]] |
| 288 | name = "embedded-io-async" | 302 | name = "embedded-io-async" |
| 289 | version = "0.6.1" | ||
| 290 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 291 | checksum = "3ff09972d4073aa8c299395be75161d582e7629cd663171d62af73c8d50dba3f" | ||
| 292 | dependencies = [ | ||
| 293 | "embedded-io 0.6.1", | ||
| 294 | ] | ||
| 295 | |||
| 296 | [[package]] | ||
| 297 | name = "embedded-io-async" | ||
| 298 | version = "0.7.0" | 303 | version = "0.7.0" |
| 299 | source = "registry+https://github.com/rust-lang/crates.io-index" | 304 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 300 | checksum = "2564b9f813c544241430e147d8bc454815ef9ac998878d30cc3055449f7fd4c0" | 305 | checksum = "2564b9f813c544241430e147d8bc454815ef9ac998878d30cc3055449f7fd4c0" |
| 301 | dependencies = [ | 306 | dependencies = [ |
| 302 | "embedded-io 0.7.1", | 307 | "embedded-io", |
| 303 | ] | 308 | ] |
| 304 | 309 | ||
| 305 | [[package]] | 310 | [[package]] |
| @@ -317,11 +322,17 @@ version = "0.9.0" | |||
| 317 | source = "registry+https://github.com/rust-lang/crates.io-index" | 322 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 318 | checksum = "eb5a1bd585135d302f8f6d7de329310938093da6271b37a6c94b8798795c0c6d" | 323 | checksum = "eb5a1bd585135d302f8f6d7de329310938093da6271b37a6c94b8798795c0c6d" |
| 319 | dependencies = [ | 324 | dependencies = [ |
| 320 | "embedded-io-async 0.7.0", | 325 | "embedded-io-async", |
| 321 | "embedded-nal", | 326 | "embedded-nal", |
| 322 | ] | 327 | ] |
| 323 | 328 | ||
| 324 | [[package]] | 329 | [[package]] |
| 330 | name = "find-msvc-tools" | ||
| 331 | version = "0.1.8" | ||
| 332 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 333 | checksum = "8591b0bcc8a98a64310a2fae1bb3e9b8564dd10e381e6e28010fde8e8e8568db" | ||
| 334 | |||
| 335 | [[package]] | ||
| 325 | name = "fnv" | 336 | name = "fnv" |
| 326 | version = "1.0.7" | 337 | version = "1.0.7" |
| 327 | source = "registry+https://github.com/rust-lang/crates.io-index" | 338 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| @@ -340,6 +351,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
| 340 | checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" | 351 | checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" |
| 341 | 352 | ||
| 342 | [[package]] | 353 | [[package]] |
| 354 | name = "generator" | ||
| 355 | version = "0.8.8" | ||
| 356 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 357 | checksum = "52f04ae4152da20c76fe800fa48659201d5cf627c5149ca0b707b69d7eef6cf9" | ||
| 358 | dependencies = [ | ||
| 359 | "cc", | ||
| 360 | "cfg-if", | ||
| 361 | "libc", | ||
| 362 | "log", | ||
| 363 | "rustversion", | ||
| 364 | "windows-link", | ||
| 365 | "windows-result", | ||
| 366 | ] | ||
| 367 | |||
| 368 | [[package]] | ||
| 343 | name = "getrandom" | 369 | name = "getrandom" |
| 344 | version = "0.3.4" | 370 | version = "0.3.4" |
| 345 | source = "registry+https://github.com/rust-lang/crates.io-index" | 371 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| @@ -413,12 +439,40 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
| 413 | checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" | 439 | checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" |
| 414 | 440 | ||
| 415 | [[package]] | 441 | [[package]] |
| 442 | name = "loom" | ||
| 443 | version = "0.7.2" | ||
| 444 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 445 | checksum = "419e0dc8046cb947daa77eb95ae174acfbddb7673b4151f56d1eed8e93fbfaca" | ||
| 446 | dependencies = [ | ||
| 447 | "cfg-if", | ||
| 448 | "generator", | ||
| 449 | "scoped-tls", | ||
| 450 | "tracing", | ||
| 451 | "tracing-subscriber", | ||
| 452 | ] | ||
| 453 | |||
| 454 | [[package]] | ||
| 416 | name = "managed" | 455 | name = "managed" |
| 417 | version = "0.8.0" | 456 | version = "0.8.0" |
| 418 | source = "registry+https://github.com/rust-lang/crates.io-index" | 457 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 419 | checksum = "0ca88d725a0a943b096803bd34e73a4437208b6077654cc4ecb2947a5f91618d" | 458 | checksum = "0ca88d725a0a943b096803bd34e73a4437208b6077654cc4ecb2947a5f91618d" |
| 420 | 459 | ||
| 421 | [[package]] | 460 | [[package]] |
| 461 | name = "matchers" | ||
| 462 | version = "0.2.0" | ||
| 463 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 464 | checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" | ||
| 465 | dependencies = [ | ||
| 466 | "regex-automata", | ||
| 467 | ] | ||
| 468 | |||
| 469 | [[package]] | ||
| 470 | name = "memchr" | ||
| 471 | version = "2.7.6" | ||
| 472 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 473 | checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273" | ||
| 474 | |||
| 475 | [[package]] | ||
| 422 | name = "nb" | 476 | name = "nb" |
| 423 | version = "0.1.3" | 477 | version = "0.1.3" |
| 424 | source = "registry+https://github.com/rust-lang/crates.io-index" | 478 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| @@ -545,12 +599,41 @@ dependencies = [ | |||
| 545 | ] | 599 | ] |
| 546 | 600 | ||
| 547 | [[package]] | 601 | [[package]] |
| 602 | name = "regex-automata" | ||
| 603 | version = "0.4.13" | ||
| 604 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 605 | checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c" | ||
| 606 | dependencies = [ | ||
| 607 | "aho-corasick", | ||
| 608 | "memchr", | ||
| 609 | "regex-syntax", | ||
| 610 | ] | ||
| 611 | |||
| 612 | [[package]] | ||
| 613 | name = "regex-syntax" | ||
| 614 | version = "0.8.8" | ||
| 615 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 616 | checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58" | ||
| 617 | |||
| 618 | [[package]] | ||
| 619 | name = "rustversion" | ||
| 620 | version = "1.0.22" | ||
| 621 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 622 | checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" | ||
| 623 | |||
| 624 | [[package]] | ||
| 548 | name = "ryu" | 625 | name = "ryu" |
| 549 | version = "1.0.22" | 626 | version = "1.0.22" |
| 550 | source = "registry+https://github.com/rust-lang/crates.io-index" | 627 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 551 | checksum = "a50f4cf475b65d88e057964e0e9bb1f0aa9bbb2036dc65c64596b42932536984" | 628 | checksum = "a50f4cf475b65d88e057964e0e9bb1f0aa9bbb2036dc65c64596b42932536984" |
| 552 | 629 | ||
| 553 | [[package]] | 630 | [[package]] |
| 631 | name = "scoped-tls" | ||
| 632 | version = "1.0.1" | ||
| 633 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 634 | checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" | ||
| 635 | |||
| 636 | [[package]] | ||
| 554 | name = "serde" | 637 | name = "serde" |
| 555 | version = "1.0.228" | 638 | version = "1.0.228" |
| 556 | source = "registry+https://github.com/rust-lang/crates.io-index" | 639 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| @@ -601,6 +684,12 @@ dependencies = [ | |||
| 601 | ] | 684 | ] |
| 602 | 685 | ||
| 603 | [[package]] | 686 | [[package]] |
| 687 | name = "shlex" | ||
| 688 | version = "1.3.0" | ||
| 689 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 690 | checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" | ||
| 691 | |||
| 692 | [[package]] | ||
| 604 | name = "smallvec" | 693 | name = "smallvec" |
| 605 | version = "1.15.1" | 694 | version = "1.15.1" |
| 606 | source = "registry+https://github.com/rust-lang/crates.io-index" | 695 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| @@ -730,10 +819,14 @@ version = "0.3.22" | |||
| 730 | source = "registry+https://github.com/rust-lang/crates.io-index" | 819 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 731 | checksum = "2f30143827ddab0d256fd843b7a66d164e9f271cfa0dde49142c5ca0ca291f1e" | 820 | checksum = "2f30143827ddab0d256fd843b7a66d164e9f271cfa0dde49142c5ca0ca291f1e" |
| 732 | dependencies = [ | 821 | dependencies = [ |
| 822 | "matchers", | ||
| 733 | "nu-ansi-term", | 823 | "nu-ansi-term", |
| 824 | "once_cell", | ||
| 825 | "regex-automata", | ||
| 734 | "sharded-slab", | 826 | "sharded-slab", |
| 735 | "smallvec", | 827 | "smallvec", |
| 736 | "thread_local", | 828 | "thread_local", |
| 829 | "tracing", | ||
| 737 | "tracing-core", | 830 | "tracing-core", |
| 738 | "tracing-log", | 831 | "tracing-log", |
| 739 | ] | 832 | ] |
| @@ -772,6 +865,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
| 772 | checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" | 865 | checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" |
| 773 | 866 | ||
| 774 | [[package]] | 867 | [[package]] |
| 868 | name = "windows-result" | ||
| 869 | version = "0.4.1" | ||
| 870 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 871 | checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" | ||
| 872 | dependencies = [ | ||
| 873 | "windows-link", | ||
| 874 | ] | ||
| 875 | |||
| 876 | [[package]] | ||
| 775 | name = "windows-sys" | 877 | name = "windows-sys" |
| 776 | version = "0.61.2" | 878 | version = "0.61.2" |
| 777 | source = "registry+https://github.com/rust-lang/crates.io-index" | 879 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| @@ -17,21 +17,21 @@ defmt = ["dep:defmt", "embassy-net/defmt", "embassy-sync/defmt"] | |||
| 17 | tracing = ["dep:tracing"] | 17 | tracing = ["dep:tracing"] |
| 18 | 18 | ||
| 19 | [dependencies] | 19 | [dependencies] |
| 20 | embassy-net = { version = "0.8", features = ["medium-ip", "proto-ipv4", "tcp", "dns"] } | 20 | embassy-net = { git = "https://github.com/embassy-rs/embassy", features = ["medium-ip", "proto-ipv4", "tcp", "dns"] } |
| 21 | heapless = "0.9" | 21 | heapless = "0.9" |
| 22 | embassy-time = { version = "0.5" } | 22 | embassy-time = { git = "https://github.com/embassy-rs/embassy" } |
| 23 | serde-json-core = "0.6" | 23 | serde-json-core = "0.6" |
| 24 | serde = { version = "1", default-features = false, features = ["derive"] } | 24 | serde = { version = "1", default-features = false, features = ["derive"] } |
| 25 | defmt = { version = "1", optional = true } | 25 | defmt = { version = "1", optional = true } |
| 26 | tracing = { version = "0.1", optional = true, default-features = false } | 26 | tracing = { version = "0.1", optional = true, default-features = false } |
| 27 | embassy-sync = { version = "0.7" } | 27 | embassy-sync = { git = "https://github.com/embassy-rs/embassy" } |
| 28 | embassy-futures = "0.1" | 28 | embassy-futures = { git = "https://github.com/embassy-rs/embassy" } |
| 29 | embedded-io-async = "0.7" | 29 | embedded-io-async = "0.7" |
| 30 | 30 | ||
| 31 | [dev-dependencies] | 31 | [dev-dependencies] |
| 32 | embassy-time = { version = "0.5", features = ["std"] } | 32 | embassy-time = { git = "https://github.com/embassy-rs/embassy", features = ["std"] } |
| 33 | embassy-executor = { version = "0.9", features = ["arch-std", "executor-thread"] } | 33 | embassy-executor = { git = "https://github.com/embassy-rs/embassy", features = ["arch-std", "executor-thread"] } |
| 34 | embassy-sync = { version = "0.7" } | 34 | embassy-sync = { git = "https://github.com/embassy-rs/embassy" } |
| 35 | static_cell = "2.1" | 35 | static_cell = "2.1" |
| 36 | embedded-io-async = { version = "0.7", features = ["std"] } | 36 | embedded-io-async = { version = "0.7", features = ["std"] } |
| 37 | critical-section = { version = "1", features = ["std"] } | 37 | critical-section = { version = "1", features = ["std"] } |
diff --git a/examples/binary_sensor.rs b/examples/binary_sensor.rs index a52a5fb..ed2fe51 100644 --- a/examples/binary_sensor.rs +++ b/examples/binary_sensor.rs | |||
| @@ -33,7 +33,7 @@ async fn main_task(spawner: Spawner) { | |||
| 33 | }, | 33 | }, |
| 34 | ); | 34 | ); |
| 35 | 35 | ||
| 36 | spawner.must_spawn(binary_sensor_class(sensor)); | 36 | spawner.spawn(binary_sensor_class(sensor).unwrap()); |
| 37 | 37 | ||
| 38 | embassy_ha::run(&mut device, &mut stream).await.unwrap(); | 38 | embassy_ha::run(&mut device, &mut stream).await.unwrap(); |
| 39 | } | 39 | } |
diff --git a/examples/button.rs b/examples/button.rs index ea8c4a9..1ea50d0 100644 --- a/examples/button.rs +++ b/examples/button.rs | |||
| @@ -26,7 +26,7 @@ async fn main_task(spawner: Spawner) { | |||
| 26 | embassy_ha::ButtonConfig::default(), | 26 | embassy_ha::ButtonConfig::default(), |
| 27 | ); | 27 | ); |
| 28 | 28 | ||
| 29 | spawner.must_spawn(button_task(button)); | 29 | spawner.spawn(button_task(button).unwrap()); |
| 30 | 30 | ||
| 31 | embassy_ha::run(&mut device, &mut stream).await.unwrap(); | 31 | embassy_ha::run(&mut device, &mut stream).await.unwrap(); |
| 32 | } | 32 | } |
diff --git a/examples/common/mod.rs b/examples/common/mod.rs index db97463..47def59 100644 --- a/examples/common/mod.rs +++ b/examples/common/mod.rs | |||
| @@ -19,7 +19,7 @@ macro_rules! example_main { | |||
| 19 | 19 | ||
| 20 | let executor = common::EXECUTOR.init(Executor::new()); | 20 | let executor = common::EXECUTOR.init(Executor::new()); |
| 21 | executor.run(|spawner| { | 21 | executor.run(|spawner| { |
| 22 | spawner.must_spawn(main_task(spawner)); | 22 | spawner.spawn(main_task(spawner).unwrap()); |
| 23 | }); | 23 | }); |
| 24 | } | 24 | } |
| 25 | }; | 25 | }; |
diff --git a/examples/device_tracker.rs b/examples/device_tracker.rs index 7f02333..150226d 100644 --- a/examples/device_tracker.rs +++ b/examples/device_tracker.rs | |||
| @@ -32,7 +32,7 @@ async fn main_task(spawner: Spawner) { | |||
| 32 | }, | 32 | }, |
| 33 | ); | 33 | ); |
| 34 | 34 | ||
| 35 | spawner.must_spawn(tracker_task(tracker)); | 35 | spawner.spawn(tracker_task(tracker).unwrap()); |
| 36 | 36 | ||
| 37 | embassy_ha::run(&mut device, &mut stream).await.unwrap(); | 37 | embassy_ha::run(&mut device, &mut stream).await.unwrap(); |
| 38 | } | 38 | } |
diff --git a/examples/number.rs b/examples/number.rs index 8ef6656..0f7bd38 100644 --- a/examples/number.rs +++ b/examples/number.rs | |||
| @@ -39,7 +39,7 @@ async fn main_task(spawner: Spawner) { | |||
| 39 | }, | 39 | }, |
| 40 | ); | 40 | ); |
| 41 | 41 | ||
| 42 | spawner.must_spawn(number_task(number)); | 42 | spawner.spawn(number_task(number).unwrap()); |
| 43 | 43 | ||
| 44 | embassy_ha::run(&mut device, &mut stream).await.unwrap(); | 44 | embassy_ha::run(&mut device, &mut stream).await.unwrap(); |
| 45 | } | 45 | } |
diff --git a/examples/sensor.rs b/examples/sensor.rs index acbb3ab..3a0989d 100644 --- a/examples/sensor.rs +++ b/examples/sensor.rs | |||
| @@ -67,9 +67,9 @@ async fn main_task(spawner: Spawner) { | |||
| 67 | }, | 67 | }, |
| 68 | ); | 68 | ); |
| 69 | 69 | ||
| 70 | spawner.must_spawn(random_temperature_task(temperature_sensor)); | 70 | spawner.spawn(random_temperature_task(temperature_sensor).unwrap()); |
| 71 | spawner.must_spawn(random_humidity_task(humidity_sensor)); | 71 | spawner.spawn(random_humidity_task(humidity_sensor).unwrap()); |
| 72 | spawner.must_spawn(random_signal_strength_task(signal_strength_sensor)); | 72 | spawner.spawn(random_signal_strength_task(signal_strength_sensor).unwrap()); |
| 73 | 73 | ||
| 74 | embassy_ha::run(&mut device, &mut stream).await.unwrap(); | 74 | embassy_ha::run(&mut device, &mut stream).await.unwrap(); |
| 75 | } | 75 | } |
diff --git a/examples/switch.rs b/examples/switch.rs index 0158ede..634bbb6 100644 --- a/examples/switch.rs +++ b/examples/switch.rs | |||
| @@ -33,7 +33,7 @@ async fn main_task(spawner: Spawner) { | |||
| 33 | }, | 33 | }, |
| 34 | ); | 34 | ); |
| 35 | 35 | ||
| 36 | spawner.must_spawn(switch_task(switch)); | 36 | spawner.spawn(switch_task(switch).unwrap()); |
| 37 | 37 | ||
| 38 | embassy_ha::run(&mut device, &mut stream).await.unwrap(); | 38 | embassy_ha::run(&mut device, &mut stream).await.unwrap(); |
| 39 | } | 39 | } |
