uucore: turn quoting_style into a feature

This commit is contained in:
Daniel Hofstetter 2023-09-10 15:07:37 +02:00
parent 7679e90818
commit d19b8b78d8
9 changed files with 14 additions and 7 deletions

View file

@ -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]]

View file

@ -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 }

View file

@ -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]]

View file

@ -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 }

View file

@ -82,6 +82,7 @@ mode = ["libc"]
perms = ["libc", "walkdir"]
pipes = []
process = ["libc"]
quoting-style = []
ranges = []
ringbuffer = []
signals = []

View file

@ -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")]

View file

@ -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")]

View file

@ -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;