{"id":26417788,"url":"https://github.com/lumarans30/subnetting-rust","last_synced_at":"2025-08-31T12:09:59.080Z","repository":{"id":249292669,"uuid":"831112339","full_name":"LuMarans30/Subnetting-rust","owner":"LuMarans30","description":"A simple CLI subnet calculator in Rust.","archived":false,"fork":false,"pushed_at":"2024-08-22T15:42:40.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T01:16:03.060Z","etag":null,"topics":["csv-import","rust","subnetting-ipv4-addresses"],"latest_commit_sha":null,"homepage":"https://lumarans30.github.io/Subnetting-rust","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LuMarans30.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-19T17:29:16.000Z","updated_at":"2024-08-22T15:44:40.000Z","dependencies_parsed_at":"2024-08-22T15:26:12.614Z","dependency_job_id":null,"html_url":"https://github.com/LuMarans30/Subnetting-rust","commit_stats":null,"previous_names":["lumarans30/subnetting-rust"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/LuMarans30/Subnetting-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuMarans30%2FSubnetting-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuMarans30%2FSubnetting-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuMarans30%2FSubnetting-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuMarans30%2FSubnetting-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuMarans30","download_url":"https://codeload.github.com/LuMarans30/Subnetting-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuMarans30%2FSubnetting-rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272977316,"owners_count":25025102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv-import","rust","subnetting-ipv4-addresses"],"created_at":"2025-03-18T01:16:06.207Z","updated_at":"2025-08-31T12:09:59.056Z","avatar_url":"https://github.com/LuMarans30.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Subnet Calculator\n\n![GitHub](https://img.shields.io/github/license/LuMarans30/Subnetting-rust)\n![GitHub repo size](https://img.shields.io/github/repo-size/LuMarans30/Subnetting-rust)\n![GitHub issues](https://img.shields.io/github/issues/LuMarans30/Subnetting-rust)\n![GitHub last commit](https://img.shields.io/github/last-commit/LuMarans30/Subnetting-rust)\n\nA simple command-line subnet calculator written in Rust.\n\n## What it does\n\n- Calculates subnet info based on a network address, CIDR, and number of hosts\n- Handles multiple subnets\n- Lets you input data manually or import from a CSV file\n- Can save results as CSV or Markdown\n\n## Getting Started\n\n1. Make sure you have Rust installed. If not, grab it from [https://www.rust-lang.org/](https://www.rust-lang.org/).\n\n2. Clone this repo:\n```bash\ngit clone https://github.com/LuMarans30/Subnetting-rust.git\n```\n\n3. Enter the directory:\n```bash\ncd Subnetting-rust\n```\n\n4. Build it:\n```bash\ncargo build --release\n```\n\n5. Run it:\n```bash\n./target/release/subnetting\n```\n\nAlternatively, [precompiled binaries for most platforms](https://github.com/LuMarans30/Subnetting-rust/releases/latest) are available.\n\n## Usage\n\n### Manual Input\n\n1. Choose option 1\n2. Type in your network address with CIDR (like 192.168.1.0/24)\n3. Enter how many subnets you want\n4. For each subnet, enter the number of hosts you need\n\n### CSV Import\n\n1. Choose option 2\n2. Enter the path to your CSV file\n\nYour CSV should look like this:\u003cbr /\u003e\n(The first line is the initial network address with CIDR, then one line per subnet with the number of hosts)\n```csv\n\u003cip address\u003e,\u003ccidr\u003e\n\u003cnum_host_1\u003e\n\u003cnum_host_2\u003e\n...\n\u003cnum_host_3\u003e\n```\nAlternatively, you can use a slash ('/') as a delimiter:\n```csv\n\u003cip address\u003e/\u003ccidr\u003e\n\u003cnum_host_1\u003e\n\u003cnum_host_2\u003e\n...\n\u003cnum_host_3\u003e\n```\n\n## What You'll Get\n\nFor each subnet, you'll see:\n- Network address\n- Subnet mask\n- CIDR\n- Subnet class\n- Broadcast address\n- Gateway\n- First and last usable host addresses\n- Request number of hosts\n- Actual number of hosts\n- How many IP addresses are wasted\n\nYou can save all this info to a CSV or Markdown file if you want.\n\n## Contributing\n\nThis project was created as a learning exercise. While it's primarily for personal use, suggestions and improvements are welcome. Feel free to open an issue or submit a pull request if you have ideas to enhance its functionality.\n\n## License\n\nThis project is open-source and available under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumarans30%2Fsubnetting-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flumarans30%2Fsubnetting-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumarans30%2Fsubnetting-rust/lists"}