mirror of
https://github.com/uutils/coreutils
synced 2025-01-19 00:24:13 +00:00
uucore: turn quoting_style into a feature
This commit is contained in:
parent
7679e90818
commit
d19b8b78d8
9 changed files with 14 additions and 7 deletions
|
@ -16,7 +16,7 @@ path = "src/dir.rs"
|
|||
|
||||
[dependencies]
|
||||
clap = { workspace = true, features = ["env"] }
|
||||
uucore = { workspace = true, features = ["entries", "fs"] }
|
||||
uucore = { workspace = true, features = ["entries", "fs", "quoting-style"] }
|
||||
uu_ls = { workspace = true }
|
||||
|
||||
[[bin]]
|
||||
|
|
|
@ -23,7 +23,12 @@ term_grid = { workspace = true }
|
|||
terminal_size = { workspace = true }
|
||||
glob = { workspace = true }
|
||||
lscolors = { workspace = true }
|
||||
uucore = { workspace = true, features = ["entries", "fs", "version-cmp"] }
|
||||
uucore = { workspace = true, features = [
|
||||
"entries",
|
||||
"fs",
|
||||
"quoting-style",
|
||||
"version-cmp",
|
||||
] }
|
||||
once_cell = { workspace = true }
|
||||
selinux = { workspace = true, optional = true }
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ path = "src/vdir.rs"
|
|||
|
||||
[dependencies]
|
||||
clap = { workspace = true, features = ["env"] }
|
||||
uucore = { workspace = true, features = ["entries", "fs"] }
|
||||
uucore = { workspace = true, features = ["entries", "fs", "quoting-style"] }
|
||||
uu_ls = { workspace = true }
|
||||
|
||||
[[bin]]
|
||||
|
|
|
@ -16,7 +16,7 @@ path = "src/wc.rs"
|
|||
|
||||
[dependencies]
|
||||
clap = { workspace = true }
|
||||
uucore = { workspace = true, features = ["pipes"] }
|
||||
uucore = { workspace = true, features = ["pipes", "quoting-style"] }
|
||||
bytecount = { workspace = true }
|
||||
thiserror = { workspace = true }
|
||||
unicode-width = { workspace = true }
|
||||
|
|
|
@ -82,6 +82,7 @@ mode = ["libc"]
|
|||
perms = ["libc", "walkdir"]
|
||||
pipes = []
|
||||
process = ["libc"]
|
||||
quoting-style = []
|
||||
ranges = []
|
||||
ringbuffer = []
|
||||
signals = []
|
||||
|
|
|
@ -16,6 +16,8 @@ pub mod fsext;
|
|||
pub mod lines;
|
||||
#[cfg(feature = "memo")]
|
||||
pub mod memo;
|
||||
#[cfg(feature = "quoting-style")]
|
||||
pub mod quoting_style;
|
||||
#[cfg(feature = "ranges")]
|
||||
pub mod ranges;
|
||||
#[cfg(feature = "ringbuffer")]
|
||||
|
|
|
@ -25,7 +25,6 @@ pub use crate::mods::error;
|
|||
pub use crate::mods::line_ending;
|
||||
pub use crate::mods::os;
|
||||
pub use crate::mods::panic;
|
||||
pub use crate::mods::quoting_style;
|
||||
|
||||
// * string parsing modules
|
||||
pub use crate::parser::parse_glob;
|
||||
|
@ -46,6 +45,8 @@ pub use crate::features::fsext;
|
|||
pub use crate::features::lines;
|
||||
#[cfg(feature = "memo")]
|
||||
pub use crate::features::memo;
|
||||
#[cfg(feature = "quoting-style")]
|
||||
pub use crate::features::quoting_style;
|
||||
#[cfg(feature = "ranges")]
|
||||
pub use crate::features::ranges;
|
||||
#[cfg(feature = "ringbuffer")]
|
||||
|
|
|
@ -9,5 +9,3 @@ pub mod error;
|
|||
pub mod line_ending;
|
||||
pub mod os;
|
||||
pub mod panic;
|
||||
// dir and vdir also need access to the quoting_style module
|
||||
pub mod quoting_style;
|
||||
|
|
Loading…
Reference in a new issue