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

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/ZkKl3t8 July 26, 2023 at 11:02PM

Comments

Popular posts from this blog

Coalition government deal in Pakistan leaves Imran Khan’s party out of power - CNN