cargo_util_terminal/lib.rs
1//! Miscellaneous support code used by Cargo.
2//!
3//! > This crate is maintained by the Cargo team, primarily for use by Cargo
4//! > and not intended for external use (except as a transitive dependency). This
5//! > crate may make major changes to its APIs or be deprecated without warning.
6
7#![allow(clippy::disallowed_methods)]
8
9mod shell;
10
11pub mod style;
12
13pub use annotate_snippets as report;
14pub use shell::ColorChoice;
15pub use shell::Hyperlink;
16pub use shell::Shell;
17pub use shell::TtyWidth;
18pub use shell::Verbosity;
19
20pub type CargoResult<T> = anyhow::Result<T>;