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