Update RIOT-rs support
This MR contains some updates for supporting RIOT-rs:
- a change to build.rs that makes it bail out if
BUILDING_RIOT_RS
is in env but theriot-rs
feature is not selected.
This ensures that RIOT-rs builds don't get build without the feature set (which would fail anyways), and a sane error message is presented to the user. Mostly useful if some dependency crate in a RIOT-rs build selects either riot-wrappers or riot-sys.
- a change to build.rs, exporting
marker_riot_rs
to downstream crates - lib.rs now depends on and re-exports
riot-rs-core
, if building for RIOT-rs
These two changes make it possible for riot-wrappers to just re-use the riot-rs support selection from riot-sys, without itself having to depend on riot-rs-core (duplicating all dependency tree checks).
The corresponding riot-wrappers
changes: will be PR'ed there shortly. riot-wrappers!9
Edited by Kaspar Schleiser