3 unstable releases

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

#6 in #deb822

Download history 1580/week @ 2024-09-18 1587/week @ 2024-09-25 977/week @ 2024-10-02 622/week @ 2024-10-09 917/week @ 2024-10-16 649/week @ 2024-10-23 614/week @ 2024-10-30 848/week @ 2024-11-06 2264/week @ 2024-11-13 713/week @ 2024-11-20 585/week @ 2024-11-27 722/week @ 2024-12-04 900/week @ 2024-12-11 1345/week @ 2024-12-18 1005/week @ 2024-12-25 939/week @ 2025-01-01

4,379 downloads per month
Used in 19 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–670KB
~16K SLoC