use crate::errors::Result;
use std::path::Path;
pub struct NargoBundler;
impl NargoBundler {
pub fn new() -> Self {
Self
}
pub fn build(&self, root: &Path, out_dir: &Path) -> Result<BuildResult> {
Ok(BuildResult {
total_size: 0,
files: vec![],
})
}
}
impl Default for NargoBundler {
fn default() -> Self {
Self::new()
}
}
pub struct BuildResult {
pub total_size: u64,
pub files: Vec<BuiltFile>,
}
pub struct BuiltFile {
pub path: String,
pub size: u64,
}