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-29 656/week @ 2024-09-05 1177/week @ 2024-09-12 1602/week @ 2024-09-19 1608/week @ 2024-09-26 999/week @ 2024-10-03 539/week @ 2024-10-10 922/week @ 2024-10-17 629/week @ 2024-10-24 686/week @ 2024-10-31 883/week @ 2024-11-07 2241/week @ 2024-11-14 647/week @ 2024-11-21 564/week @ 2024-11-28

4,426 downloads per month
Used in 14 crates (2 directly)

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

~225–660KB
~16K SLoC