[][src]Struct maturin::WheelWriter

pub struct WheelWriter { /* fields omitted */ }

A glorified zip builder, mostly useful for writing the record file of a wheel

Methods

impl WheelWriter[src]

pub fn new(
    tag: &str,
    wheel_dir: &Path,
    metadata21: &Metadata21,
    scripts: &HashMap<String, String>,
    tags: &[String]
) -> Result<WheelWriter, Error>
[src]

Create a new wheel file which can be subsequently expanded

Adds the .dist-info directory and the METADATA file in it

pub fn finish(self) -> Result<PathBuf, Error>[src]

Creates the record file and finishes the zip

Trait Implementations

impl ModuleWriter for WheelWriter[src]

fn add_bytes(
    &mut self,
    target: impl AsRef<Path>,
    bytes: &[u8]
) -> Result<(), Error>
[src]

Adds a file with bytes as content in target relative to the module base path

fn add_file(
    &mut self,
    target: impl AsRef<Path>,
    source: impl AsRef<Path>
) -> Result<(), Error>
[src]

Copies the source file the the target path relative to the module base path

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err