#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

#405 in Unix APIs

Download history 175/week @ 2024-03-14 114/week @ 2024-03-21 156/week @ 2024-03-28 49/week @ 2024-04-04 6/week @ 2024-04-11 44/week @ 2024-04-18 66/week @ 2024-04-25 244/week @ 2024-05-02 169/week @ 2024-05-09 129/week @ 2024-05-16 179/week @ 2024-05-23 92/week @ 2024-05-30 81/week @ 2024-06-06 174/week @ 2024-06-13 114/week @ 2024-06-20 83/week @ 2024-06-27

461 downloads per month
Used in 5 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
~20K SLoC