https://github.com/nuew/postgres-inet
Cidr and Inet support for rust-postgres
https://github.com/nuew/postgres-inet
ip-address postgresql rust rust-lang
Last synced: about 1 year ago
JSON representation
Cidr and Inet support for rust-postgres
- Host: GitHub
- URL: https://github.com/nuew/postgres-inet
- Owner: nuew
- License: apache-2.0
- Created: 2017-03-31T02:56:51.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-11-28T16:50:42.000Z (over 4 years ago)
- Last Synced: 2025-03-24T13:11:09.093Z (about 1 year ago)
- Topics: ip-address, postgresql, rust, rust-lang
- Language: Rust
- Size: 55.7 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# postgres-inet
[](https://travis-ci.org/nuew/postgres-inet)
[](https://docs.rs/postgres-inet/)
[](https://crates.io/crates/postgres-inet)
[]()
Provides [`cidr` and `inet`][1] support for rust's [`postgres`].
This crate is not affiliated with or supported by the author of [`postgres`].
## Installation
Add the following to your `Cargo.toml`:
```toml
[dependencies]
postgres = "0.15"
postgres-inet = "0.15"
```
This crate will have the same major and minor version numbers as the supported
version of [`postgres`]. The `patch` version number will be incremented by
one for each release within that version. Unless required by an upstream
change, this crate's API is guaranteed stable.
## Usage
Please see the `examples/` folder in the crate root for a simple example.
[1]: https://www.postgresql.org/docs/current/static/datatype-net-types.html
[`postgres`]: https://crates.io/crates/postgres