Crate maelstrom_macro

Source

Macros§

into_proto_buf_remote_derive
See IntoProtoBuf. Import this to use remote_derive with the IntoProtoBuf macro.
remote_derive
Derive a trait for some type in a different module (or crate) than the one where the definition is. The orphan rule still applies.
try_from_proto_buf_remote_derive
See TryFromProtoBuf. Import this to use remote_derive with the TryFromProtoBuf macro.

Attribute Macros§

pocket_definition
This macro can be applied to a struct or an enum and it will save the tokens of the definition inside a macro_rules macro named <name>_pocket_definition. This can then be used to derive stuff for it using the remote_derive! macro.

Derive Macros§

Config
Derives an implementation for the maelstrom_util::config::Config trait.
IntoProtoBuf
Derives an implementation of maelstrom_client_base::proto_buf_conv::IntoProtoBuf
ProtoBufExt
Derives useful things on the generated protobuf types. This macro is applied to all the generated protobuf types in the build.rs file.
TryFromProtoBuf
Derives an implementation of maelstrom_client_base::proto_buf_conv::TryFromProtoBuf