Skip to content

Commit 37fb392

Browse files
committed
Added support for geo-types 0.7 via with-geo-types-0_7 feature
1 parent cc6a0ad commit 37fb392

File tree

13 files changed

+32
-77
lines changed

13 files changed

+32
-77
lines changed

postgres-types/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## Unreleased
4+
5+
### Added
6+
7+
* Added support for `geo-types` 0.7 via `with-geo-types-0_7` feature.
8+
39
## v0.2.0 - 2020-12-25
410

511
### Changed

postgres-types/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ derive = ["postgres-derive"]
1515
with-bit-vec-0_6 = ["bit-vec-06"]
1616
with-chrono-0_4 = ["chrono-04"]
1717
with-eui48-0_4 = ["eui48-04"]
18-
with-geo-types-0_6 = ["geo-types-06"]
18+
with-geo-types-0_7 = ["geo-types-0_7"]
1919
with-serde_json-1 = ["serde-1", "serde_json-1"]
2020
with-uuid-0_8 = ["uuid-08"]
2121
with-time-0_2 = ["time-02"]
@@ -29,7 +29,7 @@ postgres-derive = { version = "0.4.0", optional = true, path = "../postgres-deri
2929
bit-vec-06 = { version = "0.6", package = "bit-vec", optional = true }
3030
chrono-04 = { version = "0.4.16", package = "chrono", default-features = false, features = ["clock"], optional = true }
3131
eui48-04 = { version = "0.4", package = "eui48", optional = true }
32-
geo-types-06 = { version = "0.6", package = "geo-types", optional = true }
32+
geo-types-0_7 = { version = "0.7", package = "geo-types", optional = true }
3333
serde-1 = { version = "1.0", package = "serde", optional = true }
3434
serde_json-1 = { version = "1.0", package = "serde_json", optional = true }
3535
uuid-08 = { version = "0.8", package = "uuid", optional = true }

postgres-types/src/geo_types_06.rs renamed to postgres-types/src/geo_types_07.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use bytes::BytesMut;
22
use fallible_iterator::FallibleIterator;
3-
use geo_types_06::{Coordinate, LineString, Point, Rect};
3+
use geo_types_0_7::{Coordinate, LineString, Point, Rect};
44
use postgres_protocol::types;
55
use std::error::Error;
66

postgres-types/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ mod bit_vec_06;
194194
mod chrono_04;
195195
#[cfg(feature = "with-eui48-0_4")]
196196
mod eui48_04;
197-
#[cfg(feature = "with-geo-types-0_6")]
198-
mod geo_types_06;
197+
#[cfg(feature = "with-geo-types-0_7")]
198+
mod geo_types_07;
199199
#[cfg(feature = "with-serde_json-1")]
200200
mod serde_json_1;
201201
#[cfg(feature = "with-time-0_2")]

postgres/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## Unreleased
4+
5+
### Added
6+
7+
* Added support for `geo-types` 0.7 via `with-geo-types-0_7` feature.
8+
39
## v0.19.0 - 2020-12-25
410

511
### Changed

postgres/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ circle-ci = { repository = "sfackler/rust-postgres" }
2424
with-bit-vec-0_6 = ["tokio-postgres/with-bit-vec-0_6"]
2525
with-chrono-0_4 = ["tokio-postgres/with-chrono-0_4"]
2626
with-eui48-0_4 = ["tokio-postgres/with-eui48-0_4"]
27-
with-geo-types-0_6 = ["tokio-postgres/with-geo-types-0_6"]
27+
with-geo-types-0_7 = ["tokio-postgres/with-geo-types-0_7"]
2828
with-serde_json-1 = ["tokio-postgres/with-serde_json-1"]
2929
with-uuid-0_8 = ["tokio-postgres/with-uuid-0_8"]
3030
with-time-0_2 = ["tokio-postgres/with-time-0_2"]

postgres/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
//! | `with-bit-vec-0_6` | Enable support for the `bit-vec` crate. | [bit-vec](https://crates.io/crates/bit-vec) 0.6 | no |
5757
//! | `with-chrono-0_4` | Enable support for the `chrono` crate. | [chrono](https://crates.io/crates/chrono) 0.4 | no |
5858
//! | `with-eui48-0_4` | Enable support for the `eui48` crate. | [eui48](https://crates.io/crates/eui48) 0.4 | no |
59-
//! | `with-geo-types-0_4` | Enable support for the 0.4 version of the `geo-types` crate. | [geo-types](https://crates.io/crates/geo-types/0.4.0) 0.4 | no |
60-
//! | `with-geo-types-0_5` | Enable support for the 0.5 version of the `geo-types` crate. | [geo-types](https://crates.io/crates/geo-types/0.5.0) 0.5 | no |
59+
//! | `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 |
6160
//! | `with-serde_json-1` | Enable support for the `serde_json` crate. | [serde_json](https://crates.io/crates/serde_json) 1.0 | no |
6261
//! | `with-uuid-0_8` | Enable support for the `uuid` crate. | [uuid](https://crates.io/crates/uuid) 0.8 | no |
6362
//! | `with-time-0_2` | Enable support for the `time` crate. | [time](https://crates.io/crates/time) 0.2 | no |

tokio-postgres/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## Unreleased
4+
5+
### Added
6+
7+
* Added support for `geo-types` 0.7 via `with-geo-types-0_7` feature.
8+
39
## v0.7.0 - 2020-12-25
410

511
### Changed

tokio-postgres/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ runtime = ["tokio/net", "tokio/time"]
3030
with-bit-vec-0_6 = ["postgres-types/with-bit-vec-0_6"]
3131
with-chrono-0_4 = ["postgres-types/with-chrono-0_4"]
3232
with-eui48-0_4 = ["postgres-types/with-eui48-0_4"]
33-
with-geo-types-0_6 = ["postgres-types/with-geo-types-0_6"]
33+
with-geo-types-0_7 = ["postgres-types/with-geo-types-0_7"]
3434
with-serde_json-1 = ["postgres-types/with-serde_json-1"]
3535
with-uuid-0_8 = ["postgres-types/with-uuid-0_8"]
3636
with-time-0_2 = ["postgres-types/with-time-0_2"]
@@ -60,7 +60,7 @@ criterion = "0.3"
6060
bit-vec-06 = { version = "0.6", package = "bit-vec" }
6161
chrono-04 = { version = "0.4", package = "chrono", default-features = false }
6262
eui48-04 = { version = "0.4", package = "eui48" }
63-
geo-types-06 = { version = "0.6", package = "geo-types" }
63+
geo-types-07 = { version = "0.7", package = "geo-types" }
6464
serde-1 = { version = "1.0", package = "serde" }
6565
serde_json-1 = { version = "1.0", package = "serde_json" }
6666
uuid-08 = { version = "0.8", package = "uuid" }

tokio-postgres/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@
107107
//! | `with-bit-vec-0_6` | Enable support for the `bit-vec` crate. | [bit-vec](https://crates.io/crates/bit-vec) 0.6 | no |
108108
//! | `with-chrono-0_4` | Enable support for the `chrono` crate. | [chrono](https://crates.io/crates/chrono) 0.4 | no |
109109
//! | `with-eui48-0_4` | Enable support for the `eui48` crate. | [eui48](https://crates.io/crates/eui48) 0.4 | no |
110-
//! | `with-geo-types-0_4` | Enable support for the 0.4 version of the `geo-types` crate. | [geo-types](https://crates.io/crates/geo-types/0.4.0) 0.4 | no |
111-
//! | `with-geo-types-0_5` | Enable support for the 0.5 version of the `geo-types` crate. | [geo-types](https://crates.io/crates/geo-types/0.5.0) 0.5 | no |
110+
//! | `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 |
112111
//! | `with-serde_json-1` | Enable support for the `serde_json` crate. | [serde_json](https://crates.io/crates/serde_json) 1.0 | no |
113112
//! | `with-uuid-0_8` | Enable support for the `uuid` crate. | [uuid](https://crates.io/crates/uuid) 0.8 | no |
114113
//! | `with-time-0_2` | Enable support for the `time` crate. | [time](https://crates.io/crates/time) 0.2 | no |

tokio-postgres/tests/test/types/geo_types_04.rs

-60
This file was deleted.

tokio-postgres/tests/test/types/geo_types_06.rs renamed to tokio-postgres/tests/test/types/geo_types_07.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
use geo_types_06::{Coordinate, LineString, Point, Rect};
1+
#[cfg(feature = "with-geo-types-0_7")]
2+
use geo_types_07::{Coordinate, LineString, Point, Rect};
23

34
use crate::types::test_type;
45

tokio-postgres/tests/test/types/mod.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ mod bit_vec_06;
1919
mod chrono_04;
2020
#[cfg(feature = "with-eui48-0_4")]
2121
mod eui48_04;
22-
#[cfg(feature = "with-geo-types-0_4")]
23-
mod geo_types_04;
24-
#[cfg(feature = "with-geo-types-0_6")]
25-
mod geo_types_06;
22+
#[cfg(feature = "with-geo-types-0_7")]
23+
mod geo_types_07;
2624
#[cfg(feature = "with-serde_json-1")]
2725
mod serde_json_1;
2826
#[cfg(feature = "with-time-0_2")]

0 commit comments

Comments
 (0)