Skip to content

Commit 0756a9c

Browse files
committed
rust: Export zephyr-sys as zephyr::raw
Re-export all of the bindgen generated bindings in the zephyr-sys crate into `zephyr::raw`. This keeps things easier, as users of `zephyr` only need to worry about the single `zephyr` crate. Signed-off-by: David Brown <[email protected]>
1 parent fc8d858 commit 0756a9c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/rust/zephyr/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ fn panic(_ :&PanicInfo) -> ! {
2929
}
3030
}
3131

32+
/// Re-export of zephyr-sys as `zephyr::raw`.
33+
pub mod raw {
34+
pub use zephyr_sys::*;
35+
}
36+
3237
/// Provide symbols used by macros in a crate-local namespace.
3338
#[doc(hidden)]
3439
pub mod _export {

0 commit comments

Comments
 (0)