Crate cargo_component_core

Source
Expand description

Core library of cargo-component.

Modules§

command
Module for common command implementation.
lock
Module for the lock file implementation.
progress
Module for the implementation of a progress bar.
registry
Module for resolving dependencies from a component registry.
terminal
Module for the terminal output implementation.

Structs§

VersionedPackageName
Represents a versioned component package name.

Constants§

CACHE_DIR
The cache directory name used by default
CARGO_COMPONENT_DIR
The root directory name used for default cargo component directories

Functions§

cache_dir
A helper that fetches the default directory if the given directory is None.
default_cache_dir
Returns the path to the default cache directory, returning an error if a cache directory cannot be found.