add configuration for doc build

This commit is contained in:
bunnie 2025-02-17 22:53:56 +08:00
parent 9ba7d28d19
commit f78d54a834
2 changed files with 25 additions and 0 deletions

View 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

View file

@ -9,3 +9,22 @@ pub use baosec::*;
mod precursor;
#[cfg(any(feature = "hosted", feature = "renode", feature = "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::*;