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", "fs",
"perms", "perms",
"mode", "mode",
"update-control",
] } ] }
walkdir = { workspace = true } walkdir = { workspace = true }
indicatif = { workspace = true } indicatif = { workspace = true }

View file

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

View file

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

View file

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

View file

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