Skip to content

Introduce derive(most_traits) and rename unstable linux cfg#3416

Open
jswrenn wants to merge 1 commit into
mainfrom
G713b9f3eb6365b11e4e1777ee69e75a6fae758d3
Open

Introduce derive(most_traits) and rename unstable linux cfg#3416
jswrenn wants to merge 1 commit into
mainfrom
G713b9f3eb6365b11e4e1777ee69e75a6fae758d3

Conversation

@jswrenn
Copy link
Copy Markdown
Collaborator

@jswrenn jswrenn commented May 27, 2026

Renames zerocopy_unstable_derive_on_error to zerocopy_unstable_linux.

Adds unstable derive(most_traits) which attempts to quietly derive
all zerocopy traits, but excludes traits like Hash for which
zerocopy provides optimized derives.


Latest Update: v10 — Compare vs v9

📚 Full Patch History

Links show the diff between the row version and the column version.

Version v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v8 v7 v6 v5 v4 v3 v2 v1 Base
v7 v6 v5 v4 v3 v2 v1 Base
v6 v5 v4 v3 v2 v1 Base
v5 v4 v3 v2 v1 Base
v4 v3 v2 v1 Base
v3 v2 v1 Base
v2 v1 Base
v1 Base
⬇️ Download this PR

Branch

git fetch origin refs/heads/G713b9f3eb6365b11e4e1777ee69e75a6fae758d3 && git checkout -b pr-G713b9f3eb6365b11e4e1777ee69e75a6fae758d3 FETCH_HEAD

Checkout

git fetch origin refs/heads/G713b9f3eb6365b11e4e1777ee69e75a6fae758d3 && git checkout FETCH_HEAD

Cherry Pick

git fetch origin refs/heads/G713b9f3eb6365b11e4e1777ee69e75a6fae758d3 && git cherry-pick FETCH_HEAD

Pull

git pull origin refs/heads/G713b9f3eb6365b11e4e1777ee69e75a6fae758d3

Stacked PRs enabled by GHerrit.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.85%. Comparing base (c97143c) to head (f51b560).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3416   +/-   ##
=======================================
  Coverage   91.85%   91.85%           
=======================================
  Files          20       20           
  Lines        6093     6093           
=======================================
  Hits         5597     5597           
  Misses        496      496           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jswrenn jswrenn force-pushed the G713b9f3eb6365b11e4e1777ee69e75a6fae758d3 branch from 9e20917 to 9a0d277 Compare May 27, 2026 11:13
@jswrenn jswrenn changed the title [wip] Introduce unstable derive(most_traits) [wip] Introduce unstable derive(most_traits), linux cfg. Jun 5, 2026
@jswrenn jswrenn force-pushed the G713b9f3eb6365b11e4e1777ee69e75a6fae758d3 branch 4 times, most recently from 80544d9 to c6e4060 Compare June 5, 2026 14:33
@jswrenn jswrenn changed the title [wip] Introduce unstable derive(most_traits), linux cfg. Introduce derive(most_traits) and rename unstable linux cfg Jun 5, 2026
@jswrenn jswrenn force-pushed the G713b9f3eb6365b11e4e1777ee69e75a6fae758d3 branch 2 times, most recently from 033adce to 61f280f Compare June 5, 2026 14:56
@jswrenn jswrenn requested a review from joshlf June 5, 2026 14:56
@jswrenn jswrenn force-pushed the G713b9f3eb6365b11e4e1777ee69e75a6fae758d3 branch from 61f280f to cb7c1ea Compare June 5, 2026 14:58
Comment thread zerocopy/src/lib.rs

#[doc(hidden)]
#[cfg(all(any(feature = "derive", test), zerocopy_unstable_linux))]
pub use zerocopy_derive::most_traits;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Trailing newline after this?

Renames `zerocopy_unstable_derive_on_error` to `zerocopy_unstable_linux`.

Adds unstable `derive(most_traits)` which attempts to quietly derive
all zerocopy traits, but excludes traits like `Hash` for which
zerocopy provides optimized derives.

gherrit-pr-id: G713b9f3eb6365b11e4e1777ee69e75a6fae758d3
@jswrenn jswrenn force-pushed the G713b9f3eb6365b11e4e1777ee69e75a6fae758d3 branch from cb7c1ea to f51b560 Compare June 6, 2026 15:38
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.

3 participants