Merge pull request #5232 from cakebaker/uucore_update_control_feature

uucore: turn update_control into a feature
This commit is contained in:
Sylvestre Ledru 2023-09-02 16:22:21 +02:00 committed by GitHub
commit 1f3f9d85f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 15 additions and 7 deletions

View file

@ -30,6 +30,7 @@ uucore = { workspace = true, features = [
"fs",
"perms",
"mode",
"update-control",
] }
walkdir = { workspace = true }
indicatif = { workspace = true }

View file

@ -18,7 +18,11 @@ path = "src/mv.rs"
clap = { workspace = true }
fs_extra = { workspace = true }
indicatif = { workspace = true }
uucore = { workspace = true, features = ["backup-control", "fs"] }
uucore = { workspace = true, features = [
"backup-control",
"fs",
"update-control",
] }
[[bin]]
name = "mv"

View file

@ -80,13 +80,10 @@ lines = []
memo = ["itertools"]
mode = ["libc"]
perms = ["libc", "walkdir"]
pipes = []
process = ["libc"]
ringbuffer = []
signals = []
utf8 = []
utmpx = ["time", "time/macros", "libc", "dns-lookup"]
wide = []
pipes = []
sum = [
"digest",
"hex",
@ -99,3 +96,7 @@ sum = [
"blake3",
"sm3",
]
update-control = []
utf8 = []
utmpx = ["time", "time/macros", "libc", "dns-lookup"]
wide = []

View file

@ -22,6 +22,8 @@ pub mod ringbuffer;
pub mod sum;
#[cfg(feature = "memo")]
mod tokenize;
#[cfg(feature = "update-control")]
pub mod update_control;
// * (platform-specific) feature-gated modules
// ** non-windows (i.e. Unix + Fuchsia)

View file

@ -27,7 +27,6 @@ pub use crate::mods::os;
pub use crate::mods::panic;
pub use crate::mods::quoting_style;
pub use crate::mods::ranges;
pub use crate::mods::update_control;
pub use crate::mods::version_cmp;
// * string parsing modules
@ -53,6 +52,8 @@ pub use crate::features::memo;
pub use crate::features::ringbuffer;
#[cfg(feature = "sum")]
pub use crate::features::sum;
#[cfg(feature = "update-control")]
pub use crate::features::update_control;
// * (platform-specific) feature-gated modules
// ** non-windows (i.e. Unix + Fuchsia)

View file

@ -10,7 +10,6 @@ pub mod line_ending;
pub mod os;
pub mod panic;
pub mod ranges;
pub mod update_control;
pub mod version_cmp;
// dir and vdir also need access to the quoting_style module
pub mod quoting_style;