3 unstable releases

0.2.0 Oct 6, 2024
0.1.1 Sep 9, 2024
0.1.0 Aug 29, 2024

#8 in #rfc822

Download history 123/week @ 2024-08-27 446/week @ 2024-09-03 1261/week @ 2024-09-10 1116/week @ 2024-09-17 2094/week @ 2024-09-24 966/week @ 2024-10-01 624/week @ 2024-10-08 923/week @ 2024-10-15 652/week @ 2024-10-22 568/week @ 2024-10-29

3,350 downloads per month
Used in 13 crates (via deb822-lossless)

Apache-2.0

12KB
179 lines

This crate provides a basic proc-macro for converting a Deb822Paragraph into a Rust struct and vice versa.

You probably want to use the deb822_lossless crate instead, with the derive feature enabled.

Example

use deb822_lossless::Deb822;

#[derive(Deb822)]
struct Foo {
    field1: String,
    field2: Option<String>,
}

let paragraph: deb822::Deb822Paragraph = "field1: value1\nfield2: value2".parse().unwrap();
let foo: Foo = paragraph.into();

Dependencies

~220–660KB
~16K SLoC