We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ipnetwork - currently used in omicron - and ipnet (not used yet) serve very similar purposes: they both track network addresses, ranges, and subnets.
ipnetwork
ipnet
JsonSchema
ToSql
FromSql
Doing so would let us move to a crate with slightly better subnet-management functionality, and a better cadence of support.
The text was updated successfully, but these errors were encountered:
Adding ipnet support to diesel has been proposed with diesel-rs/diesel#3164 , and implemented with diesel-rs/diesel#3165
Sorry, something went wrong.
Maybe relevant: achanda/ipnetwork#157
Also: diesel-rs/diesel#3244
It seems that this now means we can just use ipnet and its types directly, both in the external API and the database representation.
No branches or pull requests
ipnetwork - currently used in omicron - and ipnet (not used yet) serve very similar purposes: they both track network addresses, ranges, and subnets.
Background
ipnetwork
as it was supported natively within Diesel (see: the conversion for https://docs.diesel.rs/master/diesel/pg/sql_types/struct.Inet.html ).ipnet
didn't have such converters.Progress
ipnet
crate has been pretty amenable to addingJsonSchema
support: Add 'schemars' feature for deriving JSON schema krisprice/ipnet#31ipnet
convertersToSql
andFromSql
for DieselDoing so would let us move to a crate with slightly better subnet-management functionality, and a better cadence of support.
The text was updated successfully, but these errors were encountered: