Skip to content

zcash_primitives: Add no_std support#1688

Merged
nuttycom merged 6 commits into
zcash:mainfrom
nuttycom:zcash_primitives_no_std
Jan 29, 2025
Merged

zcash_primitives: Add no_std support#1688
nuttycom merged 6 commits into
zcash:mainfrom
nuttycom:zcash_primitives_no_std

Conversation

@nuttycom
Copy link
Copy Markdown
Collaborator

@nuttycom nuttycom commented Jan 28, 2025

This depends upon zcash/orchard#453 and zcash/sapling-crypto#152

Subsumes #1683

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 28, 2025

Codecov Report

Attention: Patch coverage is 72.95082% with 33 lines in your changes missing coverage. Please review.

Project coverage is 52.00%. Comparing base (1b09741) to head (d352b93).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
zcash_primitives/src/merkle_tree.rs 33.33% 16 Missing ⚠️
...h_primitives/src/transaction/components/orchard.rs 70.00% 3 Missing ⚠️
zcash_primitives/src/transaction/components/tze.rs 0.00% 3 Missing ⚠️
zcash_primitives/src/encoding.rs 93.54% 2 Missing ⚠️
zcash_primitives/src/transaction/builder.rs 50.00% 2 Missing ⚠️
...sh_primitives/src/transaction/components/sprout.rs 0.00% 2 Missing ⚠️
...imitives/src/transaction/components/tze/builder.rs 0.00% 2 Missing ⚠️
...h_primitives/src/transaction/components/sapling.rs 66.66% 1 Missing ⚠️
zcash_primitives/src/transaction/fees/zip317.rs 0.00% 1 Missing ⚠️
zcash_primitives/src/transaction/mod.rs 93.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1688      +/-   ##
==========================================
+ Coverage   51.89%   52.00%   +0.10%     
==========================================
  Files         180      181       +1     
  Lines       21169    21192      +23     
==========================================
+ Hits        10986    11021      +35     
+ Misses      10183    10171      -12     

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

@nuttycom nuttycom force-pushed the zcash_primitives_no_std branch 4 times, most recently from 52dcfd4 to c78d482 Compare January 28, 2025 23:27
@nuttycom nuttycom marked this pull request as ready for review January 29, 2025 00:32
@nuttycom nuttycom force-pushed the zcash_primitives_no_std branch from 2290f58 to 4d0ce78 Compare January 29, 2025 00:33
Comment thread zcash_primitives/Cargo.toml Outdated
Comment thread zcash_primitives/src/merkle_tree.rs Outdated
Comment thread zcash_primitives/src/merkle_tree.rs Outdated
Comment thread zcash_primitives/src/transaction/builder.rs
Comment thread zcash_primitives/src/transaction/builder.rs
Comment thread zcash_primitives/src/transaction/components/orchard.rs Outdated
Comment thread zcash_primitives/src/transaction/components/sapling.rs
Comment thread zcash_primitives/src/transaction/mod.rs
daira
daira previously approved these changes Jan 29, 2025
Copy link
Copy Markdown
Contributor

@daira daira left a comment

Choose a reason for hiding this comment

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

utACK with non-blocking comments.

@nuttycom
Copy link
Copy Markdown
Collaborator Author

force-pushed to use versions of orchard and sapling-crypto that have been merged to their respective main branches.

daira
daira previously approved these changes Jan 29, 2025
Copy link
Copy Markdown
Contributor

@daira daira left a comment

Choose a reason for hiding this comment

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

utACK with non-blocking suggestion (but there are conflicts).

nuttycom and others added 6 commits January 29, 2025 08:16
…protocol`

This fixes a few errors that have been introduced over time since
`zcash_extensions` is not regularly built, and migrates
`zcash_extensions` to eliminate the use of deprecated `zcash_primitives`
APIs.
As of `nonempty 0.11`, `nonempty` is `no-std` compatible and therefore
the `nonempty` dependency no longer needs to be optional.
Co-authored-by: Daira-Emma Hopwood <daira@jacaranda.org>
@nuttycom
Copy link
Copy Markdown
Collaborator Author

force-pushed to resolve conflicts and fix warnings.

Copy link
Copy Markdown
Contributor

@daira daira left a comment

Choose a reason for hiding this comment

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

utACK d352b93

@nuttycom nuttycom merged commit 3cc8a13 into zcash:main Jan 29, 2025
@nuttycom nuttycom deleted the zcash_primitives_no_std branch January 29, 2025 18:43
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