{"id":15007468,"url":"https://github.com/mcdostone/nom-config-in","last_synced_at":"2026-03-17T13:20:39.785Z","repository":{"id":186151209,"uuid":"668801242","full_name":"Mcdostone/nom-config-in","owner":"Mcdostone","description":"A config.in parser written in Rust.","archived":false,"fork":false,"pushed_at":"2023-08-20T18:42:50.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-23T15:22:15.588Z","etag":null,"topics":["config-in","linux-kernel","nom","parsing","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/nom-config-in","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/Mcdostone.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}},"created_at":"2023-07-20T16:08:29.000Z","updated_at":"2023-08-20T18:41:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"194fac57-f1f5-4d9a-9a0e-ddf19bf0ac47","html_url":"https://github.com/Mcdostone/nom-config-in","commit_stats":null,"previous_names":["mcdostone/nom-config-in"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mcdostone%2Fnom-config-in","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mcdostone%2Fnom-config-in/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mcdostone%2Fnom-config-in/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mcdostone%2Fnom-config-in/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mcdostone","download_url":"https://codeload.github.com/Mcdostone/nom-config-in/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243165538,"owners_count":20246725,"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","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":["config-in","linux-kernel","nom","parsing","rust"],"created_at":"2024-09-24T19:10:11.812Z","updated_at":"2025-11-11T11:10:49.270Z","avatar_url":"https://github.com/Mcdostone.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cbr/\u003e\n  \u003ch1\u003eA Config.in parser written in rust.\u003c/h1\u003e\n\u003c/div\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.rust-lang.org/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Rust-1.71.0-green.svg?logo=rust\" alt=\"Rust version\"/\u003e\n  \u003c/a\u003e\n \u003ca href=\"https://codecov.io/gh/Mcdostone/nom-config-in\" \u003e \n \u003cimg src=\"https://codecov.io/gh/Mcdostone/nom-config-in/graph/badge.svg?token=PSMOBWY478\"/\u003e \n \u003c/a\u003e\n \u003ca href=\"https://github.com/rust-bakery/nom#rust-version-requirements-msrv\" \u003e \n   \u003cimg src=\"https://img.shields.io/badge/MSRV-1.56.0+-lightgray.svg?logo=rust\" alt=\"Minimum supported rust version: 1.56.0 or plus\"/\u003e \n \u003c/a\u003e\n \u003ca href=\"https://crates.io/crates/nom-config-in\" \u003e \n   \u003cimg src=\"https://img.shields.io/crates/v/nom-config-in.svg?logo=crate\" alt=\"crates.io Version\"/\u003e \n \u003c/a\u003e\n\u003c/p\u003e\n\n\n**This parser is not actively maintained** since it has been replaced by [Kconfig](https://www.kernel.org/doc/html/next/kbuild/kconfig-language.html). This library has been tested from linux kernel [1.0](https://cdn.kernel.org/pub/linux/kernel/v1.0/) to [2.5.44](https://cdn.kernel.org/pub/linux/kernel/v2.5/) (542 versions).\n\n\nA Config.in file looks like this:\n\n```\n# 2.5.0/arch/i386/config.in\nmainmenu_name \"Linux Kernel Configuration\"\n\ndefine_bool CONFIG_X86 y\ndefine_bool CONFIG_ISA y\ndefine_bool CONFIG_SBUS n\n\ndefine_bool CONFIG_UID16 y\n\nmainmenu_option next_comment\ncomment 'Code maturity level options'\nbool 'Prompt for development and/or incomplete code/drivers' CONFIG_EXPERIMENTAL\nendmenu\n```\n\n\n## Getting started\n\n```bash\ncargo add nom-config-in\n``````\n```rust\nuse nom_config_in::{parse_config_in, ConfigInFile, ConfigInInput};\nuse std::path::PathBuf;\n\n// curl https://cdn.kernel.org/pub/linux/kernel/v2.5/linux-2.5.0.tar.xz | tar -xJ -C /tmp/\nfn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    let config_in_file = ConfigInFile::new(\n        PathBuf::from(\"/tmp/linux/\"),\n        PathBuf::from(\"/tmp/linux/arch/i386/config.in\"),\n    );\n    let input = config_in_file.read_to_string().unwrap();\n    let config_in = parse_config_in(ConfigInInput::new_extra(\u0026input, config_in_file));\n    println!(\"{:?}\", config_in);\n    Ok(())\n}\n```\n\n## Resources\n- https://lwn.net/Articles/8117/\n- https://os.inf.tu-dresden.de/l4env/doc/html/bid-spec/node36.html\n- https://github.com/xfguo/menuconfig/blob/master/config-language.txt","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcdostone%2Fnom-config-in","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcdostone%2Fnom-config-in","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcdostone%2Fnom-config-in/lists"}