APACHE-2.0 License
This repo contains the generated Rust code for the P4Runtime protobuf definitions.
p4runtime
's version is composed of two parts:
1.4.0-rc.5
becomes +1.4.0.rc.5
.googleapis
does not provide a version for me to use, and it seems rpc/status.proto
has not been updated for a long time. So this may not be a problem.
src/
: The generated Rust code.src/utils/
: Hand-written utility functions and traits.xtask/
: Rust code for generating this crate.To generate the Rust code, run the following command:
# Get git submodule
git submodule update --init
# Generate Rust code
cargo xtask