#debian #control #deb #dpkg

no-std oma-debcontrol

Parse Debian control files

2 releases

0.3.1 Dec 3, 2023
0.3.0 Aug 18, 2023

#785 in Unix APIs

Download history 515/week @ 2024-11-13 592/week @ 2024-11-20 425/week @ 2024-11-27 183/week @ 2024-12-04 88/week @ 2024-12-11 27/week @ 2024-12-18 1/week @ 2024-12-25 5/week @ 2025-01-01 10/week @ 2025-01-08 23/week @ 2025-01-15 10/week @ 2025-01-22 7/week @ 2025-01-29 13/week @ 2025-02-05 24/week @ 2025-02-12 22/week @ 2025-02-19 13/week @ 2025-02-26

73 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