feat: Implement net.cidr_contains builtin (#471)

Major changes:
- Implement the `net.cidr_contains` builtin
- Enable the v0 and v1 test for `net.cidr_contains`
- Add the `netip` crate to standardize CIDR searching and other
  operations

Key Concept:
- Allow users to leverage the `net.cidr_contains` builtin to check
  whether an IPv4 or IPv6 CIDR contains a specified IP address or
  subnet.

Testing:
- All tests passing.

Signed-off-by: tjons <tylerschade99@gmail.com>
This commit is contained in:
Tyler Schade
2025-09-05 16:21:41 -04:00
committed by GitHub
parent 85753aaf37
commit 1b0c2d4072
10 changed files with 149 additions and 5 deletions

View File

@@ -46,6 +46,7 @@ v0/jsonschema
v0/negation
v0/nestedreferences
v0/netcidrisvalid
v0/netcidrcontains
v0/numbersrange
v0/numbersrangestep
v0/objectfilter
@@ -150,6 +151,7 @@ v1/jsonremoveidempotent
v1/jsonschema
v1/negation
v1/nestedreferences
v1/netcidrcontains
v1/netcidrisvalid
v1/numbersrange
v1/numbersrangestep
@@ -206,4 +208,4 @@ v1/uuid
v1/varreferences
v1/virtualdocs
v1/walkbuiltin
v1/withkeyword
v1/withkeyword