Skip to content

Commit e760d82

Browse files
committed
Drop tokio- prefix from TLS crates
They're way too wordy and used with both tokio-postgres and postgres anyway.
1 parent 3f26402 commit e760d82

File tree

14 files changed

+10
-10
lines changed

14 files changed

+10
-10
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
members = [
33
"codegen",
44
"postgres",
5+
"postgres-native-tls",
6+
"postgres-openssl",
57
"postgres-protocol",
68
"tokio-postgres",
7-
"tokio-postgres-native-tls",
8-
"tokio-postgres-openssl",
99
]
1010

1111
[profile.release]

tokio-postgres-native-tls/Cargo.toml renamed to postgres-native-tls/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "tokio-postgres-native-tls"
2+
name = "postgres-native-tls"
33
version = "0.1.0-rc.1"
44
authors = ["Steven Fackler <[email protected]>"]
55
edition = "2018"

tokio-postgres-native-tls/src/lib.rs renamed to postgres-native-tls/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//!
55
//! ```no_run
66
//! use native_tls::{Certificate, TlsConnector};
7-
//! use tokio_postgres_native_tls::MakeTlsConnector;
7+
//! use postgres_native_tls::MakeTlsConnector;
88
//! use std::fs;
99
//!
1010
//! # fn main() -> Result<(), Box<std::error::Error>> {
@@ -27,7 +27,7 @@
2727
//!
2828
//! ```no_run
2929
//! use native_tls::{Certificate, TlsConnector};
30-
//! use tokio_postgres_native_tls::MakeTlsConnector;
30+
//! use postgres_native_tls::MakeTlsConnector;
3131
//! use std::fs;
3232
//!
3333
//! # fn main() -> Result<(), Box<std::error::Error>> {
File renamed without changes.

tokio-postgres-openssl/Cargo.toml renamed to postgres-openssl/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "tokio-postgres-openssl"
2+
name = "postgres-openssl"
33
version = "0.1.0-rc.1"
44
authors = ["Steven Fackler <[email protected]>"]
55
edition = "2018"
File renamed without changes.

tokio-postgres-openssl/src/lib.rs renamed to postgres-openssl/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//!
55
//! ```no_run
66
//! use openssl::ssl::{SslConnector, SslMethod};
7-
//! use tokio_postgres_openssl::MakeTlsConnector;
7+
//! use postgres_openssl::MakeTlsConnector;
88
//!
99
//! # fn main() -> Result<(), Box<std::error::Error>> {
1010
//! let mut builder = SslConnector::builder(SslMethod::tls())?;
@@ -23,7 +23,7 @@
2323
//!
2424
//! ```no_run
2525
//! use openssl::ssl::{SslConnector, SslMethod};
26-
//! use tokio_postgres_openssl::MakeTlsConnector;
26+
//! use postgres_openssl::MakeTlsConnector;
2727
//!
2828
//! # fn main() -> Result<(), Box<std::error::Error>> {
2929
//! let mut builder = SslConnector::builder(SslMethod::tls())?;
File renamed without changes.

tokio-postgres/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106
//!
107107
//! TLS support is implemented via external libraries. `Client::connect` and `Config::connect` take a TLS implementation
108108
//! as an argument. The `NoTls` type in this crate can be used when TLS is not required. Otherwise, the
109-
//! `tokio-postgres-openssl` and `tokio-postgres-native-tls` crates provide implementations backed by the `openssl` and
110-
//! `native-tls` crates, respectively.
109+
//! `postgres-openssl` and `postgres-native-tls` crates provide implementations backed by the `openssl` and `native-tls`
110+
//! crates, respectively.
111111
#![doc(html_root_url = "https://docs.rs/tokio-postgres/0.4.0-rc.1")]
112112
#![warn(rust_2018_idioms, clippy::all, missing_docs)]
113113

0 commit comments

Comments
 (0)