/// Reads the specified configuration and return an object capable to build blobfs.
Reads the specified configuration and return an object capable to build blobfs.
Reads the specified configuration and return an object capable to build blobfs .
pub fn new(tools: Box<dyn ToolProvider>, board_config: &Path) -> Result<BlobJsonGenerator> {
        let board_config: BoardConfig =
            read_config(board_config).context("Failed to read the board config")?;
        Ok(BlobJsonGenerator {
            layout: board_config.blobfs.layout,
            compress: board_config.blobfs.compress,
            tools,
        })
    }
pub fn new ( tools : Box < dyn ToolProvider > , board_config : & Path ) -> Result < BlobJsonGenerator > { let board_config : BoardConfig = read_config ( board_config ) . context ( " " ) ? ; Ok ( BlobJsonGenerator { layout : board_config . blobfs . layout , compress : board_config . blobfs . compress , tools , } ) }
Reads the specified configuration and return an object capable to build blobfs.
Reads the specified configuration and return an object capable to build blobfs .
tools
Box<dyn ToolProvider>
board_config
&Path