Skip to content

Commit 7ee61f3

Browse files
authored
Merge pull request sfackler#1207 from sfackler/cidr-fixes
Cleanup cidr features
2 parents 0785381 + a5eaea1 commit 7ee61f3

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
- run: docker compose up -d
8585
- uses: sfackler/actions/rustup@master
8686
with:
87-
version: 1.75.0
87+
version: 1.81.0
8888
- run: echo "version=$(rustc --version)" >> $GITHUB_OUTPUT
8989
id: rust-version
9090
- uses: actions/cache@v3

postgres-types/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,8 @@ impl WrongType {
491491
/// | `chrono::DateTime<FixedOffset>` | TIMESTAMP WITH TIME ZONE |
492492
/// | `chrono::NaiveDate` | DATE |
493493
/// | `chrono::NaiveTime` | TIME |
494+
/// | `cidr::IpCidr` | CIDR |
495+
/// | `cidr::IpInet` | INET |
494496
/// | `time::PrimitiveDateTime` | TIMESTAMP |
495497
/// | `time::OffsetDateTime` | TIMESTAMP WITH TIME ZONE |
496498
/// | `time::Date` | DATE |
@@ -842,6 +844,8 @@ pub enum IsNull {
842844
/// | `chrono::DateTime<FixedOffset>` | TIMESTAMP WITH TIME ZONE |
843845
/// | `chrono::NaiveDate` | DATE |
844846
/// | `chrono::NaiveTime` | TIME |
847+
/// | `cidr::IpCidr` | CIDR |
848+
/// | `cidr::IpInet` | INET |
845849
/// | `time::PrimitiveDateTime` | TIMESTAMP |
846850
/// | `time::OffsetDateTime` | TIMESTAMP WITH TIME ZONE |
847851
/// | `time::Date` | DATE |

postgres/Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ circle-ci = { repository = "sfackler/rust-postgres" }
2424
array-impls = ["tokio-postgres/array-impls"]
2525
with-bit-vec-0_6 = ["tokio-postgres/with-bit-vec-0_6"]
2626
with-chrono-0_4 = ["tokio-postgres/with-chrono-0_4"]
27+
with-cidr-0_2 = ["tokio-postgres/with-cidr-0_2"]
28+
with-cidr-0_3 = ["tokio-postgres/with-cidr-0_3"]
2729
with-eui48-0_4 = ["tokio-postgres/with-eui48-0_4"]
2830
with-eui48-1 = ["tokio-postgres/with-eui48-1"]
2931
with-geo-types-0_6 = ["tokio-postgres/with-geo-types-0_6"]

tokio-postgres/Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ runtime = ["tokio/net", "tokio/time"]
3030
array-impls = ["postgres-types/array-impls"]
3131
with-bit-vec-0_6 = ["postgres-types/with-bit-vec-0_6"]
3232
with-chrono-0_4 = ["postgres-types/with-chrono-0_4"]
33+
with-cidr-0_2 = ["postgres-types/with-cidr-0_2"]
34+
with-cidr-0_3 = ["postgres-types/with-cidr-0_3"]
3335
with-eui48-0_4 = ["postgres-types/with-eui48-0_4"]
3436
with-eui48-1 = ["postgres-types/with-eui48-1"]
3537
with-geo-types-0_6 = ["postgres-types/with-geo-types-0_6"]

0 commit comments

Comments
 (0)