pub fn new(
        tag: &str,
        wheel_dir: &Path,
        metadata21: &Metadata21,
        scripts: &HashMap<String, String>,
        tags: &[String],
    ) -> Result<WheelWriter> {
        let wheel_path = wheel_dir.join(format!(
            "{}-{}-{}.whl",
            metadata21.get_distribution_escaped(),
            metadata21.get_version_escaped(),
            tag
        ));

        let file = File::create(&wheel_path)?;

        let mut builder = WheelWriter {
            zip: ZipWriter::new(file),
            record: Vec::new(),
            record_file: metadata21.get_dist_info_dir().join("RECORD"),
            wheel_path,
        };

        write_dist_info(&mut builder, &metadata21, &scripts, &tags)?;

        Ok(builder)
    }
/// Create a new wheel file which can be subsequently expanded
///
/// Adds the .dist-info directory and the METADATA file in it
Create a new wheel file which can be subsequently expanded
Adds the .dist-info directory and the METADATA file in it
Create a new wheel file which can be subsequently expanded Adds the . dist - info directory and the METADATA file in it
pub fn new(
        tag: &str,
        wheel_dir: &Path,
        metadata21: &Metadata21,
        scripts: &HashMap<String, String>,
        tags: &[String],
    ) -> Result<WheelWriter> {
        let wheel_path = wheel_dir.join(format!(
            "{}-{}-{}.whl",
            metadata21.get_distribution_escaped(),
            metadata21.get_version_escaped(),
            tag
        ));
        let file = File::create(&wheel_path)?;
        let mut builder = WheelWriter {
            zip: ZipWriter::new(file),
            record: Vec::new(),
            record_file: metadata21.get_dist_info_dir().join("RECORD"),
            wheel_path,
        };
        write_dist_info(&mut builder, &metadata21, &scripts, &tags)?;
        Ok(builder)
    }
pub fn new ( tag : & str , wheel_dir : & Path , metadata21 : & Metadata21 , scripts : & HashMap < String , String > , tags : & [ String ] , ) -> Result < WheelWriter > { let wheel_path = wheel_dir . join ( format ! ( " " metadata21 get_distribution_escaped ( ) metadata21 get_version_escaped ( ) tag ) ) ; let file = File :: create ( & wheel_path ) ? ; let mut builder = WheelWriter { zip : ZipWriter :: new ( file ) , record : Vec :: new ( ) , record_file : metadata21 . get_dist_info_dir ( ) . join ( " " ) , wheel_path , } ; write_dist_info ( & mut builder , & metadata21 , & scripts , & tags ) ? ; Ok ( builder ) }
Create a new wheel file which can be subsequently expanded
Adds the .dist-info directory and the METADATA file in it
Create a new wheel file which can be subsequently expanded Adds the . dist - info directory and the METADATA file in it
tag
&str
wheel_dir
&Path
metadata21
&Metadata21
scripts
&HashMap<String, String>
tags
&[String]
tag
&str
wheel_dir
&Path
metadata21
&Metadata21
scripts
&HashMap<String, String>
tags
&[String]