Struct maturin::SDistWriter
source · pub struct SDistWriter { /* private fields */ }
Expand description
Creates a .tar.gz archive containing the source distribution
Implementations§
Trait Implementations§
source§impl ModuleWriter for SDistWriter
impl ModuleWriter for SDistWriter
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_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 to the target path relative to the module base path
Auto Trait Implementations§
impl Freeze for SDistWriter
impl RefUnwindSafe for SDistWriter
impl Send for SDistWriter
impl Sync for SDistWriter
impl Unpin for SDistWriter
impl UnwindSafe for SDistWriter
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