1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #5238 from cakebaker/uucore_ranges_feature

uucore: turn ranges into a feature
This commit is contained in:
Sylvestre Ledru 2023-09-03 17:41:30 +02:00 committed by GitHub
commit 7c7a6083d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 4 deletions

View file

@ -16,7 +16,7 @@ path = "src/cut.rs"
[dependencies]
clap = { workspace = true }
uucore = { workspace = true }
uucore = { workspace = true, features = ["ranges"] }
memchr = { workspace = true }
bstr = { workspace = true }
is-terminal = { workspace = true }

View file

@ -16,7 +16,7 @@ path = "src/numfmt.rs"
[dependencies]
clap = { workspace = true }
uucore = { workspace = true }
uucore = { workspace = true, features = ["ranges"] }
[[bin]]
name = "numfmt"

View file

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

View file

@ -16,6 +16,8 @@ pub mod fsext;
pub mod lines;
#[cfg(feature = "memo")]
pub mod memo;
#[cfg(feature = "ranges")]
pub mod ranges;
#[cfg(feature = "ringbuffer")]
pub mod ringbuffer;
#[cfg(feature = "sum")]

View file

@ -26,7 +26,6 @@ pub use crate::mods::line_ending;
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::version_cmp;
// * string parsing modules
@ -48,6 +47,8 @@ pub use crate::features::fsext;
pub use crate::features::lines;
#[cfg(feature = "memo")]
pub use crate::features::memo;
#[cfg(feature = "ranges")]
pub use crate::features::ranges;
#[cfg(feature = "ringbuffer")]
pub use crate::features::ringbuffer;
#[cfg(feature = "sum")]

View file

@ -9,7 +9,6 @@ pub mod error;
pub mod line_ending;
pub mod os;
pub mod panic;
pub mod ranges;
pub mod version_cmp;
// dir and vdir also need access to the quoting_style module
pub mod quoting_style;