{"id":49199790,"url":"https://github.com/suradet-ps/config-parser-mini-tool","last_synced_at":"2026-05-29T05:31:35.917Z","repository":{"id":325797765,"uuid":"1095513256","full_name":"suradet-ps/config-parser-mini-tool","owner":"suradet-ps","description":"Repo for learning Rust on the topic of variables and mutability.","archived":false,"fork":false,"pushed_at":"2026-04-22T06:16:03.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-23T13:34:05.382Z","etag":null,"topics":["rust","rust-lang","rust-project"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suradet-ps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-13T06:36:49.000Z","updated_at":"2026-04-22T06:16:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/suradet-ps/config-parser-mini-tool","commit_stats":null,"previous_names":["pharmacist-sabot/config-parser-mini-tool","suradet-ps/config-parser-mini-tool"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/suradet-ps/config-parser-mini-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suradet-ps%2Fconfig-parser-mini-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suradet-ps%2Fconfig-parser-mini-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suradet-ps%2Fconfig-parser-mini-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suradet-ps%2Fconfig-parser-mini-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suradet-ps","download_url":"https://codeload.github.com/suradet-ps/config-parser-mini-tool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suradet-ps%2Fconfig-parser-mini-tool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33639050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"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":["rust","rust-lang","rust-project"],"created_at":"2026-04-23T13:06:09.985Z","updated_at":"2026-05-29T05:31:35.912Z","avatar_url":"https://github.com/suradet-ps.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Config Parser Mini Tool\n\n![Rust](https://img.shields.io/badge/rust-edition%202024-orange)\n![License](https://img.shields.io/badge/license-MIT-blue)\n\nA lightweight, educational Rust application designed to demonstrate core language concepts through a practical configuration parsing scenario. This tool simulates reading and processing a configuration file, showcasing variable management, type safety, and string manipulation in Rust.\n\n## Features\n\nThis project serves as a practical example of the following Rust concepts:\n\n- **Constants**: Usage of `const` for system-wide immutable values (e.g., default ports, timeouts).\n- **Immutability by Default**: Demonstrating how Rust handles variables that don't need to change.\n- **Mutable Variables**: Using `mut` for counters and state that evolves during execution.\n- **Variable Shadowing**: A powerful Rust feature allowing variables to be redeclared in the same scope, useful for type transformations (e.g., parsing a string port to an integer).\n- **String Parsing**: extracting key-value pairs from raw text data.\n- **Error Handling**: Basic error management when parsing data types.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- **Rust**: You can install Rust using `rustup`.\n  ```bash\n  curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n  ```\n\n## Installation\n\n1.  **Clone the repository**\n    ```bash\n    git clone https://github.com/suradet-ps/config-parser-mini-tool.git\n    cd config-parser-mini-tool\n    ```\n\n2.  **Build the project**\n    ```bash\n    cargo build\n    ```\n\n## Usage\n\nRun the application using `cargo`:\n\n```bash\ncargo run\n```\n\n### Expected Output\n\nYou should see output demonstrating the parsing process:\n\n```text\n--- Parsing Configuration ---\nInput:\nhost=127.0.0.1\nport=3000\nmax_connections=100\n\nInitial host: localhost, port 8080\nFound host: 127.0.0.1\nFound port: 3000\n\n---Final Configuration---\n```\n\n## Project Structure\n\nThe core logic resides in `src/main.rs`:\n\n```rust\nfn main() {\n    // Constants for default values\n    const DEFAULT_PORT: u16 = 8080;\n    \n    // Simulating config input\n    let config_input = \"host=127.0.0.1\\nport=3000...\";\n\n    // Parsing logic loop\n    for line in config_input.lines() {\n        // ...\n    }\n}\n```\n\n## Contributing\n\nContributions are welcome! If you'd like to improve this educational tool or add more complex parsing features (like TOML or JSON support), feel free to fork the repository and submit a Pull Request.\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%2Fsuradet-ps%2Fconfig-parser-mini-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuradet-ps%2Fconfig-parser-mini-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuradet-ps%2Fconfig-parser-mini-tool/lists"}