Commit 0756a9cf authored by David Brown's avatar David Brown Committed by David Brown
Browse files

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: default avatarDavid Brown <david.brown@linaro.org>
parent fc8d858c
Loading
Loading
Loading
Loading
+5 −0
Changes for lib/rust/zephyr/src/lib.rs: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -29,6 +29,11 @@ fn panic(_ :&PanicInfo) -> ! {
    }
}

/// Re-export of zephyr-sys as `zephyr::raw`.
pub mod raw {
    pub use zephyr_sys::*;
}

/// Provide symbols used by macros in a crate-local namespace.
#[doc(hidden)]
pub mod _export {