⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

RustdocBuilder

Struct RustdocBuilder 

Source
pub struct RustdocBuilder { /* private fields */ }
Expand description

Orchestrates cargo doc invocations for packages and workspaces.

Implementations§

Source§

impl RustdocBuilder

Source

pub fn new(config: RustdocConfig) -> Self

Create a new builder from a configuration.

Source

pub fn config(&self) -> &RustdocConfig

Access the current configuration.

Source

pub fn index(&self) -> &DocIndex

Access the documentation index built so far.

Source

pub fn configure_theme(&mut self, theme: DocTheme)

Set the documentation theme.

Source

pub fn generate_docs(&self) -> String

Generate the command to build documentation for a single package.

Source

pub fn generate_package_docs(&self, package_name: &str) -> String

Generate the command to build documentation for a specific package within a workspace.

Source

pub fn generate_workspace_docs(&self) -> String

Generate the command to build documentation for the entire workspace.

Source

pub fn generate_search_index( &mut self, items: Vec<DocItem>, ) -> Result<&DocIndex, KernelError>

Build the search index from a list of discovered items.

In a real implementation this would parse the generated search-index.js or walk the source AST; here we accept a pre-collected list for testability.

Source

pub fn crate_doc_path(&self, crate_name: &str) -> String

Return the HTML output root for a given crate.

Source

pub fn index_html_path(&self) -> String

Return the full path to the top-level index.html.

Source

pub fn server_config(&self, port: u16) -> DocServerConfig

Create a DocServerConfig for serving the generated docs.

Source

pub fn cross_reference_flags(&self, crate_names: &[&str]) -> Vec<String>

Generate cross-reference extern flags for linking between crates in a workspace.

Auto Trait Implementations§

§

impl Freeze for RustdocBuilder

§

impl RefUnwindSafe for RustdocBuilder

§

impl Send for RustdocBuilder

§

impl Sync for RustdocBuilder

§

impl Unpin for RustdocBuilder

§

impl UnwindSafe for RustdocBuilder

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.