ortho_config_macros 0.9.0

Procedural macros for ortho_config.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Code generation entry points for the derive system.
//!
//! Re-exports declarative merge emitters along with struct and trait
//! generators so the macro entrypoint can assemble complete outputs while
//! keeping the implementation cohesive.

pub(crate) mod declarative;
pub(crate) mod docs;
pub(crate) mod ortho_impl;
pub(crate) mod structs;

use syn::Ident;

/// Build a standard doc string for generated support structs.
pub(crate) fn generated_doc(config_ident: &Ident, role: &str) -> String {
    format!("{role} generated by `OrthoConfig` for `{config_ident}`.")
}