#control #debian #dpkg #deb

no-std debcontrol

Parse Debian control files

2 releases

0.1.1 Mar 24, 2020
0.1.0 Feb 16, 2020

#930 in Unix APIs

Download history 23/week @ 2024-04-15 23/week @ 2024-04-22 9/week @ 2024-04-29 23/week @ 2024-05-06 13/week @ 2024-05-13 35/week @ 2024-05-20 9/week @ 2024-05-27 21/week @ 2024-06-03 32/week @ 2024-06-10 32/week @ 2024-06-17 42/week @ 2024-06-24 56/week @ 2024-07-01 26/week @ 2024-07-08 21/week @ 2024-07-15 12/week @ 2024-07-22 41/week @ 2024-07-29

100 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
~17K SLoC