Crate versatiles_derive

Crate versatiles_derive 

Source
Expand description

Proc-macro crate for VersaTiles.

This crate provides derive macros and attribute macros to assist with decoding VPL data, generating configuration documentation, and adding error context to functions.

§Provided macros

  • #[derive(VPLDecode)]: Derive macro to decode VPL data into Rust structs.
  • #[derive(ConfigDoc)]: Derive macro to generate YAML documentation for configuration structs.
  • #[context("...")]: Attribute macro to add error context to functions returning Result.

Attribute Macros§

context
Attribute macro to add error context to functions returning Result.

Derive Macros§

ConfigDoc
Derive macro to generate YAML configuration documentation.
VPLDecode
Derive macro to decode VPL data into Rust structs.