Struct crates_index::BareIndex[][src]

pub struct BareIndex {
    pub url: String,
    // some fields omitted
}
Expand description

Access to a “bare” git index that fetches files directly from the repo instead of local checkout

Uses Cargo’s cache

Fields

url: String

Implementations

Creates a bare index from a provided URL, opening the same location on disk that cargo uses for that registry index.

Creates a bare index at the provided path with the specified repository URL.

Creates an index for the default crates.io registry, using the same disk location as cargo itself.

Opens the local index, which acts as a kind of lock for source control operations

Get the index directory.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.