#control #deb #dpkg #debian

no-std oma-debcontrol

Parse Debian control files

2 releases

0.3.1 Dec 3, 2023
0.3.0 Aug 18, 2023

#949 in Unix APIs

Download history 8/week @ 2025-08-14 20/week @ 2025-08-21 24/week @ 2025-08-28 53/week @ 2025-09-04 72/week @ 2025-09-11 57/week @ 2025-09-18 31/week @ 2025-09-25 9/week @ 2025-10-02 6/week @ 2025-10-09 28/week @ 2025-10-16 22/week @ 2025-10-23 11/week @ 2025-10-30 7/week @ 2025-11-06 75/week @ 2025-11-13 8/week @ 2025-11-20 11/week @ 2025-11-27

103 downloads per month
Used in 2 crates

MIT license

41KB
859 lines

debcontrol — parse Debian control files

pipeline status crates.io version docs.rs version

A Rust crate for parsing Debian control files.

Usage

Parse a complete control file:

use debcontrol::{Paragraph, parse_str};

let paragraphs: Vec<Paragraph> = parse_str("
a-field: with a value
another-field: with a...
 ...continuation

# a comment
this-is: another paragraph
")?;

See the documentation for more examples and reference documentation.

Developing

Releases

  • bump the version in Cargo.toml
  • tag the commit as v<VERSION>, e.g. v0.1.0

Dependencies

~1MB
~18K SLoC