hap-rs icon indicating copy to clipboard operation
hap-rs copied to clipboard

no_std support

Open bahlo opened this issue 3 years ago • 4 comments

Would be amazing to be able to use this on embedded devices, for that we need no_std support though.

bahlo avatar Mar 09 '21 11:03 bahlo

Hey! Sorry it went quiet here.

The implemented IP transport relies heavily on tokio, so I don't see it working without a std net implementation or an OS-specific I/O driver anytime soon.

BLE transport could be a different story tho, should we manage to implement it at some point and feature-gate the IP part away. No timeline on it yet, but happy about contributions.

What's your embedded target platform?

ewilken avatar May 16 '21 14:05 ewilken

Hey, no worries! Not decided yet, probably cortex-m. Would be amazing to do embedded devices with native HomeKit support all written in Rust.

bahlo avatar May 17 '21 16:05 bahlo

I'm also interested in getting something like embedded nordic's nRF (arm, well supported), espressif esp32 (rust fork needed tor xtensa arch here), bl602 (risc-v, compilation supported, need drivers/PAC crates) homekit device programmed in Rust.

For embedded networking we may use smoltcp (rust) or lwip (C, which we need to link against) - depending on the chip/sdk

urbaniak avatar May 18 '21 08:05 urbaniak

There are also libraries like rust-embedded-community/embedded-nal that should hopefully make it easier.

bahlo avatar May 25 '21 15:05 bahlo