{"id":20624897,"url":"https://github.com/gagath/debcontrol_struct","last_synced_at":"2026-04-22T01:01:00.489Z","repository":{"id":57616971,"uuid":"392448956","full_name":"gagath/debcontrol_struct","owner":"gagath","description":"Automatically parse Debian control files from struct definitions.","archived":false,"fork":false,"pushed_at":"2023-07-09T13:53:39.000Z","size":43,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-18T18:30:22.559Z","etag":null,"topics":["debian"],"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/gagath.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSES/Apache-2.0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-08-03T20:35:59.000Z","updated_at":"2022-07-28T20:00:35.000Z","dependencies_parsed_at":"2023-08-07T15:41:50.077Z","dependency_job_id":null,"html_url":"https://github.com/gagath/debcontrol_struct","commit_stats":null,"previous_names":["microjoe/debcontrol_struct"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/gagath/debcontrol_struct","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagath%2Fdebcontrol_struct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagath%2Fdebcontrol_struct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagath%2Fdebcontrol_struct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagath%2Fdebcontrol_struct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gagath","download_url":"https://codeload.github.com/gagath/debcontrol_struct/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagath%2Fdebcontrol_struct/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31558538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["debian"],"created_at":"2024-11-16T13:07:15.212Z","updated_at":"2026-04-22T01:01:00.434Z","avatar_url":"https://github.com/gagath.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\nSPDX-FileCopyrightText: 2022 Agathe Porte \u003cmicrojoe@microjoe.org\u003e\n\nSPDX-License-Identifier: Apache-2.0 OR MIT\n--\u003e\n\n# debcontrol_struct\n\n[![Build](https://github.com/MicroJoe/debcontrol_struct/actions/workflows/ci.yml/badge.svg)](https://github.com/MicroJoe/debcontrol_struct/actions/workflows/ci.yml)\n[![Latest version](https://img.shields.io/crates/v/debcontrol_struct.svg)](https://crates.io/crates/debcontrol_struct)\n[![Documentation](https://docs.rs/debcontrol_struct/badge.svg)](https://docs.rs/debcontrol_struct)\n[![License](https://img.shields.io/crates/l/debcontrol_struct.svg)](https://crates.io/crates/debcontrol_struct)\n[![REUSE status](https://api.reuse.software/badge/github.com/MicroJoe/debcontrol_struct)](https://api.reuse.software/info/github.com/MicroJoe/debcontrol_struct)\n\nAutomatic Debian control file parsing for structs.\n\n## Usage\n\nIn order to use this crate, you have to add the following dependencies into\nyour project's `Cargo.toml` file:\n\n```toml\n[dependencies]\ndebcontrol_struct = \"0.3.1\"\n```\n\n## Example\n\nAfter the crate is installed, you can enjoy the `DebControl` derive!\n\nBy defining the following structure:\n\n```rust\nuse debcontrol::{Paragraph, Field};\nuse debcontrol_struct::DebControl;\n\n#[derive(DebControl)]\nstruct DerivedStruct {\n    first: String,\n    multiple_words: String,\n    optional: Option\u003cString\u003e,\n}\n```\n\nYou can then automatically parse the structure from a debcontrol Paragraph:\n\n```rust\nlet input = \u0026debcontrol::parse_str(\n    \"First: Hello\\n\\\n     Multiple-Words: World\\n\"\n).unwrap()[0];\n\nlet derived = DerivedStruct::from_paragraph(\u0026input).unwrap();\nassert_eq!(\"Hello\", derived.first);\nassert_eq!(\"World\", derived.multiple_words);\nassert_eq!(None, derived.optional);\n```\n\n## License\n\nLicensed under either of [Apache License, Version 2.0](LICENSE-APACHE) or [MIT\nlicense](LICENSE-MIT) at your option.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this project by you, as defined in the Apache-2.0 license,\nshall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgagath%2Fdebcontrol_struct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgagath%2Fdebcontrol_struct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgagath%2Fdebcontrol_struct/lists"}