Skip to content

Commit 789b878

Browse files
committed
Add support for time 0.3
1 parent 3e4be86 commit 789b878

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

postgres-types/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ with-geo-types-0_7 = ["geo-types-0_7"]
2222
with-serde_json-1 = ["serde-1", "serde_json-1"]
2323
with-uuid-0_8 = ["uuid-08"]
2424
with-time-0_2 = ["time-02"]
25+
with-time-0_3 = ["time-03"]
2526

2627
[dependencies]
2728
bytes = "1.0"
@@ -40,3 +41,4 @@ serde-1 = { version = "1.0", package = "serde", optional = true }
4041
serde_json-1 = { version = "1.0", package = "serde_json", optional = true }
4142
uuid-08 = { version = "0.8", package = "uuid", optional = true }
4243
time-02 = { version = "0.2", package = "time", optional = true }
44+
time-03 = { version = "0.3", package = "time", default-features = false, optional = true }

postgres-types/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ mod geo_types_07;
209209
mod serde_json_1;
210210
#[cfg(feature = "with-time-0_2")]
211211
mod time_02;
212+
#[cfg(feature = "with-time-0_3")]
213+
mod time_03;
212214
#[cfg(feature = "with-uuid-0_8")]
213215
mod uuid_08;
214216

postgres/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
//! | `with-geo-types-0_7` | Enable support for the 0.7 version of the `geo-types` crate. | [geo-types](https://crates.io/crates/geo-types/0.7.0) 0.7 | no |
6262
//! | `with-serde_json-1` | Enable support for the `serde_json` crate. | [serde_json](https://crates.io/crates/serde_json) 1.0 | no |
6363
//! | `with-uuid-0_8` | Enable support for the `uuid` crate. | [uuid](https://crates.io/crates/uuid) 0.8 | no |
64-
//! | `with-time-0_2` | Enable support for the `time` crate. | [time](https://crates.io/crates/time) 0.2 | no |
64+
//! | `with-time-0_2` | Enable support for the 0.2 version of the `time` crate. | [time](https://crates.io/crates/time/0.2.0) 0.2 | no |
65+
//! | `with-time-0_3` | Enable support for the 0.3 version of the `time` crate. | [time](https://crates.io/crates/time/0.3.0) 0.3 | no |
6566
#![warn(clippy::all, rust_2018_idioms, missing_docs)]
6667

6768
pub use fallible_iterator;

tokio-postgres/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@
112112
//! | `with-geo-types-0_7` | Enable support for the 0.7 version of the `geo-types` crate. | [geo-types](https://crates.io/crates/geo-types/0.7.0) 0.7 | no |
113113
//! | `with-serde_json-1` | Enable support for the `serde_json` crate. | [serde_json](https://crates.io/crates/serde_json) 1.0 | no |
114114
//! | `with-uuid-0_8` | Enable support for the `uuid` crate. | [uuid](https://crates.io/crates/uuid) 0.8 | no |
115-
//! | `with-time-0_2` | Enable support for the `time` crate. | [time](https://crates.io/crates/time) 0.2 | no |
115+
//! | `with-time-0_2` | Enable support for the 0.2 version of the `time` crate. | [time](https://crates.io/crates/time/0.2.0) 0.2 | no |
116+
//! | `with-time-0_3` | Enable support for the 0.3 version of the `time` crate. | [time](https://crates.io/crates/time/0.3.0) 0.3 | no |
116117
#![doc(html_root_url = "https://docs.rs/tokio-postgres/0.7")]
117118
#![warn(rust_2018_idioms, clippy::all, missing_docs)]
118119

0 commit comments

Comments
 (0)