Skip to content

Commit

Permalink
Use tzdb with std feature
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kijewski committed Aug 2, 2022
1 parent a2ec751 commit bb4c772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ all-features = true
is_debug = "1.0.1"
const_format = "0.2.22"
time = { version = "0.3.11", features = ["formatting", "local-offset", "parsing"] }
tzdb = { version = "0.3.1", default-features = false, features = ["local"] }
tzdb = { version = "0.3.4", default-features = false, features = ["local", "std"] }

#! Optional Dependencies:

Expand Down

0 comments on commit bb4c772

Please sign in to comment.