ot-tools-io-derive 0.4.2

Derive proc macros used in the `ot-tools-io` library crate.
Documentation

ot-tools-io-derive

License

This repository, the source code and the libraries generated by the source code are GNU GPL v3.0 licensed.

About

Procedural macro definitions for deriving traits from the ot-tools-io library crate. Mostly for avoiding annoying boilerplate 'empty' traits.

  • #[derive(WithStdError)] to add std::error::Error to an error type
  • #[derive(IsDefaultCheck)] for the standard implementation the ot_tools_io::IsDefault trait
  • #[derive(ArrayDefaults)] for an implementation of ot_tools_io::DefaultsArray trait for the [Self; N] return type
  • #[derive(BoxedBigArrayDefaults)] for the ot_tools_io::DefaultsArrayBoxed trait for the Box<serde_big_array::Array<Self, N>> return type
  • #[derive(IntegrityChecks)] for the ot_tools_io::CheckFileIntegrity trait

See the trait descriptions in ot-tools-io for more information.

Versioning

Follows ot-tools-io crate versioning, regardless of whether this has any changes or not.