Struct maturin::SDistWriter
source · [−]pub struct SDistWriter { /* private fields */ }
Expand description
Creates a .tar.gz archive containing the source distribution
Implementations
Trait Implementations
sourceimpl ModuleWriter for SDistWriter
impl ModuleWriter for SDistWriter
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_file(
&mut self,
target: impl AsRef<Path>,
source: impl AsRef<Path>
) -> Result<()>
fn add_file(
&mut self,
target: impl AsRef<Path>,
source: impl AsRef<Path>
) -> Result<()>
Copies the source file the the target path relative to the module base path
Auto Trait Implementations
impl RefUnwindSafe for SDistWriter
impl Send for SDistWriter
impl Sync for SDistWriter
impl Unpin for SDistWriter
impl UnwindSafe for SDistWriter
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