mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
add configuration for doc build
This commit is contained in:
parent
9ba7d28d19
commit
f78d54a834
2 changed files with 25 additions and 0 deletions
6
libs/blitstr2/src/platform/doc.rs
Normal file
6
libs/blitstr2/src/platform/doc.rs
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
// Dummy values to allow cargo doc to build
|
||||||
|
pub const LINES: isize = 536;
|
||||||
|
pub const WIDTH: isize = 336;
|
||||||
|
pub const WORDS_PER_LINE: usize = 11;
|
||||||
|
pub type FrBuf = [u32; WORDS_PER_LINE * LINES as usize];
|
||||||
|
pub const FB_SIZE: usize = WORDS_PER_LINE * LINES as usize; // 44 bytes by 536 lines
|
||||||
|
|
@ -9,3 +9,22 @@ pub use baosec::*;
|
||||||
mod precursor;
|
mod precursor;
|
||||||
#[cfg(any(feature = "hosted", feature = "renode", feature = "precursor"))]
|
#[cfg(any(feature = "hosted", feature = "renode", feature = "precursor"))]
|
||||||
pub use precursor::*;
|
pub use precursor::*;
|
||||||
|
|
||||||
|
// Dummy configuration to allow cargo doc to run - this has no board specified
|
||||||
|
#[cfg(any(
|
||||||
|
all(
|
||||||
|
not(any(feature = "board-baosec", feature = "hosted-baosec")),
|
||||||
|
not(any(feature = "hosted", feature = "renode", feature = "precursor"))
|
||||||
|
),
|
||||||
|
doc
|
||||||
|
))]
|
||||||
|
mod doc;
|
||||||
|
|
||||||
|
#[cfg(any(
|
||||||
|
all(
|
||||||
|
not(any(feature = "board-baosec", feature = "hosted-baosec")),
|
||||||
|
not(any(feature = "hosted", feature = "renode", feature = "precursor"))
|
||||||
|
),
|
||||||
|
doc
|
||||||
|
))]
|
||||||
|
pub use doc::*;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue