Commit f52272c7 authored by David Brown's avatar David Brown Committed by David Brown
Browse files

sim: Flatten 'area' module in mcuboot-sys

It isn't necessary for the 'area' module to be exposed.  Re-export the
two definitions from the crate at the top level, and make the module
private.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent d2b1853f
Loading
Loading
Loading
Loading
+6 −1
Changes for sim/mcuboot-sys/src/lib.rs: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -2,6 +2,11 @@ extern crate libc;
#[macro_use] extern crate log;
extern crate simflash;

pub mod area;
mod area;
pub mod c;

// The API needs to be public, even though it isn't intended to be called by Rust code, but the
// functions are exported to C code.
pub mod api;

pub use area::{AreaDesc, FlashId};
+1 −2
Changes for sim/src/main.rs: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -24,8 +24,7 @@ mod caps;
mod tlv;

use simflash::{Flash, SimFlash};
use mcuboot_sys::area::{AreaDesc, FlashId};
use mcuboot_sys::c;
use mcuboot_sys::{c, AreaDesc, FlashId};
use caps::Caps;
use tlv::TlvGen;