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§
source§impl WheelWriter
impl WheelWriter
sourcepub fn new(
tag: &str,
wheel_dir: &Path,
metadata23: &Metadata23,
tags: &[String],
excludes: Override
) -> Result<WheelWriter>
pub fn new( tag: &str, wheel_dir: &Path, metadata23: &Metadata23, tags: &[String], excludes: Override ) -> Result<WheelWriter>
Create a new wheel file which can be subsequently expanded
Adds the .dist-info directory and the METADATA file in it
sourcepub fn add_pth(
&mut self,
project_layout: &ProjectLayout,
metadata23: &Metadata23
) -> Result<()>
pub fn add_pth( &mut self, project_layout: &ProjectLayout, metadata23: &Metadata23 ) -> Result<()>
Add a pth file to wheel root for editable installs
Trait Implementations§
source§impl ModuleWriter for WheelWriter
impl ModuleWriter for WheelWriter
source§fn add_directory(&mut self, _path: impl AsRef<Path>) -> Result<()>
fn add_directory(&mut self, _path: impl AsRef<Path>) -> Result<()>
Adds a directory relative to the module base path
source§fn add_bytes_with_permissions(
&mut self,
target: impl AsRef<Path>,
bytes: &[u8],
permissions: u32
) -> Result<()>
fn add_bytes_with_permissions( &mut self, target: impl AsRef<Path>, bytes: &[u8], permissions: u32 ) -> Result<()>
Adds a file with bytes as content in target relative to the module base path while setting
the given unix permissions
source§fn add_bytes(&mut self, target: impl AsRef<Path>, bytes: &[u8]) -> Result<()>
fn add_bytes(&mut self, target: impl AsRef<Path>, bytes: &[u8]) -> Result<()>
Adds a file with bytes as content in target relative to the module base path
Auto Trait Implementations§
impl Freeze for WheelWriter
impl RefUnwindSafe for WheelWriter
impl Send for WheelWriter
impl Sync for WheelWriter
impl Unpin for WheelWriter
impl UnwindSafe for WheelWriter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more