Skip to content

Commit

Permalink
Merge branch 'Main' into poll-incoming
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben2424 committed Jul 8, 2024
2 parents 2a00656 + 0f764ed commit f3fd455
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 13 deletions.
5 changes: 5 additions & 0 deletions changelog-h3-quinn.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### v0.0.7 (2024-07-01)
* Consolidate quic trait redundancy
* make types Sync
* new tracing feature

### v0.0.6 (2024-05-20)
* use quinn 0.11

Expand Down
6 changes: 6 additions & 0 deletions changelog-h3.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### v0.0.6 (2024-07-01)
* Consolidate quic trait redundancy
* start qpack streams
* send grease stream in the background
* new tracing feature

### v0.0.5 (2024-05-20)
* add `poll_recv_data()` for server
* use 2021 edition
Expand Down
4 changes: 2 additions & 2 deletions h3-quinn/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "h3-quinn"
version = "0.0.6"
version = "0.0.7"
rust-version = "1.66"
authors = ["Jean-Christophe BEGUE <[email protected]>"]
edition = "2021"
Expand All @@ -13,7 +13,7 @@ categories = ["network-programming", "web-programming"]
license = "MIT"

[dependencies]
h3 = { version = "0.0.5", path = "../h3" }
h3 = { version = "0.0.6", path = "../h3" }
bytes = "1"
quinn = { version = "0.11", default-features = false, features = [
"futures-io",
Expand Down
21 changes: 12 additions & 9 deletions h3-quinn/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ use bytes::{Buf, Bytes, BytesMut};
use futures::{
ready,
stream::{self, select, BoxStream, Select},

Check warning on line 19 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test stable ubuntu-latest

unused import: `BoxStream`

Check warning on line 19 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test stable ubuntu-latest

unused import: `BoxStream`

Check warning on line 19 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test beta ubuntu-latest

unused import: `BoxStream`

Check warning on line 19 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test beta ubuntu-latest

unused import: `BoxStream`

Check warning on line 19 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test stable ubuntu-latest

unused import: `BoxStream`

Check warning on line 19 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test beta ubuntu-latest

unused import: `BoxStream`

Check warning on line 19 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test beta ubuntu-latest

unused import: `BoxStream`

Check warning on line 19 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test beta ubuntu-latest

unused import: `BoxStream`

Check warning on line 19 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test beta ubuntu-latest

unused import: `BoxStream`

Check warning on line 19 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test stable ubuntu-latest

unused import: `BoxStream`

Check warning on line 19 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test stable ubuntu-latest

unused import: `BoxStream`

Check warning on line 19 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test stable ubuntu-latest

unused import: `BoxStream`

Check warning on line 19 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Check MSRV of `h3-quinn`

unused import: `BoxStream`
StreamExt,
Stream, StreamExt,
};
pub use quinn::{self, Endpoint, OpenBi, OpenUni, VarInt, WriteError};
use quinn::{ApplicationClose, ClosedStream, ReadDatagram};
use quinn::{AcceptBi, AcceptUni, ApplicationClose, ClosedStream, ReadDatagram};

Check warning on line 23 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test stable ubuntu-latest

unused imports: `AcceptBi`, `AcceptUni`

Check warning on line 23 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test stable ubuntu-latest

unused imports: `AcceptBi`, `AcceptUni`

Check warning on line 23 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test stable ubuntu-latest

unused imports: `AcceptBi`, `AcceptUni`

Check warning on line 23 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test beta ubuntu-latest

unused imports: `AcceptBi` and `AcceptUni`

Check warning on line 23 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test beta ubuntu-latest

unused imports: `AcceptBi` and `AcceptUni`

Check warning on line 23 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test stable ubuntu-latest

unused imports: `AcceptBi`, `AcceptUni`

Check warning on line 23 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test stable ubuntu-latest

unused imports: `AcceptBi`, `AcceptUni`

Check warning on line 23 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test beta ubuntu-latest

unused imports: `AcceptBi` and `AcceptUni`

Check warning on line 23 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test beta ubuntu-latest

unused imports: `AcceptBi` and `AcceptUni`

Check warning on line 23 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test beta ubuntu-latest

unused imports: `AcceptBi` and `AcceptUni`

Check warning on line 23 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test beta ubuntu-latest

unused imports: `AcceptBi` and `AcceptUni`

Check warning on line 23 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test stable ubuntu-latest

unused imports: `AcceptBi`, `AcceptUni`

Check warning on line 23 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test stable ubuntu-latest

unused imports: `AcceptBi`, `AcceptUni`

Check warning on line 23 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test stable ubuntu-latest

unused imports: `AcceptBi`, `AcceptUni`

Check warning on line 23 in h3-quinn/src/lib.rs

View workflow job for this annotation

GitHub Actions / Check MSRV of `h3-quinn`

unused imports: `AcceptBi`, `AcceptUni`

use h3::{
ext::Datagram,
Expand All @@ -31,6 +31,9 @@ use tokio_util::sync::ReusableBoxFuture;
#[cfg(feature = "tracing")]
use tracing::instrument;

/// BoxStream with Sync trait
type BoxStreamSync<'a, T> = Pin<Box<dyn Stream<Item = T> + Sync + Send + 'a>>;

/// A QUIC connection backed by Quinn
///
/// Implements a [`quic::Connection`] backed by a [`quinn::Connection`].
Expand All @@ -39,15 +42,15 @@ where
B: Buf,
{
conn: quinn::Connection,
opening_bi: Option<BoxStream<'static, <OpenBi<'static> as Future>::Output>>,
opening_uni: Option<BoxStream<'static, <OpenUni<'static> as Future>::Output>>,
datagrams: BoxStream<'static, <ReadDatagram<'static> as Future>::Output>,
opening_bi: Option<BoxStreamSync<'static, <OpenBi<'static> as Future>::Output>>,
opening_uni: Option<BoxStreamSync<'static, <OpenUni<'static> as Future>::Output>>,
datagrams: BoxStreamSync<'static, <ReadDatagram<'static> as Future>::Output>,
incoming: Select<
BoxStream<
BoxStreamSync<
'static,
Result<IncomingStreamType<BidiStream<B>, RecvStream, B>, quinn::ConnectionError>,
>,
BoxStream<
BoxStreamSync<
'static,
Result<IncomingStreamType<BidiStream<B>, RecvStream, B>, quinn::ConnectionError>,
>,
Expand Down Expand Up @@ -312,8 +315,8 @@ where
/// [`quinn::OpenBi`], [`quinn::OpenUni`].
pub struct OpenStreams {
conn: quinn::Connection,
opening_bi: Option<BoxStream<'static, <OpenBi<'static> as Future>::Output>>,
opening_uni: Option<BoxStream<'static, <OpenUni<'static> as Future>::Output>>,
opening_bi: Option<BoxStreamSync<'static, <OpenBi<'static> as Future>::Output>>,
opening_uni: Option<BoxStreamSync<'static, <OpenUni<'static> as Future>::Output>>,
}

impl<B> quic::OpenStreams<B> for OpenStreams
Expand Down
2 changes: 1 addition & 1 deletion h3-webtransport/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ tracing = "0.1.37"
tokio = { version = "1.28", default_features = false }

[dependencies.h3]
version = "0.0.5"
version = "0.0.6"
path = "../h3"
features = ["i-implement-a-third-party-backend-and-opt-into-breaking-changes"]
2 changes: 1 addition & 1 deletion h3/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "h3"
version = "0.0.5"
version = "0.0.6"
rust-version = "1.63"
authors = [
"Sean McArthur <[email protected]>",
Expand Down

0 comments on commit f3fd455

Please sign in to comment.