#toml #yaml #derive #yaml-config #traits

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

#40 in #yaml-config


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

~190–620KB
~15K SLoC