#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

#657 in Unix APIs

Download history 353/week @ 2024-07-21 238/week @ 2024-07-28 290/week @ 2024-08-04 439/week @ 2024-08-11 471/week @ 2024-08-18 668/week @ 2024-08-25 813/week @ 2024-09-01 622/week @ 2024-09-08 149/week @ 2024-09-15 349/week @ 2024-09-22 429/week @ 2024-09-29 207/week @ 2024-10-06 283/week @ 2024-10-13 210/week @ 2024-10-20 734/week @ 2024-10-27 480/week @ 2024-11-03

1,732 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
~19K SLoC