pub struct Builder { /* private fields */ }Expand description
Build backend for creating wheels and sdists
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn new(project_root: impl Into<PathBuf>) -> Self
pub fn new(project_root: impl Into<PathBuf>) -> Self
Create a new builder for the given project
Sourcepub fn with_include_local_deps(self, include: bool) -> Self
pub fn with_include_local_deps(self, include: bool) -> Self
Set whether to include local path dependencies in the wheel
Sourcepub fn build_wheel(&self, output_dir: &Path) -> Result<BuildResult>
pub fn build_wheel(&self, output_dir: &Path) -> Result<BuildResult>
Build a wheel (PEP 427)
Sourcepub fn build_sdist(&self, output_dir: &Path) -> Result<BuildResult>
pub fn build_sdist(&self, output_dir: &Path) -> Result<BuildResult>
Build a source distribution (PEP 517)
Sourcepub fn project_root(&self) -> &Path
pub fn project_root(&self) -> &Path
Get the project root
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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