Byron / google-apis-rs

A binding and CLI generator for all Google APIs
http://byron.github.io/google-apis-rs
Other
983 stars 132 forks source link

[google-apis-common] compilation error #479

Closed Dreaming-Codes closed 4 months ago

Dreaming-Codes commented 4 months ago

I'm unable to build the latest version of google-apis-common.

error[E0599]: no function or associated item named `try_seconds` found for struct `chrono::Duration` in the current scope
   --> /home/dreamingcodes/.cargo/registry/src/index.crates.io-6f17d22bba15001f/google-apis-common-6.0.2/src/serde.rs:100:26
    |
100 |             Ok(Duration::try_seconds(seconds)
    |                          ^^^^^^^^^^^
    |                          |
    |                          function or associated item not found in `Duration`
    |                          help: there is an associated function with a similar name: `seconds`
    |
note: if you're trying to build a new `chrono::Duration` consider using one of the following associated functions:
Dreaming-Codes commented 4 months ago

Downgrading chrono to 0.4.34 fix this

Byron commented 4 months ago

Thanks for the heads-up. I released https://github.com/Byron/google-apis-rs/releases/tag/google-apis-common-v6.0.3 to hopefully fix this. This issue can be reopened if not the case.