uucore: Move parser to a feature

This will eventually be needed as we'll want parse_time to
call into num_parser, which was previously contained in format
feature.
This commit is contained in:
Nicolas Boichat
2025-04-04 15:25:06 +02:00
parent a937aa5117
commit 6243dd5494
63 changed files with 90 additions and 79 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ tempfile = "3.15.0"
rand = { version = "0.9.0", features = ["small_rng"] }
similar = "2.5.0"
uucore = { path = "../src/uucore/" }
uucore = { path = "../src/uucore/", features = ["parser"] }
uu_date = { path = "../src/uu/date/" }
uu_test = { path = "../src/uu/test/" }
uu_expr = { path = "../src/uu/expr/" }
+1 -1
View File
@@ -1,7 +1,7 @@
#![no_main]
use libfuzzer_sys::fuzz_target;
use uucore::parse_glob;
use uucore::parser::parse_glob;
fuzz_target!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {
+1 -1
View File
@@ -1,7 +1,7 @@
#![no_main]
use libfuzzer_sys::fuzz_target;
use uucore::parse_size::parse_size_u64;
use uucore::parser::parse_size::parse_size_u64;
fuzz_target!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {
+1 -1
View File
@@ -1,7 +1,7 @@
#![no_main]
use libfuzzer_sys::fuzz_target;
use uucore::parse_time;
use uucore::parser::parse_time;
fuzz_target!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {