bb961edcc4
The latest version of chrono, v0.4.16, permits removing its dependency on the long-deprecated time v0.1 crate by disabling the "oldtime" feature. For backwards compatibility, chrono is leaving the "oldtime" feature on by default, so disabling the "oldtime" feature requires disabling all default features and then re-enabling the one default feature ("clock") that rust-postgres needs. Note that this change does not cause any backwards-compatibility problems for users of rust-postgres. The "oldtime" feature controls only whether `time_v01::Duration` and `chrono::Duration` are the same type and does not affect any of the APIs used by rust-postgres.
70 lines
2.1 KiB
TOML
70 lines
2.1 KiB
TOML
[package]
|
|
name = "tokio-postgres"
|
|
version = "0.5.5"
|
|
authors = ["Steven Fackler <sfackler@gmail.com>"]
|
|
edition = "2018"
|
|
license = "MIT/Apache-2.0"
|
|
description = "A native, asynchronous PostgreSQL client"
|
|
repository = "https://github.com/sfackler/rust-postgres"
|
|
readme = "../README.md"
|
|
keywords = ["database", "postgres", "postgresql", "sql", "async"]
|
|
categories = ["database"]
|
|
|
|
[lib]
|
|
test = false
|
|
|
|
[[bench]]
|
|
name = "bench"
|
|
harness = false
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
|
|
[badges]
|
|
circle-ci = { repository = "sfackler/rust-postgres" }
|
|
|
|
[features]
|
|
default = ["runtime"]
|
|
runtime = ["tokio/dns", "tokio/net", "tokio/time"]
|
|
|
|
with-bit-vec-0_6 = ["postgres-types/with-bit-vec-0_6"]
|
|
with-chrono-0_4 = ["postgres-types/with-chrono-0_4"]
|
|
with-eui48-0_4 = ["postgres-types/with-eui48-0_4"]
|
|
with-geo-types-0_4 = ["postgres-types/with-geo-types-0_4"]
|
|
with-geo-types-0_6 = ["postgres-types/with-geo-types-0_6"]
|
|
with-serde_json-1 = ["postgres-types/with-serde_json-1"]
|
|
with-uuid-0_8 = ["postgres-types/with-uuid-0_8"]
|
|
with-time-0_2 = ["postgres-types/with-time-0_2"]
|
|
|
|
[dependencies]
|
|
async-trait = "0.1"
|
|
bytes = "0.5"
|
|
byteorder = "1.0"
|
|
fallible-iterator = "0.2"
|
|
futures = "0.3"
|
|
log = "0.4"
|
|
parking_lot = "0.11"
|
|
percent-encoding = "2.0"
|
|
pin-project-lite = "0.1"
|
|
phf = "0.8"
|
|
postgres-protocol = { version = "0.5.0", path = "../postgres-protocol" }
|
|
postgres-types = { version = "0.1.2", path = "../postgres-types" }
|
|
tokio = { version = "0.2", features = ["io-util"] }
|
|
tokio-util = { version = "0.3", features = ["codec"] }
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "0.2", features = ["full"] }
|
|
env_logger = "0.7"
|
|
criterion = "0.3"
|
|
|
|
bit-vec-06 = { version = "0.6", package = "bit-vec" }
|
|
chrono-04 = { version = "0.4", package = "chrono", default-features = false }
|
|
eui48-04 = { version = "0.4", package = "eui48" }
|
|
geo-types-04 = { version = "0.4", package = "geo-types" }
|
|
geo-types-06 = { version = "0.6", package = "geo-types" }
|
|
serde-1 = { version = "1.0", package = "serde" }
|
|
serde_json-1 = { version = "1.0", package = "serde_json" }
|
|
uuid-08 = { version = "0.8", package = "uuid" }
|
|
time-02 = { version = "0.2", package = "time" }
|
|
|