fn build_jjs_components(params: &Params) -> anyhow::Result<()> {
    let rust_pkgs = make_rust_package_list()
        .into_iter()
        .filter(|pkg| check_filter(&params.cfg.components, &pkg.name, pkg.section))
        .collect::<Vec<_>>();
    let other_pkgs = make_other_package_list()
        .into_iter()
        .filter(|pkg| check_filter(&params.cfg.components, &pkg.name, pkg.section))
        .collect::<Vec<_>>();
    let cmake_pkgs = make_cmake_package_list()
        .into_iter()
        .filter(|pkg| check_filter(&params.cfg.components, &pkg.name, pkg.section))
        .collect::<Vec<_>>();
    let meta_pkgs = make_meta_package_list()
        .into_iter()
        .filter(|pkg| check_meta_pkg_filter(&params.cfg.components, pkg.section))
        .collect::<Vec<_>>();

    let mut builder = builder::Builder::new(params);
    for pkg in rust_pkgs {
        println!("Will build: {}", &pkg.name);
        builder.push_rust(pkg);
    }
    for pkg in cmake_pkgs {
        println!("Will build: {}", &pkg.name);
        builder.push_cmake(pkg);
    }
    let artifacts = builder.build().context("build error")?;

    if let Some(docker_cfg) = &params.cfg.emit.docker {
        let emitter = emit::DockerEmitter;
        emitter.emit(&artifacts, &other_pkgs, &meta_pkgs, params, docker_cfg)?;
    }
    Ok(())
}
/// Responsible for building of all requested components
Responsible for building of all requested components
Responsible for building of all requested components
fn build_jjs_components(params: &Params) -> anyhow::Result<()> {
    let rust_pkgs = make_rust_package_list()
        .into_iter()
        .filter(|pkg| check_filter(&params.cfg.components, &pkg.name, pkg.section))
        .collect::<Vec<_>>();
    let other_pkgs = make_other_package_list()
        .into_iter()
        .filter(|pkg| check_filter(&params.cfg.components, &pkg.name, pkg.section))
        .collect::<Vec<_>>();
    let cmake_pkgs = make_cmake_package_list()
        .into_iter()
        .filter(|pkg| check_filter(&params.cfg.components, &pkg.name, pkg.section))
        .collect::<Vec<_>>();
    let meta_pkgs = make_meta_package_list()
        .into_iter()
        .filter(|pkg| check_meta_pkg_filter(&params.cfg.components, pkg.section))
        .collect::<Vec<_>>();
    let mut builder = builder::Builder::new(params);
    for pkg in rust_pkgs {
        println!("Will build: {}", &pkg.name);
        builder.push_rust(pkg);
    }
    for pkg in cmake_pkgs {
        println!("Will build: {}", &pkg.name);
        builder.push_cmake(pkg);
    }
    let artifacts = builder.build().context("build error")?;
    if let Some(docker_cfg) = &params.cfg.emit.docker {
        let emitter = emit::DockerEmitter;
        emitter.emit(&artifacts, &other_pkgs, &meta_pkgs, params, docker_cfg)?;
    }
    Ok(())
}
fn build_jjs_components ( params : & Params ) -> anyhow :: Result < ( ) > { let rust_pkgs = make_rust_package_list ( ) . into_iter ( ) . filter ( | pkg | check_filter ( & params . cfg . components , & pkg . name , pkg . section ) ) . collect :: < Vec < _ > > ( ) ; let other_pkgs = make_other_package_list ( ) . into_iter ( ) . filter ( | pkg | check_filter ( & params . cfg . components , & pkg . name , pkg . section ) ) . collect :: < Vec < _ > > ( ) ; let cmake_pkgs = make_cmake_package_list ( ) . into_iter ( ) . filter ( | pkg | check_filter ( & params . cfg . components , & pkg . name , pkg . section ) ) . collect :: < Vec < _ > > ( ) ; let meta_pkgs = make_meta_package_list ( ) . into_iter ( ) . filter ( | pkg | check_meta_pkg_filter ( & params . cfg . components , pkg . section ) ) . collect :: < Vec < _ > > ( ) ; let mut builder = builder :: Builder :: new ( params ) ; for pkg in rust_pkgs { println ! ( " " pkg name ) ; builder . push_rust ( pkg ) ; } for pkg in cmake_pkgs { println ! ( " " pkg name ) ; builder . push_cmake ( pkg ) ; } let artifacts = builder . build ( ) . context ( " " ) ? ; if let Some ( docker_cfg ) = & params . cfg . emit . docker { let emitter = emit :: DockerEmitter ; emitter . emit ( & artifacts , & other_pkgs , & meta_pkgs , params , docker_cfg ) ? ; } Ok ( ( ) ) }
Responsible for building of all requested components
Responsible for building of all requested components
params
&Params