Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update time version #10

Open
joshcangit opened this issue Aug 27, 2024 · 1 comment
Open

Update time version #10

joshcangit opened this issue Aug 27, 2024 · 1 comment

Comments

@joshcangit
Copy link

joshcangit commented Aug 27, 2024

Update time dependency version

I found a similar issue at time-rs/time#681.

Error out when building dependency time.
/home/xxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.20/src/format_description/parse/mod.rs:83:9
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
help: consider giving `items` an explicit type, where the placeholders `_` are specified
83 |     let items: Box<_> = format_items
   |                      
For more information about this error, try `rustc --explain E0282`.

Other issues also show error when using 1.80.0.
I'm using rustc 1.80.1.

Updating `time` should also update other packages too.
    Updating crates.io index
     Locking 11 packages to latest compatible versions
      Adding deranged v0.3.11
      Adding num-conv v0.1.0
      Adding powerfmt v0.2.0
    Updating proc-macro2 v1.0.51 -> v1.0.86
    Updating quote v1.0.23 -> v1.0.37
    Updating serde v1.0.156 -> v1.0.209
    Updating serde_derive v1.0.156 -> v1.0.209
      Adding syn v2.0.76
    Updating time v0.3.20 -> v0.3.36
    Updating time-core v0.1.0 -> v0.1.2
    Updating time-macros v0.2.8 -> v0.2.18

Switch to chrono

01mf02/jaq#199

Bumping time to v0.3.36 raises the minimum supported Rust version to 1.67.0.
But if you need to support earlier versions, then you might want to switch to chrono.
It supports Rust versions down to 1.61.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@joshcangit and others