You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not applicable until we implement the RF24Mesh layer.
No STD libs in embedded-hal
See the embedded-hal book about rationale. Basically, driver libraries for embedded-hal projects cannot use rust's standard libraries. This includes Vec, BTreeMap data collections because it involves allocating memory at runtime.
This will be a problem down the road when I get around to implementing the Mesh layer because we need a way to dynamically allocate memory as Logical Addresses are assigned to a mesh node's ID. There are third party libs that aim to accommodate this shortcoming, but I'll cross that bridge when I get there.
Tip
The embeded-hal implementations on Linux and ESP32 boards can use the std libs. 🎉
Note
This is not applicable until we implement the RF24Mesh layer.
No STD libs in embedded-hal
See the embedded-hal book about rationale. Basically, driver libraries for embedded-hal projects cannot use rust's standard libraries. This includes
Vec
,BTreeMap
data collections because it involves allocating memory at runtime.This will be a problem down the road when I get around to implementing the Mesh layer because we need a way to dynamically allocate memory as Logical Addresses are assigned to a mesh node's ID. There are third party libs that aim to accommodate this shortcoming, but I'll cross that bridge when I get there.
Tip
The embeded-hal implementations on Linux and ESP32 boards can use the std libs. 🎉
Originally posted by @2bndy5 in #1 (comment)
The text was updated successfully, but these errors were encountered: