pub struct RuntimeDetectionEngine;Expand description
Generic runtime detection engine that can be extended for other languages
Implementations§
Source§impl RuntimeDetectionEngine
impl RuntimeDetectionEngine
Sourcepub fn detect_primary_runtime(project_path: &Path) -> RuntimeDetectionResult
pub fn detect_primary_runtime(project_path: &Path) -> RuntimeDetectionResult
Detect the primary runtime and package manager for a project
Sourcepub fn get_all_package_managers(project_path: &Path) -> Vec<PackageManager>
pub fn get_all_package_managers(project_path: &Path) -> Vec<PackageManager>
Get all available package managers in a project
Sourcepub fn uses_runtime(project_path: &Path, runtime: &str) -> bool
pub fn uses_runtime(project_path: &Path, runtime: &str) -> bool
Check if a project uses a specific runtime
Auto Trait Implementations§
impl Freeze for RuntimeDetectionEngine
impl RefUnwindSafe for RuntimeDetectionEngine
impl Send for RuntimeDetectionEngine
impl Sync for RuntimeDetectionEngine
impl Unpin for RuntimeDetectionEngine
impl UnwindSafe for RuntimeDetectionEngine
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.