* `Connection` is now parameterized over the stream type, which can be any `AsyncRead + AsyncWrite`. * The `TlsMode` enum is now a trait, and `NoTls`, `PreferTls`, and `RequireTls` are types implementing that trait. * The `TlsConnect` trait no longer involves trait objects, and returns channel binding info alongside the stream type rather than requiring the stream to implement an additional trait. * The `connect` free function and `ConnectParams` type is gone in favor of a `Builder` type. It takes a pre-connected stream rather than automatically opening a TCP or Unix socket connection. Notably, we no longer have any dependency on the Tokio runtime. We do use the `tokio-codec` and `tokio-io` crates, but those don't actually depend on mio/tokio-reactor/etc. This means we can work with other futures-based networking stacks. We will almost certainly add back a convenience API that offers something akin to the old logic to open a TCP/Unix connection automatically but that will be worked out in a follow up PR.
52 lines
1.3 KiB
TOML
52 lines
1.3 KiB
TOML
[package]
|
|
name = "tokio-postgres"
|
|
version = "0.3.0"
|
|
authors = ["Steven Fackler <sfackler@gmail.com>"]
|
|
license = "MIT"
|
|
description = "A native PostgreSQL driver using Tokio"
|
|
repository = "https://github.com/sfackler/rust-postgres"
|
|
readme = "../README.md"
|
|
keywords = ["database", "postgres", "postgresql", "sql", "async"]
|
|
categories = ["database"]
|
|
|
|
[package.metadata.docs.rs]
|
|
features = [
|
|
"with-bit-vec-0.5",
|
|
"with-chrono-0.4",
|
|
"with-eui48-0.3",
|
|
"with-geo-0.10",
|
|
"with-serde_json-1",
|
|
"with-uuid-0.6",
|
|
"with-openssl",
|
|
]
|
|
|
|
[badges]
|
|
circle-ci = { repository = "sfackler/rust-postgres" }
|
|
|
|
[features]
|
|
"with-bit-vec-0.5" = ["postgres-shared/with-bit-vec-0.5"]
|
|
"with-chrono-0.4" = ["postgres-shared/with-chrono-0.4"]
|
|
"with-eui48-0.3" = ["postgres-shared/with-eui48-0.3"]
|
|
"with-geo-0.10" = ["postgres-shared/with-geo-0.10"]
|
|
"with-serde_json-1" = ["postgres-shared/with-serde_json-1"]
|
|
"with-uuid-0.6" = ["postgres-shared/with-uuid-0.6"]
|
|
|
|
[dependencies]
|
|
antidote = "1.0"
|
|
bytes = "0.4"
|
|
fallible-iterator = "0.1.3"
|
|
futures = "0.1.7"
|
|
futures-cpupool = "0.1"
|
|
log = "0.4"
|
|
phf = "=0.7.22"
|
|
postgres-protocol = { version = "0.3.0", path = "../postgres-protocol" }
|
|
postgres-shared = { version = "0.4.0", path = "../postgres-shared" }
|
|
state_machine_future = "0.1.7"
|
|
tokio-codec = "0.1"
|
|
tokio-io = "0.1"
|
|
void = "1.0"
|
|
|
|
[dev-dependencies]
|
|
tokio = "0.1.7"
|
|
env_logger = "0.5"
|