mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 07:12:44 +00:00
Merge pull request #5232 from cakebaker/uucore_update_control_feature
uucore: turn update_control into a feature
This commit is contained in:
commit
1f3f9d85f7
7 changed files with 15 additions and 7 deletions
|
@ -30,6 +30,7 @@ uucore = { workspace = true, features = [
|
|||
"fs",
|
||||
"perms",
|
||||
"mode",
|
||||
"update-control",
|
||||
] }
|
||||
walkdir = { workspace = true }
|
||||
indicatif = { workspace = true }
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 = []
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue