Struct maturin::WheelWriter
source · [−]pub struct WheelWriter { /* private fields */ }
Expand description
A glorified zip builder, mostly useful for writing the record file of a wheel
Implementations
pub fn new(
tag: &str,
wheel_dir: &Path,
metadata21: &Metadata21,
tags: &[String]
) -> Result<WheelWriter>
pub fn new(
tag: &str,
wheel_dir: &Path,
metadata21: &Metadata21,
tags: &[String]
) -> Result<WheelWriter>
Create a new wheel file which can be subsequently expanded
Adds the .dist-info directory and the METADATA file in it
pub fn add_pth(
&mut self,
project_layout: &ProjectLayout,
metadata21: &Metadata21
) -> Result<()>
pub fn add_pth(
&mut self,
project_layout: &ProjectLayout,
metadata21: &Metadata21
) -> Result<()>
Add a pth file to wheel root for editable installs
Trait Implementations
Adds a directory relative to the module base path
Adds a file with bytes as content in target relative to the module base path while setting the given unix permissions Read more
Adds a file with bytes as content in target relative to the module base path
Copies the source file the the target path relative to the module base path