#header #traits #macro-derive #cef #structured #struct #logging

macro rust-cef-derive

Macros to derive the ToCef trait implementation for any struct as well as macros to annotate members to map to various CEF headers or key-value pairs. This enables having a structured representation inside Rust to be serialized as CEF log entries that can be written to log files or syslog

19 releases

0.2.6 Dec 23, 2021
0.2.5 Dec 22, 2021
0.2.1 Jul 14, 2021
0.2.0 Dec 23, 2020
0.0.5 Jul 24, 2020

#11 in #cef

Apache-2.0

74KB
1K SLoC

rust-cef-derive

This crate provides #[derive()] macros to derive the Common Event Format generating traits in Rust items like Structs and Enums.

The test file demonstrates some sample usage. Documentation is severely lacking for the moment.

Dependencies

~2.5MB
~50K SLoC