Skip to main content

crate_cli/
lib.rs

1//! crate-cli
2//!
3//! A command-line tool for managing Cargo package lifecycles:
4//! version bump, workspace dependency sync,
5//! members-ordered publish and code formatting.
6
7mod bump;
8mod cli;
9mod command;
10mod config;
11mod fmt;
12mod help;
13mod logger;
14mod manifest;
15mod message;
16mod publish;
17mod sync;
18mod tool;
19mod version;
20
21pub use {
22    bump::*, command::*, config::*, fmt::*, help::*, logger::*, manifest::*, publish::*, sync::*,
23    version::*,
24};
25
26pub(crate) use {cli::*, message::*, tool::*};
27
28pub(crate) use std::{
29    collections::HashMap,
30    env::args,
31    error::Error,
32    ffi::OsStr,
33    fmt::Arguments,
34    fs::{self, DirEntry, FileType},
35    io::{self, ErrorKind},
36    path::{Path, PathBuf},
37    process::{ExitStatus, Output, Stdio},
38    str::{Lines, Split, SplitWhitespace},
39    sync::{Arc, LazyLock},
40    time::{SystemTime, UNIX_EPOCH},
41};
42
43pub(crate) use {
44    color_output::*,
45    log::{self, SetLoggerError},
46    lombok_macros::*,
47    regex::{Captures, Regex},
48    tidy::{
49        self, Eol, Language, Options, Shared, Whitespace, Wrap,
50        css::Dialect,
51        embed::{Kind, Request, Verbatim},
52        js::TrailingComma,
53        markdown::{Code, Heading},
54    },
55    tokio::{
56        fs::{ReadDir, read_dir, read_to_string, write},
57        process::Command,
58        spawn,
59        sync::{Mutex, MutexGuard},
60        task::JoinHandle,
61        time::{Duration, sleep},
62    },
63    toml::{Value, from_str},
64    toml_edit::{Array, DocumentMut, Item, TableLike, TomlError, value},
65    which::which,
66};