pub struct DependencyManager { /* private fields */ }Expand description
Dependency manager for handling multiple external dependencies.
Implementations§
Source§impl DependencyManager
impl DependencyManager
Sourcepub fn with_cutlass(self, commit: Option<&str>) -> Self
pub fn with_cutlass(self, commit: Option<&str>) -> Self
Add CUTLASS dependency.
Sourcepub fn with_git_dependency(
self,
name: &str,
repo: &str,
commit: &str,
include_paths: Vec<&str>,
extra_paths: Vec<&str>,
recurse_submodules: bool,
) -> Self
pub fn with_git_dependency( self, name: &str, repo: &str, commit: &str, include_paths: Vec<&str>, extra_paths: Vec<&str>, recurse_submodules: bool, ) -> Self
Add a custom git dependency.
Sourcepub fn with_local_include<P: Into<PathBuf>>(self, path: P) -> Self
pub fn with_local_include<P: Into<PathBuf>>(self, path: P) -> Self
Add a local include path.
Sourcepub fn fetch_all(&self, out_dir: &Path) -> Result<Vec<String>>
pub fn fetch_all(&self, out_dir: &Path) -> Result<Vec<String>>
Fetch all dependencies and return include arguments.
CUTLASS is special-cased: if cargo set DEP_CUTLASS_INCLUDE (which it
does whenever the consuming crate also depends on baracuda-cutlass-sys,
since that crate has links = "cutlass"), forge uses those headers
directly and skips its own git fetch. This lets users opt into the
version-pinned, feature-flagged baracuda-cutlass-sys flow without
changing their KernelBuilder calls.
Sourcepub fn fetch_dependency(&self, name: &str, out_dir: &Path) -> Result<PathBuf>
pub fn fetch_dependency(&self, name: &str, out_dir: &Path) -> Result<PathBuf>
Fetch a specific dependency and return its checkout root.
Sourcepub fn has_cutlass(&self) -> bool
pub fn has_cutlass(&self) -> bool
Check if CUTLASS is enabled.
Trait Implementations§
Source§impl Clone for DependencyManager
impl Clone for DependencyManager
Source§fn clone(&self) -> DependencyManager
fn clone(&self) -> DependencyManager
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DependencyManager
impl Debug for DependencyManager
Source§impl Default for DependencyManager
impl Default for DependencyManager
Source§fn default() -> DependencyManager
fn default() -> DependencyManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DependencyManager
impl RefUnwindSafe for DependencyManager
impl Send for DependencyManager
impl Sync for DependencyManager
impl Unpin for DependencyManager
impl UnsafeUnpin for DependencyManager
impl UnwindSafe for DependencyManager
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more