tree: fabf567a59e359a45f6f5684dd2c60c954a1d9ff [path history] [tgz]
  1. src/
  2. bindings.h
  3. BUILD.gn
  4. cbindgen.toml
  5. README.md
lib/rust/wlan-mlme-c/README.md

Generate C bindings

Install cbindgen

We are using cbindgen to auto generate our C bindings. Install the tool via:

cargo install cbindgen

Command line

cbindgen $FUCHSIA_DIR/garnet/lib/rust/wlan-mlme-c/ -o $FUCHSIA_DIR/garnet/lib/rust/wlan-mlme-c/bindings.h

After re-generating the bindings also run fx format-code to format the generated bindings.