cargo - Rust (original) (raw)

Expand description

§Cargo as a library

There are two places you can find API documentation of cargo-the-library,

This library is maintained by the Cargo team, primarily for use by Cargo and not intended for external use (except as a transitive dependency). This crate may make major changes to its APIs. See The Cargo Book: External tools for more on this topic.

§Overview

Major components of cargo include:

Related crates:

§File Overview

Files that interact with cargo include

§Contribute to Cargo documentations

The Cargo team always continues improving all external and internal documentations. If you spot anything could be better, don’t hesitate to discuss with the team on Zulip t-cargo stream, or submit an issue right on GitHub. There is also an issue label A-documenting-cargo-itself, which is generally for documenting user-facing The Cargo Book, but the Cargo team is welcome any form of enhancement for the Cargo Contributor Guideand this API documentation as well.

pub use crate::util::errors::[AlreadyPrintedError](util/errors/struct.AlreadyPrintedError.html "struct cargo::util::errors::AlreadyPrintedError");

pub use crate::util::errors::[InternalError](util/errors/struct.InternalError.html "struct cargo::util::errors::InternalError");

pub use crate::util::errors::[VerboseError](util/errors/struct.VerboseError.html "struct cargo::util::errors::VerboseError");

pub use crate::util::[indented_lines](util/fn.indented%5Flines.html "fn cargo::util::indented_lines");

pub use crate::util::[CargoResult](util/errors/type.CargoResult.html "type cargo::util::errors::CargoResult");

pub use crate::util::[CliError](util/errors/struct.CliError.html "struct cargo::util::errors::CliError");

pub use crate::util::[CliResult](util/errors/type.CliResult.html "type cargo::util::errors::CliResult");

pub use crate::util::[GlobalContext](util/context/struct.GlobalContext.html "struct cargo::util::context::GlobalContext");

core

macros 🔒

ops

sources

The trait for sources of Cargo packages and its built-in implementations.

util

version 🔒

Code for representing cargo’s release version number.

__shell_print

drop_eprint

drop_eprintln

drop_print

drop_println

try_old_curl

When dynamically linked against libcurl, we want to ignore some failures when using old versions that don’t support certain features.

try_old_curl_http2_pipewait

Enable HTTP/2 and pipewait to be used as it’ll allow true multiplexing which makes downloads much faster.

CARGO_ENV

_display_error 🔒

display_error

Displays an error, and all its causes, to stderr.

display_warning_with_error

Displays a warning, with an error object providing detailed information and context.

exit_with_error

version

Returns information about cargo’s version.