Expand description
Core abstractions for workspace and dependency resolution.
This module provides the fundamental traits and types for working with workspaces across different package managers. The architecture is built around:
- Traits - Define the interface for discovery, parsing, and resolution
- Types - Provide data structures for representing workspaces and dependencies
§Trait-Based Architecture
The trait-based design allows for clean separation of concerns and makes it easy to add support for new package managers by implementing the core traits:
WorkspaceDiscovery- How to find and validate workspace membersLockfileParser- How to parse package manager-specific lockfilesDependencyResolver- How to build dependency graphs from workspace data
Re-exports§
pub use traits::DependencyResolver;pub use traits::LockfileParser;pub use traits::WorkspaceDiscovery;pub use types::DependencyRef;pub use types::DependencySource;pub use types::DependencySpec;pub use types::LockfileEntry;pub use types::PackageManager;pub use types::Url;pub use types::Version;pub use types::VersionReq;pub use types::Workspace;pub use types::WorkspaceMember;