fastpasta_toml_macro 0.1.1

DEPRECATED. Development continues at: https://crates.io/crates/descriptive_toml_derive. Convenience crate with a trait definition for use with the procedural derive macro fastpasta_toml_macro_derive.
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 3 items with examples
  • Size
  • Source code size: 6.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.05 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CramBL

DEPRECATED - MOVED TO https://crates.io/crates/descriptive_toml_derive

Description

Convenience crate with a trait definition for use with the procedural derive macro fastpasta_toml_macro_derive.

Example

use fastpasta_toml_macro::TomlConfig;

#[derive(TomlConfig, Default)]
pub struct CustomChecks {
    #[description = "Number of CRU Data Packets expected in the data"]
    #[example = "20, 500532"]
    cdps: Option<u32>,
}
let toml_string = CustomChecks::default().to_string_pretty_toml();
        assert_eq!(
            toml_string,
            "\
# Number of CRU Data Packets expected in the data
# Example: 20, 500532
#cdps = None [ u32 ] # (Uncomment and set to enable this check)

"