1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 05:27:45 +00:00

Merge pull request #5254 from cakebaker/uucore_turn_version_cmp_into_feature

uucore: turn version_cmp into a feature
This commit is contained in:
Sylvestre Ledru 2023-09-07 10:24:54 +02:00 committed by GitHub
commit 4ef093b969
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 4 deletions

View file

@ -23,7 +23,7 @@ term_grid = { workspace = true }
terminal_size = { workspace = true } terminal_size = { workspace = true }
glob = { workspace = true } glob = { workspace = true }
lscolors = { workspace = true } lscolors = { workspace = true }
uucore = { workspace = true, features = ["entries", "fs"] } uucore = { workspace = true, features = ["entries", "fs", "version-cmp"] }
once_cell = { workspace = true } once_cell = { workspace = true }
selinux = { workspace = true, optional = true } selinux = { workspace = true, optional = true }

View file

@ -27,7 +27,7 @@ rayon = { workspace = true }
self_cell = { workspace = true } self_cell = { workspace = true }
tempfile = { workspace = true } tempfile = { workspace = true }
unicode-width = { workspace = true } unicode-width = { workspace = true }
uucore = { workspace = true, features = ["fs"] } uucore = { workspace = true, features = ["fs", "version-cmp"] }
[[bin]] [[bin]]
name = "sort" name = "sort"

View file

@ -100,4 +100,5 @@ sum = [
update-control = [] update-control = []
utf8 = [] utf8 = []
utmpx = ["time", "time/macros", "libc", "dns-lookup"] utmpx = ["time", "time/macros", "libc", "dns-lookup"]
version-cmp = []
wide = [] wide = []

View file

@ -26,6 +26,8 @@ pub mod sum;
mod tokenize; mod tokenize;
#[cfg(feature = "update-control")] #[cfg(feature = "update-control")]
pub mod update_control; pub mod update_control;
#[cfg(feature = "version-cmp")]
pub mod version_cmp;
// * (platform-specific) feature-gated modules // * (platform-specific) feature-gated modules
// ** non-windows (i.e. Unix + Fuchsia) // ** non-windows (i.e. Unix + Fuchsia)

View file

@ -26,7 +26,6 @@ pub use crate::mods::line_ending;
pub use crate::mods::os; 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::version_cmp;
// * string parsing modules // * string parsing modules
pub use crate::parser::parse_glob; pub use crate::parser::parse_glob;
@ -55,6 +54,8 @@ pub use crate::features::ringbuffer;
pub use crate::features::sum; pub use crate::features::sum;
#[cfg(feature = "update-control")] #[cfg(feature = "update-control")]
pub use crate::features::update_control; pub use crate::features::update_control;
#[cfg(feature = "version-cmp")]
pub use crate::features::version_cmp;
// * (platform-specific) feature-gated modules // * (platform-specific) feature-gated modules
// ** non-windows (i.e. Unix + Fuchsia) // ** non-windows (i.e. Unix + Fuchsia)

View file

@ -9,6 +9,5 @@ pub mod error;
pub mod line_ending; pub mod line_ending;
pub mod os; pub mod os;
pub mod panic; pub mod panic;
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;