Skip to content

feat: add IPv4 and IPv6 CIDR calculator - #423

Open
flyer5200 wants to merge 1 commit into
devlive-community:devfrom
flyer5200:feature/cidr_calc_tool
Open

flyer5200 wants to merge 1 commit into
devlive-community:devfrom
flyer5200:feature/cidr_calc_tool

Conversation

@flyer5200

Copy link
Copy Markdown

改动说明 / Summary

Add a built-in CIDR calculator for IPv4 and IPv6. It reports network boundaries, masks, address counts and ranges, and divides networks into equal subnets with paginated results. IPv4 /31 and /32 follow point-to-point and single-host conventions; IPv6 displays the full address range without a broadcast address. The interface includes English and Simplified Chinese translations.

改动类型 / Type of change

  • 新工具 / New tool

验证 / Validation

  • Three standalone Rust tests of the extracted calculation and subnet-splitting logic passed, covering IPv4, IPv6 /0, /64 and /128, input validation and pagination.
  • cargo +stable fmt --all -- --check and git diff --check passed.
  • Full workspace tests, frontend type checking and cargo xtask check were not run: dependencies were not cached and the environment could not reach the registries.
  • Desktop UI and platform integration were not tested; light and dark screenshots are not available.

未完成的项目约定 / Outstanding project conventions

  • Rust tests are currently inline rather than in a separate *_test.rs file.
  • The new tool is not yet listed in the English and Chinese README tool tables.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant