pub struct EcosystemRegistry { /* private fields */ }Expand description
Build dependency edges by matching declared dependency names to known packages. A registry of ecosystem adapters used to dispatch ecosystem-specific operations.
This replaces hardcoded match arms in workspace discovery, versioned-file validation, publish command construction, and lockfile command planning.
Implementations§
Source§impl EcosystemRegistry
impl EcosystemRegistry
pub fn new() -> Self
pub fn with_adapter(self, adapter: Box<dyn EcosystemAdapter>) -> Self
pub fn push_adapter(&mut self, adapter: Box<dyn EcosystemAdapter>)
pub fn discover_all(&self, root: &Path) -> MonochangeResult<AdapterDiscovery>
pub fn adapter_for_ecosystem( &self, ecosystem: Ecosystem, ) -> Option<&dyn EcosystemAdapter>
pub fn load_configured( &self, root: &Path, package_path: &Path, ecosystem: Ecosystem, ) -> MonochangeResult<Option<PackageRecord>>
pub fn supported_versioned_file_kind( &self, path: &Path, ecosystem: Ecosystem, ) -> bool
pub fn validate_versioned_file( &self, full_path: &Path, display_path: &str, ecosystem: Ecosystem, custom_fields: Option<&[String]>, ) -> MonochangeResult<()>
Trait Implementations§
Source§impl Default for EcosystemRegistry
impl Default for EcosystemRegistry
Source§fn default() -> EcosystemRegistry
fn default() -> EcosystemRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EcosystemRegistry
impl !RefUnwindSafe for EcosystemRegistry
impl !Send for EcosystemRegistry
impl !Sync for EcosystemRegistry
impl Unpin for EcosystemRegistry
impl UnsafeUnpin for EcosystemRegistry
impl !UnwindSafe for EcosystemRegistry
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