Skip to content
Closed
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
51 changes: 24 additions & 27 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions sqlx-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ tokio = { workspace = true, optional = true }
# TLS
native-tls = { version = "0.2.10", optional = true }

rustls = { version = "0.21.11", default-features = false, features = ["dangerous_configuration", "tls12"], optional = true }
rustls-pemfile = { version = "1.0", optional = true }
webpki-roots = { version = "0.25", optional = true }
rustls = { version = "0.23.5", default-features = false, features = ["std", "tls12"], optional = true}
rustls-pemfile = { version = "2.1.2", optional = true }
webpki-roots = { version = "0.26.1", optional = true }

# Type Integrations
bit-vec = { workspace = true, optional = true }
Expand Down
8 changes: 8 additions & 0 deletions sqlx-core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ use std::error::Error as StdError;
use std::fmt::Display;
use std::io;

// use rustls::server::VerifierBuilderError;
#[cfg(feature = "_tls-rustls")]
use rustls::server::VerifierBuilderError;

use crate::database::Database;

use crate::type_info::TypeInfo;
Expand Down Expand Up @@ -107,6 +111,10 @@ pub enum Error {
#[cfg(feature = "migrate")]
#[error("{0}")]
Migrate(#[source] Box<crate::migrate::MigrateError>),

#[cfg(feature = "_tls-rustls")]
#[error("Error building server verifier: {0}")]
VerifierBuilder(#[from] VerifierBuilderError)
}

impl StdError for Box<dyn DatabaseError> {}
Expand Down
Loading