debian-control 0.3.7

A parser for Debian control files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use debian_control::fields::Priority;
use debian_control::lossless::Control;

pub fn main() {
    let mut control = Control::new();
    let mut source = control.add_source("hello");
    source.set_section(Some("rust"));

    let mut binary = control.add_binary("hello");
    binary.set_architecture(Some("amd64"));
    binary.set_priority(Some(Priority::Optional));
    binary.set_description(Some("Hello, world!"));

    println!("{}", control);
}