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    io,
32    path::{Path, PathBuf},
33    process::Stdio,
34    sync::{Arc, LazyLock},
35};
36
37pub(crate) use {
38    color_output::*,
39    log::{self, SetLoggerError},
40    lombok_macros::*,
41    regex::{Captures, Regex},
42    std::ffi::OsStr,
43    tokio::{
44        fs::{ReadDir, read_dir, read_to_string, write},
45        process::Command,
46        spawn,
47        sync::{Mutex, MutexGuard},
48        task::JoinHandle,
49        time::{Duration, sleep},
50    },
51    toml::Value,
52    toml_edit::{DocumentMut, Item, TableLike, TomlError, value},
53    which::which,
54};