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

Do not depend on android-tzdata if the clock feature is not enabled #1220

Merged
merged 1 commit into from
Aug 21, 2023
Merged

Do not depend on android-tzdata if the clock feature is not enabled #1220

merged 1 commit into from
Aug 21, 2023

Commits on Aug 21, 2023

  1. Do not depend on android-tzdata if the clock feature is not enabled

    All usages of `android-tzdata` types are within the `offset::local`
    module, but such module is not built if the `clock` feature is not
    enabled. Therefore, `android-tzdata` is effectively an unused dependency
    when the `clock` feature is disabled.
    
    To avoid downloading unnecessary crates on build time, let's make the
    dependency on `android-tzdata` conditional on enabling the `clock`
    feature, as it was done with e.g. `iana-time-zone`.
    AlexTMjugador committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    dd51776 View commit details
    Browse the repository at this point in the history