pub fn crate_name(&self) -> String {
        let pkg = &self.data.packages[self.current_idx];
        match pkg
            .targets
            .iter()
            .find(|t| t.kind.iter().any(|k| k == "cdylib"))
        {
            Some(lib) => lib.name.replace("-", "_"),
            None => pkg.name.replace("-", "_"),
        }
    }
/// Get the crate name for the crate at the given path.
Get the crate name for the crate at the given path.
Get the crate name for the crate at the given path .
pub fn crate_name(&self) -> String {
        let pkg = &self.data.packages[self.current_idx];
        match pkg
            .targets
            .iter()
            .find(|t| t.kind.iter().any(|k| k == "cdylib"))
        {
            Some(lib) => lib.name.replace("-", "_"),
            None => pkg.name.replace("-", "_"),
        }
    }
pub fn crate_name ( & self ) -> String { let pkg = & self . data . packages [ self . current_idx ] ; match pkg . targets . iter ( ) . find ( | t | t . kind . iter ( ) . any ( | k | k == " " ) ) { Some ( lib ) => lib . name . replace ( " " , " " ) , None => pkg . name . replace ( " " , " " ) , } }
Get the crate name for the crate at the given path.
Get the crate name for the crate at the given path .
&self