Merge pull request #1191 from sharkdp/chrono-without-time
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Remove time from transitive dependencies of chrono
authored by Tavian Barnes · committed by GitHub · parents 6e3eb26, 39d80a5 · Browse files · 3 files·+19 added−35 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+19 added−35 removed
- other:+19 added−35 removed
Provenance
- Commit
8f51026- Tree
e985a6d- Author
Tavian Barnes <tavianator@tavianator.com>- Committer
GitHub <noreply@github.com>- Parent 1
6e3eb26- Parent 2
39d80a5
3 files changed+19 added−35 removed
modified:src/filter/time.rs+1 added-1 removed
18 unmodified lines19 .map(|dt| dt.into())20 .ok()21 .or_else(|| {22 NaiveDate::parse_from_str(s, "%F")23- .map(|nd| nd.and_hms(0, 0, 0))23 .ok()24+ .and_then(|nd| nd.and_hms_opt(0, 0, 0))25 .and_then(|ndt| Local.from_local_datetime(&ndt).single())26 })27 .or_else(|| Local.datetime_from_str(s, "%F %T").ok())28 .map(|dt| dt.into())103 unmodified linesmodified:Cargo.lock+13 added-33 removed
87 unmodified lines88 checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"89 90 [[package]]91 name = "chrono"92-version = "0.4.22"92+version = "0.4.23"93 source = "registry+https://github.com/rust-lang/crates.io-index"94-checksum = "bfd4d1b31faaa3a89d7934dbded3111da0d2ef28e3ebccdb4f0179f5929d1ef1"94+checksum = "16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f"95 dependencies = [96 "iana-time-zone",97- "js-sys",97 "num-integer",98 "num-traits",100- "time",101- "wasm-bindgen",99 "winapi",100 ]101 102 [[package]]89 unmodified lines192 ]193 194 [[package]]195 name = "cxx"199-version = "1.0.80"196+version = "1.0.82"197 source = "registry+https://github.com/rust-lang/crates.io-index"201-checksum = "6b7d4e43b25d3c994662706a1d4fcfc32aaa6afd287502c111b237093bb23f3a"198+checksum = "d4a41a86530d0fe7f5d9ea779916b7cadd2d4f9add748b99c2c029cbbdfaf453"199 dependencies = [200 "cc",201 "cxxbridge-flags",202 "cxxbridge-macro",1 unmodified line204 ]205 206 [[package]]207 name = "cxx-build"211-version = "1.0.80"208+version = "1.0.82"209 source = "registry+https://github.com/rust-lang/crates.io-index"213-checksum = "84f8829ddc213e2c1368e51a2564c552b65a8cb6a28f31e576270ac81d5e5827"210+checksum = "06416d667ff3e3ad2df1cd8cd8afae5da26cf9cec4d0825040f88b5ca659a2f0"211 dependencies = [212 "cc",213 "codespan-reporting",214 "once_cell",4 unmodified lines219 ]220 221 [[package]]222 name = "cxxbridge-flags"226-version = "1.0.80"223+version = "1.0.82"224 source = "registry+https://github.com/rust-lang/crates.io-index"228-checksum = "e72537424b474af1460806647c41d4b6d35d09ef7fe031c5c2fa5766047cc56a"225+checksum = "820a9a2af1669deeef27cb271f476ffd196a2c4b6731336011e0ba63e2c7cf71"226 227 [[package]]228 name = "cxxbridge-macro"232-version = "1.0.80"229+version = "1.0.82"230 source = "registry+https://github.com/rust-lang/crates.io-index"234-checksum = "309e4fb93eed90e1e14bea0da16b209f81813ba9fc7830c20ed151dd7bc0a4d7"231+checksum = "a08a6e2fcc370a089ad3b4aaf54db3b1b4cee38ddabce5896b33eb693275f470"232 dependencies = [233 "proc-macro2",234 "quote",235 "syn",133 unmodified lines369 checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31"370 dependencies = [371 "cfg-if",372 "libc",376- "wasi 0.11.0+wasi-snapshot-preview1",373+ "wasi",374 ]375 376 [[package]]377 name = "globset"30 unmodified lines408 checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"409 410 [[package]]411 name = "iana-time-zone"415-version = "0.1.51"412+version = "0.1.53"413 source = "registry+https://github.com/rust-lang/crates.io-index"417-checksum = "f5a6ef98976b22b3b7f2f3a806f858cb862044cfa66805aa3ad84cb3d3b785ed"414+checksum = "64c122667b287044802d6ce17ee2ddf13207ed924c712de9a66a5814d5b64765"415 dependencies = [416 "android_system_properties",417 "core-foundation-sys",418 "iana-time-zone-haiku",433 unmodified lines852 "once_cell",853 ]854 855 [[package]]859-name = "time"860-version = "0.1.44"861-source = "registry+https://github.com/rust-lang/crates.io-index"862-checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255"863-dependencies = [864- "libc",865- "wasi 0.10.0+wasi-snapshot-preview1",866- "winapi",867-]868-869-[[package]]856 name = "unicode-ident"857 version = "1.0.5"858 source = "registry+https://github.com/rust-lang/crates.io-index"859 checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3"32 unmodified lines892 ]893 894 [[package]]895 name = "wasi"910-version = "0.10.0+wasi-snapshot-preview1"911-source = "registry+https://github.com/rust-lang/crates.io-index"912-checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"913-914-[[package]]915-name = "wasi"896 version = "0.11.0+wasi-snapshot-preview1"897 source = "registry+https://github.com/rust-lang/crates.io-index"898 checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"899 184 unmodified linesmodified:Cargo.toml+5 added-1 removed
44 unmodified lines454647484949505152535455565758596061626364656629 unmodified lines44 unmodified linesglobset = "0.4"anyhow = "1.0"dirs-next = "2.0"normpath = "0.3.2"chrono = "0.4"once_cell = "1.15.0"crossbeam-channel = "0.5.6"clap_complete = {version = "4.0.6", optional = true}faccess = "0.2.4"
[dependencies.clap]version = "4.0.22"features = ["suggestions", "color", "wrap_help", "cargo", "unstable-grouped", "derive"]
[dependencies.chrono]version = "0.4.23"default-features = falsefeatures = ["std", "clock"]
[dependencies.lscolors]version = "0.13"default-features = falsefeatures = ["nu-ansi-term"]29 unmodified lines