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 122/week @ 2024-08-26 2/week @ 2024-09-02 1265/week @ 2024-09-09 946/week @ 2024-09-16 1768/week @ 2024-09-23 1320/week @ 2024-09-30 884/week @ 2024-10-07 942/week @ 2024-10-14 587/week @ 2024-10-21 709/week @ 2024-10-28 516/week @ 2024-11-04 2150/week @ 2024-11-11

4,002 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

~205–630KB
~15K SLoC