You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mod.rs
    path of file: ./repos/trunk/src/pipelines/rust
    
    the code of the file until where you have to start completion: //! Rust application pipeline.

mod output;
mod sri;
mod wasm_bindgen;
mod wasm_opt;

pub use output::RustAppOutput;

use super::{data_target_path, Attrs, TrunkAssetPipelineOutput, ATTR_HREF, SNIPPETS_DIR};
use crate::common::path_to_href;
use crate::{
    common::{
        self, apply_data_target_path, check_target_not_found_err, copy_dir_recursive, path_exists,
        target_path,
    },
    config::{CargoMetadata, CrossOrigin, Features, RtcBuild},
    pipelines::rust::sri::{SriBuilder, SriOptions, SriType},
    processing::{
        integrity::{IntegrityType, OutputDigest},
        minify::minify_js,
    },
    tools::{self, Application},
};
use anyhow::{anyhow, bail, ensu
    
    fn is_relevant_artifact(&self, art: &Artifact) -> bool {
        // package id must match
        if art.package_id != self.manifest.package.id {
            return false;
        }

        // must be cdylib or bin
        if !(art.target.kind.contains(&"bin".to_string())
            || art.target.kind.contains(&"cdylib".to_string()))
        {
            return false;
        }

        // if we have the --bin argument
        if let Some(bin) = &self.bin {
            // it must match
            if bin != &art.target.name {
                return false;
            }
        }

        // if we have a target name
        if let Some(target_name) = &self.target_name {
            if target_name != &art.target.name {
                return false;
            }
        }

        true
    }