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

zcash_client_backend: Switch from async-trait to RPIT for tor module #1595

Merged
merged 1 commit into from
Oct 26, 2024

Conversation

str4d
Copy link
Contributor

@str4d str4d commented Oct 26, 2024

RPIT (return-position impl Trait) was stabilized in Rust 1.75, and the dynosaur crate providing dynamic dispatch support was published two weeks ago. Now that our MSRV is 1.77, we can use both of these.

RPIT (return-position `impl Trait`) was stabilized in Rust 1.75, and the
`dynosaur` crate providing dynamic dispatch support was published two
weeks ago. Now that our MSRV is 1.77, we can use both of these.
@str4d str4d changed the title zcash_client_backend: Switch from async-trait to RPIT zcash_client_backend: Switch from async-trait to RPIT for tor module Oct 26, 2024
Copy link

codecov bot commented Oct 26, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 56.31%. Comparing base (5edaa26) to head (f347dc5).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
zcash_client_backend/src/tor/http/cryptex.rs 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1595      +/-   ##
==========================================
- Coverage   56.31%   56.31%   -0.01%     
==========================================
  Files         148      148              
  Lines       19026    19026              
==========================================
- Hits        10715    10714       -1     
- Misses       8311     8312       +1     

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

@@ -1,4 +1,3 @@
use async_trait::async_trait;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this also be used to remove librustzcash's one remaining dependency on async_trait for data_api::chain::BlockCache?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah you're way ahead of me, lol. #1535 (comment)

Copy link
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

@str4d str4d added this pull request to the merge queue Oct 26, 2024
Merged via the queue into main with commit ddf5f1b Oct 26, 2024
28 of 30 checks passed
@nuttycom nuttycom deleted the tor-rpit branch October 26, 2024 22:51
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.

post-hoc utACK

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