-
Notifications
You must be signed in to change notification settings - Fork 15
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
refactor!: use Service
generic in transport connections
#76
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 tasks
much nicer 🔥 |
OK, so I am trying to come up with cases where this is limiting, but so far can't find any. Also it seems that transport::Connection is unaffected and still has two type parameters. So LGTM. |
maybe it gets rid of the errors
# Conflicts: # Cargo.lock
rklaehn
force-pushed
the
refactor/service-conn
branch
from
May 13, 2024 09:25
b52d24e
to
2a25a7a
Compare
to get rid of some weird warnings about non_local_definitions from derive_more macros
rklaehn
force-pushed
the
refactor/service-conn
branch
from
May 13, 2024 09:47
2a25a7a
to
9235fdf
Compare
rklaehn
approved these changes
May 13, 2024
github-merge-queue bot
pushed a commit
to n0-computer/iroh
that referenced
this pull request
May 24, 2024
## Description Adapts iroh for n0-computer/quic-rpc#76 Wit this change, a quic client is `pub type QuicIroh = Iroh<QuinnConnection<RpcService>>` instead of `pub type QuicIroh = Iroh<QuinnConnection<ProviderRequest, ProviderResponse>>` ## Breaking Changes * Increased mimimal supported rust version (MSRV) from 1.75 to 1.76 * The generics of the iroh clients changed: Instead of taking `ProviderRequest, ProviderResponse` as generics, they now take `RpcService` ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant. - [x] All breaking changes documented. --------- Co-authored-by: dignifiedquire <[email protected]>
github-merge-queue bot
pushed a commit
to n0-computer/iroh
that referenced
this pull request
May 24, 2024
## Description Adapts iroh for n0-computer/quic-rpc#76 Wit this change, a quic client is `pub type QuicIroh = Iroh<QuinnConnection<RpcService>>` instead of `pub type QuicIroh = Iroh<QuinnConnection<ProviderRequest, ProviderResponse>>` ## Breaking Changes * Increased mimimal supported rust version (MSRV) from 1.75 to 1.76 * The generics of the iroh clients changed: Instead of taking `ProviderRequest, ProviderResponse` as generics, they now take `RpcService` ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant. - [x] All breaking changes documented. --------- Co-authored-by: dignifiedquire <[email protected]>
rklaehn
pushed a commit
to n0-computer/iroh-blobs
that referenced
this pull request
Oct 22, 2024
## Description Adapts iroh for n0-computer/quic-rpc#76 Wit this change, a quic client is `pub type QuicIroh = Iroh<QuinnConnection<RpcService>>` instead of `pub type QuicIroh = Iroh<QuinnConnection<ProviderRequest, ProviderResponse>>` ## Breaking Changes * Increased mimimal supported rust version (MSRV) from 1.75 to 1.76 * The generics of the iroh clients changed: Instead of taking `ProviderRequest, ProviderResponse` as generics, they now take `RpcService` ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant. - [x] All breaking changes documented. --------- Co-authored-by: dignifiedquire <[email protected]>
rklaehn
pushed a commit
to n0-computer/iroh-blobs
that referenced
this pull request
Oct 22, 2024
## Description Adapts iroh for n0-computer/quic-rpc#76 Wit this change, a quic client is `pub type QuicIroh = Iroh<QuinnConnection<RpcService>>` instead of `pub type QuicIroh = Iroh<QuinnConnection<ProviderRequest, ProviderResponse>>` ## Breaking Changes * Increased mimimal supported rust version (MSRV) from 1.75 to 1.76 * The generics of the iroh clients changed: Instead of taking `ProviderRequest, ProviderResponse` as generics, they now take `RpcService` ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant. - [x] All breaking changes documented. --------- Co-authored-by: dignifiedquire <[email protected]>
matheus23
pushed a commit
to n0-computer/iroh-doctor
that referenced
this pull request
Oct 22, 2024
## Description Adapts iroh for n0-computer/quic-rpc#76 Wit this change, a quic client is `pub type QuicIroh = Iroh<QuinnConnection<RpcService>>` instead of `pub type QuicIroh = Iroh<QuinnConnection<ProviderRequest, ProviderResponse>>` ## Breaking Changes * Increased mimimal supported rust version (MSRV) from 1.75 to 1.76 * The generics of the iroh clients changed: Instead of taking `ProviderRequest, ProviderResponse` as generics, they now take `RpcService` ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant. - [x] All breaking changes documented. --------- Co-authored-by: dignifiedquire <[email protected]>
dignifiedquire
added a commit
to n0-computer/iroh-gossip
that referenced
this pull request
Oct 23, 2024
## Description Adapts iroh for n0-computer/quic-rpc#76 Wit this change, a quic client is `pub type QuicIroh = Iroh<QuinnConnection<RpcService>>` instead of `pub type QuicIroh = Iroh<QuinnConnection<ProviderRequest, ProviderResponse>>` ## Breaking Changes * Increased mimimal supported rust version (MSRV) from 1.75 to 1.76 * The generics of the iroh clients changed: Instead of taking `ProviderRequest, ProviderResponse` as generics, they now take `RpcService` ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant. - [x] All breaking changes documented. --------- Co-authored-by: dignifiedquire <[email protected]>
dignifiedquire
added a commit
to n0-computer/iroh-docs
that referenced
this pull request
Oct 23, 2024
## Description Adapts iroh for n0-computer/quic-rpc#76 Wit this change, a quic client is `pub type QuicIroh = Iroh<QuinnConnection<RpcService>>` instead of `pub type QuicIroh = Iroh<QuinnConnection<ProviderRequest, ProviderResponse>>` ## Breaking Changes * Increased mimimal supported rust version (MSRV) from 1.75 to 1.76 * The generics of the iroh clients changed: Instead of taking `ProviderRequest, ProviderResponse` as generics, they now take `RpcService` ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant. - [x] All breaking changes documented. --------- Co-authored-by: dignifiedquire <[email protected]>
matheus23
pushed a commit
to n0-computer/iroh
that referenced
this pull request
Nov 14, 2024
## Description Adapts iroh for n0-computer/quic-rpc#76 Wit this change, a quic client is `pub type QuicIroh = Iroh<QuinnConnection<RpcService>>` instead of `pub type QuicIroh = Iroh<QuinnConnection<ProviderRequest, ProviderResponse>>` ## Breaking Changes * Increased mimimal supported rust version (MSRV) from 1.75 to 1.76 * The generics of the iroh clients changed: Instead of taking `ProviderRequest, ProviderResponse` as generics, they now take `RpcService` ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant. - [x] All breaking changes documented. --------- Co-authored-by: dignifiedquire <[email protected]>
dignifiedquire
added a commit
to n0-computer/iroh-metrics
that referenced
this pull request
Dec 2, 2024
## Description Adapts iroh for n0-computer/quic-rpc#76 Wit this change, a quic client is `pub type QuicIroh = Iroh<QuinnConnection<RpcService>>` instead of `pub type QuicIroh = Iroh<QuinnConnection<ProviderRequest, ProviderResponse>>` ## Breaking Changes * Increased mimimal supported rust version (MSRV) from 1.75 to 1.76 * The generics of the iroh clients changed: Instead of taking `ProviderRequest, ProviderResponse` as generics, they now take `RpcService` ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant. - [x] All breaking changes documented. --------- Co-authored-by: dignifiedquire <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This changes the transport connection and endpoint struct to be generic over
S: Service
instead ofIn: RpcMessage, Out: RpcMessage
. With this change, the public API surface of a crate using quic-rpc can be reduced to only make the service struct public and hide the RPC message types.E.g. in Iroh, a quic client would now be
Client<QuinnConnection<RpcService>>
instead of
Client<QuinnConnection<ProviderRequest, ProviderResponse>>
Breaking changes
The change breaks all transport types, they are now generic over
S: Service
instead ofIn: RpcMessage, Out: RpcMessage
.