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

Disable sapling-crypto default features by default #1399

Merged
merged 3 commits into from
May 24, 2024
Merged

Conversation

str4d
Copy link
Contributor

@str4d str4d commented May 23, 2024

The only default-enabled feature flag in sapling-crypto is the multicore feature flag, which we re-export in each crate that includes proof creation. We need to disable it as a default feature of our dependency in order to enable it to be correctly disabled when a user of e.g. zcash_primitives disables its default features.

Copy link

codecov bot commented May 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.13%. Comparing base (0b350c1) to head (f136535).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1399   +/-   ##
=======================================
  Coverage   63.13%   63.13%           
=======================================
  Files         126      126           
  Lines       14720    14720           
=======================================
  Hits         9293     9293           
  Misses       5427     5427           

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

nuttycom
nuttycom previously approved these changes May 23, 2024
Copy link
Contributor

@nuttycom nuttycom left a comment

Choose a reason for hiding this comment

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

utACK

str4d added 2 commits May 23, 2024 20:32
The only default-enabled feature flag in `sapling-crypto` is the
`multicore` feature flag, which we re-export in each crate that includes
proof creation. We need to disable it as a default feature of our
dependency in order to enable it to be correctly disabled when a user of
e.g. `zcash_primitives` disables its default features.
@str4d
Copy link
Contributor Author

str4d commented May 23, 2024

The cargo vet issue I'm not going to resolve in this PR, as I expect it would cause conflicts with #1392. (It's just that the "new" zcash_primitives version isn't visible to the audit config file.)

Copy link
Contributor

@nuttycom nuttycom left a comment

Choose a reason for hiding this comment

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

utACK

@str4d str4d merged commit 4cf777f into main May 24, 2024
26 of 27 checks passed
@str4d str4d deleted the fix-sapling-flags branch May 24, 2024 01:06
@str4d
Copy link
Contributor Author

str4d commented May 24, 2024

8b2188a0f34fea2cebbf48a9945c75715f92992e published as zcash_primitives-0.15.1.

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