Skip to content
Myr

Remove time from transitive dependencies of chrono

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Because chrono was depending on an older version of time, and we don't actually need it with recent versions of chrono.

authored by Thayne McCombs · committed by Thayne McCombs · parent 6e3eb26 · 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.

Trailers

  • Relates-To: #1188
  • Alernative-To: #1190

Diff stats

3 files+19 added−35 removed

  • other:+19 added−35 removed

3 files+19 added−35 removed

modified:src/filter/time.rs+1 added-1 removed
18 unmodified lines
19 .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 lines
modified:Cargo.lock+13 added-33 removed
87 unmodified lines
88checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"8990[[package]]91name = "chrono"92version = "0.4.22"92version = "0.4.23"93source = "registry+https://github.com/rust-lang/crates.io-index"94checksum = "bfd4d1b31faaa3a89d7934dbded3111da0d2ef28e3ebccdb4f0179f5929d1ef1"94checksum = "16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f"95dependencies = [96 "iana-time-zone",97 "js-sys",97 "num-integer",98 "num-traits",100 "time",101 "wasm-bindgen",99 "winapi",100]101102[[package]]
89 unmodified lines
192]193194[[package]]195name = "cxx"199version = "1.0.80"196version = "1.0.82"197source = "registry+https://github.com/rust-lang/crates.io-index"201checksum = "6b7d4e43b25d3c994662706a1d4fcfc32aaa6afd287502c111b237093bb23f3a"198checksum = "d4a41a86530d0fe7f5d9ea779916b7cadd2d4f9add748b99c2c029cbbdfaf453"199dependencies = [200 "cc",201 "cxxbridge-flags",202 "cxxbridge-macro",
1 unmodified line
204]205206[[package]]207name = "cxx-build"211version = "1.0.80"208version = "1.0.82"209source = "registry+https://github.com/rust-lang/crates.io-index"213checksum = "84f8829ddc213e2c1368e51a2564c552b65a8cb6a28f31e576270ac81d5e5827"210checksum = "06416d667ff3e3ad2df1cd8cd8afae5da26cf9cec4d0825040f88b5ca659a2f0"211dependencies = [212 "cc",213 "codespan-reporting",214 "once_cell",
4 unmodified lines
219]220221[[package]]222name = "cxxbridge-flags"226version = "1.0.80"223version = "1.0.82"224source = "registry+https://github.com/rust-lang/crates.io-index"228checksum = "e72537424b474af1460806647c41d4b6d35d09ef7fe031c5c2fa5766047cc56a"225checksum = "820a9a2af1669deeef27cb271f476ffd196a2c4b6731336011e0ba63e2c7cf71"226227[[package]]228name = "cxxbridge-macro"232version = "1.0.80"229version = "1.0.82"230source = "registry+https://github.com/rust-lang/crates.io-index"234checksum = "309e4fb93eed90e1e14bea0da16b209f81813ba9fc7830c20ed151dd7bc0a4d7"231checksum = "a08a6e2fcc370a089ad3b4aaf54db3b1b4cee38ddabce5896b33eb693275f470"232dependencies = [233 "proc-macro2",234 "quote",235 "syn",
133 unmodified lines
369checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31"370dependencies = [371 "cfg-if",372 "libc",376 "wasi 0.11.0+wasi-snapshot-preview1",373 "wasi",374]375376[[package]]377name = "globset"
30 unmodified lines
408checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"409410[[package]]411name = "iana-time-zone"415version = "0.1.51"412version = "0.1.53"413source = "registry+https://github.com/rust-lang/crates.io-index"417checksum = "f5a6ef98976b22b3b7f2f3a806f858cb862044cfa66805aa3ad84cb3d3b785ed"414checksum = "64c122667b287044802d6ce17ee2ddf13207ed924c712de9a66a5814d5b64765"415dependencies = [416 "android_system_properties",417 "core-foundation-sys",418 "iana-time-zone-haiku",
433 unmodified lines
852 "once_cell",853]854855[[package]]859name = "time"860version = "0.1.44"861source = "registry+https://github.com/rust-lang/crates.io-index"862checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255"863dependencies = [864 "libc",865 "wasi 0.10.0+wasi-snapshot-preview1",866 "winapi",867]868869[[package]]856name = "unicode-ident"857version = "1.0.5"858source = "registry+https://github.com/rust-lang/crates.io-index"859checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3"
32 unmodified lines
892]893894[[package]]895name = "wasi"910version = "0.10.0+wasi-snapshot-preview1"911source = "registry+https://github.com/rust-lang/crates.io-index"912checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"913914[[package]]915name = "wasi"896version = "0.11.0+wasi-snapshot-preview1"897source = "registry+https://github.com/rust-lang/crates.io-index"898checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"899
184 unmodified lines
modified:Cargo.toml+5 added-1 removed