vpp-api-transport 0.1.0

fd.io VPP API transport over shared memory and sockets
docs.rs failed to build vpp-api-transport-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

vpp-api-transport

This is a Rust library for interfacing with the VPP API.

WARNING: quite likely the interfaces may change. This version is to test things out and encourage the feedback.

The idea is to have entity that implements Read and Write traits, as well as eventually AsRawFd. This should allow to use this in place where you would use a regular socket in your code.

Prerequisites

Option 1 - your local development VPP tree at arbitrary location

Define the environment variable VPP_LIB_DIR to point to the folder where the file libvppapiclient.so is located.

Option 2 - VPP client from packagecloud.io:

Setup the repository from https://packagecloud.io/fdio/master or the branch-specific repositories as per instructions, then install the package python3-vpp-api, cargo build will find the library there.

Usage

See the src/vpp-api-transport-test.rs, more and better docs will come as we go :-)