Skip to content

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

Merged
str4d merged 1 commit into
mainfrom
tor-rpit
Oct 26, 2024
Merged

zcash_client_backend: Switch from async-trait to RPIT for tor module#1595
str4d merged 1 commit into
mainfrom
tor-rpit

Conversation

@str4d
Copy link
Copy Markdown
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
@codecov
Copy link
Copy Markdown

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

@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
@nuttycom nuttycom deleted the tor-rpit branch October 26, 2024 22:51
Copy link
Copy Markdown
Collaborator

@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