1
2
3
4
5
6
7
8
9
10
11
12
13
14
use debian_control::{Control, Priority};

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

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

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