Expand description

AMQP code generation utilities

amq-protocol-codegen is a library aiming at providing tools to generate code from official AMQP specs definition.

Structs

A class as defined in the AMQP specification

A constant as defined in the AMQP specification

An argument holding a flag as defined in the AMQP specification

An argument holding a flags as defined in the AMQP specification

A method as defined in the AMQP specification

A property as defined in the AMQP specification

An argument holding a value as defined in the AMQP specification

Helper for “unwrapping” an amqp_value

Structure holding the definition of the protocol

Helper for converting text to camel case

Helper to walk through a Vec of AMQPArgument.

Helper to include additional code such as rustdoc

Helper to check whether a param is passed by ref or not

Helper to sanitize name so the it becomes a valid identifier

Helper for converting text to snake case

Helper for getting the type name converted to snake case

Helper to check whether a param is passed using an &u8 or its real type

Helper to check whether a param is passed using an &str or its real type

Enums

An argument as defined in the AMQP specification

Traits

Our extension for better integration with Handlebars

Functions

Convert input to camel case

Convert input to snake case For the purpose of the AMQP codegen usage, we also handle a few special cases: “type” and “return” become “kind” and “r#return” if raw is true A word needs to be composed of at least two letters, this makes UInt become uint and not u_int

Type Definitions

Type alias to avoid making our users explicitly depend on an extra dependency