Crates.io | ot-tools-io-derive |
lib.rs | ot-tools-io-derive |
version | 0.4.3 |
created_at | 2025-04-28 02:14:12.926725+00 |
updated_at | 2025-08-29 16:45:17.223719+00 |
description | Derive proc macros used in the `ot-tools-io` library crate. |
homepage | https://gitlab.com/ot-tools/ot-tools-io/ |
repository | https://gitlab.com/ot-tools/ot-tools-io/ |
max_upload_size | |
id | 1651689 |
size | 12,494 |
This repository, the source code and the libraries generated by the source code are GNU GPL v3.0 licensed.
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
traitSee the trait descriptions in ot-tools-io
for more information.
Follows ot-tools-io
crate versioning, regardless of whether this has any changes or not.