Struct palletizer::Registry[][src]

pub struct Registry { /* fields omitted */ }

Implementations

Initialize a new registry with a config file.

Open an existing registry.

Get the path of the registry.

Get the git repository of the index.

Get the absolute path of the index repository.

Get the absolute path of the crate directory.

Read the index entries for a specific crate.

Iterate over the names of all crates in the registry.

Add a crate to the registry using the supplied metadata.

Add a crate to the registry.

You must pass the path to a crate as packaged by cargo package.

Add a crate to the registry.

You must pass the path to a crate as packaged by cargo package.

Delete a crate from the registry.

This will completely remove the index entry and the crate files. Normally, you should yank a crate with [Self::yank-crate()] instead of deleting it.

Yank a crate from the registry.

Returns true if the crate was yanked, and false if the crate was already yanked.

If the crate is not found or if an other error occures, an error is returned.

Unyank a crate from the registry.

Returns true if the crate was unyanked, and false if the crate was already unyanked.

If the crate is not found or if an other error occures, an error is returned.

Trait Implementations

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.

Should always be Self

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.