Skip to content

Commit 97fc054

Browse files
authored
Merge branch 'quinn-rs:main' into udp-timestamp
2 parents 58ff04b + 56ae894 commit 97fc054

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+186
-179
lines changed

bench/src/bin/bulk.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ use tokio::sync::Semaphore;
1111
use tracing::{info, trace};
1212

1313
use bench::{
14-
configure_tracing_subscriber, connect_client, drain_stream, rt, send_data_on_stream,
14+
Opt, configure_tracing_subscriber, connect_client, drain_stream, rt, send_data_on_stream,
1515
server_endpoint,
1616
stats::{Stats, TransferResult},
17-
Opt,
1817
};
1918

2019
fn main() {

bench/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ use bytes::Bytes;
1111
use clap::Parser;
1212
use quinn::crypto::rustls::QuicClientConfig;
1313
use rustls::{
14-
pki_types::{CertificateDer, PrivateKeyDer},
1514
RootCertStore,
15+
pki_types::{CertificateDer, PrivateKeyDer},
1616
};
1717
use tokio::runtime::{Builder, Runtime};
1818
use tracing::trace;

deny.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ private = { ignore = true }
1616
name = "ring"
1717
expression = "ISC AND MIT AND OpenSSL"
1818
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]
19+
20+
[advisories]
21+
ignore = ["RUSTSEC-2025-0007"]

fuzz/fuzz_targets/packet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ extern crate proto;
44

55
use libfuzzer_sys::fuzz_target;
66
use proto::{
7+
DEFAULT_SUPPORTED_VERSIONS, FixedLengthConnectionIdParser,
78
fuzzing::{PacketParams, PartialDecode},
8-
FixedLengthConnectionIdParser, DEFAULT_SUPPORTED_VERSIONS,
99
};
1010

1111
fuzz_target!(|data: PacketParams| {

perf/src/bin/perf_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{
77
use anyhow::{Context, Result};
88
use bytes::Bytes;
99
use clap::Parser;
10-
use quinn::{crypto::rustls::QuicClientConfig, TokioRuntime};
10+
use quinn::{TokioRuntime, crypto::rustls::QuicClientConfig};
1111
use rustls::pki_types::{CertificateDer, ServerName, UnixTime};
1212
use tokio::sync::Semaphore;
1313
use tracing::{debug, error, info};

perf/src/bin/perf_server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ use std::{fs, net::SocketAddr, path::PathBuf, sync::Arc, time::Duration};
33
use anyhow::{Context, Result};
44
use bytes::Bytes;
55
use clap::Parser;
6-
use quinn::{crypto::rustls::QuicServerConfig, TokioRuntime};
6+
use quinn::{TokioRuntime, crypto::rustls::QuicServerConfig};
77
use rustls::pki_types::{CertificateDer, PrivatePkcs8KeyDer};
88
use tracing::{debug, error, info};
99

10-
use perf::{bind_socket, noprotection::NoProtectionServerConfig, PERF_CIPHER_SUITES};
10+
use perf::{PERF_CIPHER_SUITES, bind_socket, noprotection::NoProtectionServerConfig};
1111

1212
#[derive(Parser)]
1313
#[clap(name = "server")]

perf/src/noprotection.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ use std::sync::Arc;
33
use bytes::BytesMut;
44

55
use quinn_proto::{
6+
ConnectionId, Side, TransportError,
67
crypto::{
7-
self,
8+
self, CryptoError,
89
rustls::{QuicClientConfig, QuicServerConfig},
9-
CryptoError,
1010
},
11-
transport_parameters, ConnectionId, Side, TransportError,
11+
transport_parameters,
1212
};
1313

1414
/// A rustls TLS session which does not perform packet encryption/decryption (for debugging purpose)

perf/src/stats.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,12 @@ impl Stats {
9090

9191
println!("Stream metrics:\n");
9292

93-
println!(" │ Upload Duration │ Download Duration | FBL | Upload Throughput | Download Throughput");
94-
println!("──────┼─────────────────┼───────────────────┼────────────┼───────────────────┼────────────────────");
93+
println!(
94+
" │ Upload Duration │ Download Duration | FBL | Upload Throughput | Download Throughput"
95+
);
96+
println!(
97+
"──────┼─────────────────┼───────────────────┼────────────┼───────────────────┼────────────────────"
98+
);
9599

96100
let print_metric = |label: &'static str, get_metric: fn(&Histogram<u64>) -> u64| {
97101
println!(
@@ -244,7 +248,7 @@ mod json {
244248
use crate::stats;
245249
use crate::stats::{Stats, StreamIntervalStats};
246250
use quinn::StreamId;
247-
use serde::{self, ser::SerializeStruct, Serialize, Serializer};
251+
use serde::{self, Serialize, Serializer, ser::SerializeStruct};
248252
use std::io::Write;
249253
use std::time::{SystemTime, UNIX_EPOCH};
250254

quinn-proto/src/cid_generator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ use std::hash::Hasher;
22

33
use rand::{Rng, RngCore};
44

5-
use crate::shared::ConnectionId;
65
use crate::Duration;
76
use crate::MAX_CID_SIZE;
7+
use crate::shared::ConnectionId;
88

99
/// Generates connection IDs for incoming connections
1010
pub trait ConnectionIdGenerator: Send + Sync {

quinn-proto/src/cid_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::ops::Range;
22

3-
use crate::{frame::NewConnectionId, ConnectionId, ResetToken};
3+
use crate::{ConnectionId, ResetToken, frame::NewConnectionId};
44

55
/// DataType stored in CidQueue buffer
66
type CidData = (ConnectionId, Option<ResetToken>);

0 commit comments

Comments
 (0)