Add support for the 0.6 version of geo_types.
This change drops the support for the 0.5 version by renaming the feature, as no version of `postgres` with it included has ever been released.
This commit is contained in:
@@ -16,7 +16,7 @@ with-bit-vec-0_6 = ["bit-vec-06"]
|
||||
with-chrono-0_4 = ["chrono-04"]
|
||||
with-eui48-0_4 = ["eui48-04"]
|
||||
with-geo-types-0_4 = ["geo-types-04"]
|
||||
with-geo-types-0_5 = ["geo-types-05"]
|
||||
with-geo-types-0_6 = ["geo-types-06"]
|
||||
with-serde_json-1 = ["serde-1", "serde_json-1"]
|
||||
with-uuid-0_8 = ["uuid-08"]
|
||||
with-time-0_2 = ["time-02"]
|
||||
@@ -31,7 +31,7 @@ bit-vec-06 = { version = "0.6", package = "bit-vec", optional = true }
|
||||
chrono-04 = { version = "0.4", package = "chrono", optional = true }
|
||||
eui48-04 = { version = "0.4", package = "eui48", optional = true }
|
||||
geo-types-04 = { version = "0.4", package = "geo-types", optional = true }
|
||||
geo-types-05 = { version = "0.5", package = "geo-types", optional = true }
|
||||
geo-types-06 = { version = "0.6", package = "geo-types", optional = true }
|
||||
serde-1 = { version = "1.0", package = "serde", optional = true }
|
||||
serde_json-1 = { version = "1.0", package = "serde_json", optional = true }
|
||||
uuid-08 = { version = "0.8", package = "uuid", optional = true }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use bytes::BytesMut;
|
||||
use fallible_iterator::FallibleIterator;
|
||||
use geo_types_05::{Coordinate, LineString, Point, Rect};
|
||||
use geo_types_06::{Coordinate, LineString, Point, Rect};
|
||||
use postgres_protocol::types;
|
||||
use std::error::Error;
|
||||
|
||||
@@ -196,8 +196,8 @@ mod chrono_04;
|
||||
mod eui48_04;
|
||||
#[cfg(feature = "with-geo-types-0_4")]
|
||||
mod geo_types_04;
|
||||
#[cfg(feature = "with-geo-types-0_5")]
|
||||
mod geo_types_05;
|
||||
#[cfg(feature = "with-geo-types-0_6")]
|
||||
mod geo_types_06;
|
||||
#[cfg(feature = "with-serde_json-1")]
|
||||
mod serde_json_1;
|
||||
#[cfg(feature = "with-time-0_2")]
|
||||
|
||||
@@ -25,7 +25,7 @@ with-bit-vec-0_6 = ["tokio-postgres/with-bit-vec-0_6"]
|
||||
with-chrono-0_4 = ["tokio-postgres/with-chrono-0_4"]
|
||||
with-eui48-0_4 = ["tokio-postgres/with-eui48-0_4"]
|
||||
with-geo-types-0_4 = ["tokio-postgres/with-geo-types-0_4"]
|
||||
with-geo-types-0_5 = ["tokio-postgres/with-geo-types-0_5"]
|
||||
with-geo-types-0_6 = ["tokio-postgres/with-geo-types-0_6"]
|
||||
with-serde_json-1 = ["tokio-postgres/with-serde_json-1"]
|
||||
with-uuid-0_8 = ["tokio-postgres/with-uuid-0_8"]
|
||||
with-time-0_2 = ["tokio-postgres/with-time-0_2"]
|
||||
|
||||
@@ -31,7 +31,7 @@ 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_5 = ["postgres-types/with-geo-types-0_5"]
|
||||
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"]
|
||||
@@ -61,7 +61,7 @@ bit-vec-06 = { version = "0.6", package = "bit-vec" }
|
||||
chrono-04 = { version = "0.4", package = "chrono" }
|
||||
eui48-04 = { version = "0.4", package = "eui48" }
|
||||
geo-types-04 = { version = "0.4", package = "geo-types" }
|
||||
geo-types-05 = { version = "0.5", 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" }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use geo_types_05::{Coordinate, LineString, Point, Rect};
|
||||
use geo_types_06::{Coordinate, LineString, Point, Rect};
|
||||
|
||||
use crate::types::test_type;
|
||||
|
||||
@@ -20,8 +20,8 @@ mod chrono_04;
|
||||
mod eui48_04;
|
||||
#[cfg(feature = "with-geo-types-0_4")]
|
||||
mod geo_types_04;
|
||||
#[cfg(feature = "with-geo-types-0_5")]
|
||||
mod geo_types_05;
|
||||
#[cfg(feature = "with-geo-types-0_6")]
|
||||
mod geo_types_06;
|
||||
#[cfg(feature = "with-serde_json-1")]
|
||||
mod serde_json_1;
|
||||
#[cfg(feature = "with-time-0_2")]
|
||||
|
||||
Reference in New Issue
Block a user