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

Add connection setup helpers to the quinn transport. #129

Merged
merged 15 commits into from
Dec 12, 2024
Merged

Add connection setup helpers to the quinn transport. #129

merged 15 commits into from
Dec 12, 2024

Conversation

rklaehn
Copy link
Collaborator

@rklaehn rklaehn commented Dec 10, 2024

Copying and updating these gets really old.

This also fixes a bug in the fn make_insecure_client_endpoint that would not support any verification schemes, causing the split example to fail.

We also add some top level type aliases and fns for creating channels for mem and testing.

We get a dependency on rcgen and rustls, but only if you set the "test-utils" feature flag. Everybody that wants to use the quinn transport is going to want such tests in their crate, and this way we can do the whole setup only once.

Copying and updating these gets really old.

This also fixes a bug in the fn make_insecure_client_endpoint that would not
support any verification schemes, causing the split example to fail.

We also add some top level type aliases and fns for creating channels for mem and testing.
@@ -0,0 +1,32 @@
Building docs for this crate is a bit complex. There are lots of feature flags,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think is file is usually called CONTRIBUTING.md

#![deny(missing_docs)]
#![deny(rustdoc::broken_intra_doc_links)]
#![cfg_attr(quicrpc_docsrs, feature(doc_cfg))]
Copy link
Contributor

Choose a reason for hiding this comment

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

if you use the auto thing @flub found, you can simplify this: n0-computer/iroh#3029

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, will do at some point. But I am afraid that I will spend another few hours on this, so I will wait for 1 iroh release before converting to the auto stuff...

Copy link
Contributor

@dignifiedquire dignifiedquire left a comment

Choose a reason for hiding this comment

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

some notes for improvements, otherwise LGTM

@rklaehn rklaehn merged commit a0ee996 into main Dec 12, 2024
14 of 15 checks passed
@rklaehn rklaehn deleted the helpers branch December 12, 2024 13:16
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