Skip to content

Commit

Permalink
Update sqlx-core/src/postgres/types/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
  • Loading branch information
rakshith-ravi and abonander committed Aug 23, 2022
1 parent 5242f85 commit 327ac86
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sqlx-core/src/postgres/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@
//! | `ipnetwork::IpNetwork` | INET, CIDR |
//! | `std::net::IpAddr` | INET, CIDR |
//!
//! Note that because `IpAddr` does not support network prefixes, it is an error to attempt to decode
//! an `IpAddr` from a `INET` or `CIDR` value with a network prefix smaller than the address' full width:
//! `/32` for IPv4 addresses and `/128` for IPv6 addresses.
//!
//! `IpNetwork` does not have this limitation.
//!
//! ### [`mac_address`](https://crates.io/crates/mac_address)
//!
//! Requires the `mac_address` Cargo feature flag.
Expand Down

0 comments on commit 327ac86

Please sign in to comment.