Macro use_p4

Source
use_p4!() { /* proc-macro */ }
Expand description

The use_p4! macro uses the x4c compiler to generate Rust code from a P4 program. The macro itself expands into the generated code. The macro can be called with only the path to the P4 program as an argument or, it can be called with the path to the P4 program plus the name to use for the generated pipeline object.

For usage examples, see the p4-macro module documentation.