8000 uucore: turn quoting_style into a feature by cakebaker · Pull Request #5265 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

uucore: turn quoting_style into a feature #5265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/uu/dir/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
7 changes: 6 additions & 1 deletion src/uu/ls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down
2 changes: 1 addition & 1 deletion src/uu/vdir/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
2 changes: 1 addition & 1 deletion src/uu/wc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
1 change: 1 addition & 0 deletions src/uucore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ mode = ["libc"]
perms = ["libc", "walkdir"]
pipes = []
process = ["libc"]
quoting-style = []
ranges = []
ringbuffer = []
signals = []
Expand Down
2 changes: 2 additions & 0 deletions src/uucore/src/lib/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
3 changes: 2 additions & 1 deletion src/uucore/src/lib/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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")]
Expand Down
2 changes: 0 additions & 2 deletions src/uucore/src/lib/mods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
0