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    borrow::Cow,
30    cmp,
31    collections::HashMap,
32    env::args,
33    error::Error,
34    ffi::{OsStr, OsString},
35    fmt::Arguments,
36    fs::{self, DirEntry, FileType},
37    io::{self, ErrorKind},
38    num::NonZeroUsize,
39    path::{Path, PathBuf},
40    process::{ExitStatus, Output, Stdio},
41    str::{Split, SplitWhitespace, from_utf8},
42    sync::{
43        Arc, LazyLock,
44        atomic::{AtomicUsize, Ordering},
45    },
46    thread::{Scope, ScopedJoinHandle, available_parallelism, scope},
47    time::{SystemTime, UNIX_EPOCH},
48};
49
50pub(crate) use {
51    color_output::*,
52    log::{self, SetLoggerError},
53    lombok_macros::*,
54    regex::{Captures, Match, Regex},
55    tidy::{
56        self, Eol, Language, Options, Shared, Whitespace, Wrap,
57        css::Dialect,
58        embed::{Kind, Request, Verbatim},
59        js::TrailingComma,
60        markdown::{Code, Heading},
61    },
62    tokio::{
63        fs::{ReadDir, read_dir, read_to_string, write},
64        process::Command,
65        spawn,
66        task::JoinHandle,
67        time::{Duration, sleep},
68    },
69    toml::{Value, from_str},
70    toml_edit::{Array, DocumentMut, Item, TableLike, TomlError, value},
71    which::which,
72};