Drop tokio- prefix from TLS crates
They're way too wordy and used with both tokio-postgres and postgres anyway.
This commit is contained in:
parent
3f264027c9
commit
e760d82f64
@ -2,10 +2,10 @@
|
|||||||
members = [
|
members = [
|
||||||
"codegen",
|
"codegen",
|
||||||
"postgres",
|
"postgres",
|
||||||
|
"postgres-native-tls",
|
||||||
|
"postgres-openssl",
|
||||||
"postgres-protocol",
|
"postgres-protocol",
|
||||||
"tokio-postgres",
|
"tokio-postgres",
|
||||||
"tokio-postgres-native-tls",
|
|
||||||
"tokio-postgres-openssl",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tokio-postgres-native-tls"
|
name = "postgres-native-tls"
|
||||||
version = "0.1.0-rc.1"
|
version = "0.1.0-rc.1"
|
||||||
authors = ["Steven Fackler <sfackler@gmail.com>"]
|
authors = ["Steven Fackler <sfackler@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
@ -4,7 +4,7 @@
|
|||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! use native_tls::{Certificate, TlsConnector};
|
//! use native_tls::{Certificate, TlsConnector};
|
||||||
//! use tokio_postgres_native_tls::MakeTlsConnector;
|
//! use postgres_native_tls::MakeTlsConnector;
|
||||||
//! use std::fs;
|
//! use std::fs;
|
||||||
//!
|
//!
|
||||||
//! # fn main() -> Result<(), Box<std::error::Error>> {
|
//! # fn main() -> Result<(), Box<std::error::Error>> {
|
||||||
@ -27,7 +27,7 @@
|
|||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! use native_tls::{Certificate, TlsConnector};
|
//! use native_tls::{Certificate, TlsConnector};
|
||||||
//! use tokio_postgres_native_tls::MakeTlsConnector;
|
//! use postgres_native_tls::MakeTlsConnector;
|
||||||
//! use std::fs;
|
//! use std::fs;
|
||||||
//!
|
//!
|
||||||
//! # fn main() -> Result<(), Box<std::error::Error>> {
|
//! # fn main() -> Result<(), Box<std::error::Error>> {
|
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tokio-postgres-openssl"
|
name = "postgres-openssl"
|
||||||
version = "0.1.0-rc.1"
|
version = "0.1.0-rc.1"
|
||||||
authors = ["Steven Fackler <sfackler@gmail.com>"]
|
authors = ["Steven Fackler <sfackler@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
@ -4,7 +4,7 @@
|
|||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! use openssl::ssl::{SslConnector, SslMethod};
|
//! use openssl::ssl::{SslConnector, SslMethod};
|
||||||
//! use tokio_postgres_openssl::MakeTlsConnector;
|
//! use postgres_openssl::MakeTlsConnector;
|
||||||
//!
|
//!
|
||||||
//! # fn main() -> Result<(), Box<std::error::Error>> {
|
//! # fn main() -> Result<(), Box<std::error::Error>> {
|
||||||
//! let mut builder = SslConnector::builder(SslMethod::tls())?;
|
//! let mut builder = SslConnector::builder(SslMethod::tls())?;
|
||||||
@ -23,7 +23,7 @@
|
|||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! use openssl::ssl::{SslConnector, SslMethod};
|
//! use openssl::ssl::{SslConnector, SslMethod};
|
||||||
//! use tokio_postgres_openssl::MakeTlsConnector;
|
//! use postgres_openssl::MakeTlsConnector;
|
||||||
//!
|
//!
|
||||||
//! # fn main() -> Result<(), Box<std::error::Error>> {
|
//! # fn main() -> Result<(), Box<std::error::Error>> {
|
||||||
//! let mut builder = SslConnector::builder(SslMethod::tls())?;
|
//! let mut builder = SslConnector::builder(SslMethod::tls())?;
|
@ -106,8 +106,8 @@
|
|||||||
//!
|
//!
|
||||||
//! TLS support is implemented via external libraries. `Client::connect` and `Config::connect` take a TLS implementation
|
//! TLS support is implemented via external libraries. `Client::connect` and `Config::connect` take a TLS implementation
|
||||||
//! as an argument. The `NoTls` type in this crate can be used when TLS is not required. Otherwise, the
|
//! as an argument. The `NoTls` type in this crate can be used when TLS is not required. Otherwise, the
|
||||||
//! `tokio-postgres-openssl` and `tokio-postgres-native-tls` crates provide implementations backed by the `openssl` and
|
//! `postgres-openssl` and `postgres-native-tls` crates provide implementations backed by the `openssl` and `native-tls`
|
||||||
//! `native-tls` crates, respectively.
|
//! crates, respectively.
|
||||||
#![doc(html_root_url = "https://docs.rs/tokio-postgres/0.4.0-rc.1")]
|
#![doc(html_root_url = "https://docs.rs/tokio-postgres/0.4.0-rc.1")]
|
||||||
#![warn(rust_2018_idioms, clippy::all, missing_docs)]
|
#![warn(rust_2018_idioms, clippy::all, missing_docs)]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user