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

Use tzdb with std feature #110

Merged
merged 1 commit into from
Aug 3, 2022
Merged

Use tzdb with std feature #110

merged 1 commit into from
Aug 3, 2022

Conversation

Kijewski
Copy link
Contributor

@Kijewski Kijewski commented Aug 2, 2022

Shadow-rs uses std::error::Errors, which are only implemented by
tz-rs, and tzdb if their features std are enabled. Right now this is
not a problem, because even if you are using tzdb without default
features, tzdb still uses tz-rs with default-features. This is because
tz-rs did not yet have the feature gate when tzdb v0.3 was released.

Once tzdb v0.4 is released, the unconditional use of tzdb's std feature
will be fixed, which would break this project. So this PR is proactively
fixing the issue.

Shadow-rs uses `std::error::Error`s, which are only implemented by
tz-rs, and tzdb if their features `std` are enabled. Right now this is
not a problem, because even if you are using tzdb without default
features, tzdb still uses tz-rs with default-features. This is because
tz-rs did not yet have the feature gate when tzdb v0.3 was released.

Once tzdb v0.4 is released, the unconditional use of tzdb's std feature
will be fixed, which would break this project. So this PR is proactively
fixing the issue.
@Kijewski Kijewski mentioned this pull request Aug 2, 2022
3 tasks
@baoyachi baoyachi merged commit 68547d8 into baoyachi:master Aug 3, 2022
@baoyachi
Copy link
Owner

baoyachi commented Aug 3, 2022

@Kijewski Thx again.

@Kijewski Kijewski deleted the pr-tzdb-std branch August 3, 2022 10:46
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

Successfully merging this pull request may close these issues.

2 participants