-
Notifications
You must be signed in to change notification settings - Fork 533
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
Make rkyv
feature imply size_32
#1383
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## 0.4.x #1383 +/- ##
==========================================
+ Coverage 91.69% 91.72% +0.03%
==========================================
Files 38 38
Lines 17608 17267 -341
==========================================
- Hits 16145 15839 -306
+ Misses 1463 1428 -35 ☔ View full report in Codecov by Sentry. |
Could we instead change our feature forwarding so that |
I don't think we can because the feature name |
We can write |
I'll give it a try. |
606754d
to
75c1121
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Now that features |
75c1121
to
f0cf98c
Compare
Do we want to bump to 0.4.33 in this PR? |
rkyv-64
rkyv
feature implie size_32
rkyv
feature implie size_32
rkyv
feature imply size_32
f0cf98c
to
b59d3c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to bump to 0.4.33 in this PR?
Yes, please!
Cargo.toml
Outdated
rkyv-16 = ["dep:rkyv", "rkyv?/size_16"] | ||
rkyv-32 = ["dep:rkyv", "rkyv?/size_32"] | ||
rkyv-64 = ["dep:rkyv", "rkyv?/size_64"] | ||
rkyv-validation = ["dep:rkyv", "rkyv?/validation"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I think this one is now odd because rkyv-validation
doesn't pick a size? I'd propose that we leave dep:rkyv
out of rkyv-validation
and only leave rkyv?/validation
in there so that it will only activate the downstream feature if any of the other features have been used to enable rkyv
(and pick a size).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried both of your suggestions, but then it doesn't work out for all combinations:
cargo check --features=rkyv-64,rkyv-validation
Checking rkyv v0.7.43
error: "size_32" and "size_64" are mutually-exclusive features. You may need to set `default-features = false` or compile with `--no-default-features`.
--> C:\Users\paul\.cargo\registry\src\index.crates.io-6f17d22bba15001f\rkyv-0.7.43\src\macros.rs:127:1
|
127 | / core::compile_error!(
128 | | "\"size_32\" and \"size_64\" are mutually-exclusive features. You may need to set \
129 | | `default-features = false` or compile with `--no-default-features`."
130 | | );
| |_^
error: could not compile `rkyv` (lib) due to previous error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can make do without the validation
-> dep:rkyv
edge? It seems to work for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Done
d7b244e
to
c67019b
Compare
Set the date to today. Do we want to get #1384 in first? |
c67019b
to
09a8da0
Compare
Published to crates.io, thanks! |
That is quick. You too! |
And we have docs again https://docs.rs/chrono/0.4.33/chrono/ |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [chrono](https://github.com/chronotope/chrono) | workspace.dependencies | patch | `0.4.32` -> `0.4.33` | --- ### Release Notes <details> <summary>chronotope/chrono (chrono)</summary> ### [`v0.4.33`](https://github.com/chronotope/chrono/releases/tag/v0.4.33): 0.4.33 [Compare Source](https://github.com/chronotope/chrono/compare/v0.4.32...v0.4.33) #### What's Changed - Fixed typo in Duration::hours() exception by [@​danwilliams](https://github.com/danwilliams) in [https://github.com/chronotope/chrono/pull/1384](https://github.com/chronotope/chrono/pull/1384) - Make `rkyv` feature imply `size_32` by [@​pitdicker](https://github.com/pitdicker) in [https://github.com/chronotope/chrono/pull/1383](https://github.com/chronotope/chrono/pull/1383) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/matter-labs/zksync-withdrawal-finalizer). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [chrono](https://github.com/chronotope/chrono) | dev-dependencies | patch | `0.4.32` -> `0.4.33` | --- ### Release Notes <details> <summary>chronotope/chrono (chrono)</summary> ### [`v0.4.33`](https://github.com/chronotope/chrono/releases/tag/v0.4.33): 0.4.33 [Compare Source](https://github.com/chronotope/chrono/compare/v0.4.32...v0.4.33) #### What's Changed - Fixed typo in Duration::hours() exception by [@​danwilliams](https://github.com/danwilliams) in [https://github.com/chronotope/chrono/pull/1384](https://github.com/chronotope/chrono/pull/1384) - Make `rkyv` feature imply `size_32` by [@​pitdicker](https://github.com/pitdicker) in [https://github.com/chronotope/chrono/pull/1383](https://github.com/chronotope/chrono/pull/1383) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 9pm,before 6am" in timezone Europe/Zurich, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/smartive/zitadel-rust). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Should fix the build failure on docs.rs, see #1368 (comment) and #1380.
Fixes #1380.