Crate risingwave_common_proc_macro

Source

Modulesยง

config ๐Ÿ”’
config_doc ๐Ÿ”’
estimate_size ๐Ÿ”’
session_config ๐Ÿ”’

Derive Macrosยง

ConfigDoc
This proc macro recursively extracts rustdoc comments from the fields in a struct and generates a method that produces docs for each field.
EstimateSize
EstimateSize can be derived if when all the fields in a struct or enum can implemented EstimateSize.
OverrideConfig
Sections in the configuration file can use #[derive(OverrideConfig)] to generate the implementation of overwriting configs from the file.
SessionConfig
To add a new parameter, you can add a field with #[parameter] in the struct A default value is required by setting the default option. The field name will be the parameter name. You can overwrite the parameter name by setting the rename option. To check the input parameter, you can use check_hook option.