pub struct PackageRegistry { /* private fields */ }Expand description
Multi-ecosystem package registry implementation.
Supports fetching versions from:
- npm (Node.js)
- PyPI (Python)
- Maven (Java)
- crates.io (Rust)
- Go proxy (Go modules)
- Packagist (PHP/Composer)
- RubyGems (Ruby/Bundler)
- NuGet (.NET)
Implementations§
Source§impl PackageRegistry
impl PackageRegistry
Sourcepub fn with_client(client: Client) -> Self
pub fn with_client(client: Client) -> Self
Create a new PackageRegistry with a custom HTTP client.
Trait Implementations§
Source§impl Clone for PackageRegistry
impl Clone for PackageRegistry
Source§fn clone(&self) -> PackageRegistry
fn clone(&self) -> PackageRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for PackageRegistry
impl Default for PackageRegistry
Source§impl VersionRegistry for PackageRegistry
impl VersionRegistry for PackageRegistry
Source§fn get_versions<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ecosystem: &'life1 str,
package: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_versions<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ecosystem: &'life1 str,
package: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get all available versions for a package in the given ecosystem.
Auto Trait Implementations§
impl Freeze for PackageRegistry
impl !RefUnwindSafe for PackageRegistry
impl Send for PackageRegistry
impl Sync for PackageRegistry
impl Unpin for PackageRegistry
impl !UnwindSafe for PackageRegistry
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