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
sourceimpl WheelWriter
impl WheelWriter
sourcepub 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
sourcepub 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
sourceimpl ModuleWriter for WheelWriter
impl ModuleWriter for WheelWriter
sourcefn 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
sourcefn 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 Read more
sourcefn 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 RefUnwindSafe for WheelWriter
impl Send for WheelWriter
impl Sync for WheelWriter
impl Unpin for WheelWriter
impl UnwindSafe for WheelWriter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more