Struct palletizer::Registry [−][src]
pub struct Registry { /* fields omitted */ }
Implementations
Initialize a new registry with a config file.
Get the git repository of the index.
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.