Show HN: Rust library for set operations on CIDRs, you can try it in a terminal https://ift.tt/voKVkRW

Show HN: Rust library for set operations on CIDRs, you can try it in a terminal I had a work objective that required me to be able to "slice" a subnet by a smaller subnet and I didn't manage to find any other libraries that accomplish this kind of computation so I set out to write one myself. Supports calculating CIDR unions, differences, and complements. The rest of the existing set operations don't really make sense for CIDRs since the only way they can overlap is if one fully contains the other (or they are equivalent). I figured a binary tree-like data structure would be the most memory efficient way to represent this, but I'm super open to any feedback especially if there's a well established better way to do this. Play with it on the command line if you have rust installed: `cargo install fcidr`! https://ift.tt/U1vjmLy July 27, 2023 at 12:32AM

Komentar

Postingan populer dari blog ini

Show HN: Interactive exercises for GNU grep, sed and awk https://ift.tt/OxeFwah

Show HN: Create demos & guides just with a simple prompt https://ift.tt/HfWo3mz