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

cargo: dependency updates #49

Merged
merged 5 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Unreleased (Yet)

## ttfb lib

- **BREAKING** The MSRV is now `1.67.0` stable.
- dependency updates

## ttfb binary

- dependency updates

# v1.11.0 (2024-04-09)

## ttfb lib
Expand Down
131 changes: 61 additions & 70 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ absolute timings of DNS lookup, TCP connect, and TLS handshake.
"""
version = "1.11.0"
edition = "2021"
rust-version = "1.65" # MSRV of the library (= min(lib,bin))
rust-version = "1.67" # MSRV of the library (= min(lib,bin))
keywords = ["ttfb", "http", "timings", "web"]
categories = ["network-programming", "command-line-utilities"]
readme = "README.md"
Expand Down Expand Up @@ -38,10 +38,11 @@ bin = ["dep:clap", "dep:crossterm"]
# +++ LIBRARY +++

# DNS over systems default DNS resolver
trust-dns-resolver = { version = "0.23.0", features = ["dns-over-rustls"] }
hickory-resolver = { version = "0.24.0", default-features = false, features = ["dns-over-rustls", "system-config"] }
# TLS handshake
rustls = { version = "0.22.0", features = [] }
rustls-connector = { version = "0.19.0", features = [
rustls = { version = "0.23.0", default-features = false, features = [ "tls12", "logging", "ring"] }
# rustls-connector = { version = "0.21.0", features = [
rustls-connector = { git = "https://github.com/phip1611/rustls-connector", branch = "rustls-fix", features = [
"rustls-native-certs",
"webpki-roots",
"webpki-roots-certs",
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ SOFTWARE.
//! Module for [`TtfbError`].

use derive_more::Display;
use hickory_resolver::error::{ResolveError, ResolveErrorKind};
use rustls_connector::HandshakeError;
use std::error::Error;
use std::io;
use std::net::TcpStream;
use trust_dns_resolver::error::{ResolveError, ResolveErrorKind};

/// Errors during DNS resolving.
#[derive(Clone, Debug, Display)]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ SOFTWARE.
pub use error::{InvalidUrlError, ResolveDnsError, TtfbError};
pub use outcome::{DurationPair, TtfbOutcome};

use hickory_resolver::Resolver as DnsResolver;
use rustls::client::danger::{HandshakeSignatureValid, ServerCertVerified, ServerCertVerifier};
use rustls::pki_types::{CertificateDer, ServerName, UnixTime};
use rustls::{ClientConfig, DigitallySignedStruct, Error, SignatureScheme};
Expand All @@ -67,7 +68,6 @@ use std::str::FromStr;
use std::sync::Arc;
use std::thread;
use std::time::{Duration, Instant};
use trust_dns_resolver::Resolver as DnsResolver;
use url::Url;

mod error;
Expand Down
2 changes: 1 addition & 1 deletion ttfb-lib-msrv-check/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.65.0" # MSRV of the library
channel = "1.67.0" # MSRV of the library
profile = "minimal"