#derive #toml #yaml #json #macro-derive #config

macro konfig-rust-derive

A derive macro for the konfig-rust library, allowing shorthand implementation of the KonfigSection trait

2 releases

Uses new Rust 2024

0.1.1 Feb 28, 2025
0.1.0 Feb 27, 2025

#1823 in Procedural macros

Download history 293/week @ 2025-02-26 13/week @ 2025-03-05

306 downloads per month
Used in konfig-rust

MIT license

3KB

konfig-rust-derive is a derive macro helper for konfig-rust

It allows for quickly implementing the KonfigSection trait for structs with default behaviour.

Example:

#[derive(KonfigSection)]
struct Config {
    name: String,
    age: u32,
}

Dependencies

~195–630KB
~15K SLoC