Skip to content

Commit

Permalink
generic enum tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mxyns committed Feb 27, 2024
1 parent dc0352c commit 77dd01e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This is still very experimental. The fork of pmacct with the pmacct-gauze integr
### Prerequisites
- working Rust and C environments
- [cargo-c](https://crates.io/crates/cargo-c)
- install my fork `cargo install --git https://github.com/mxyns/cargo-c cargo-c` until this [PR](https://github.com/mozilla/cbindgen/pull/785) has been merged
- pmacct headers installed (see [install script](tools/install_pmacct_headers.sh))
- or use the `PMACCT_INCLUDE_DIR` env variable to set the location of the headers but be careful of cyclic dependencies.
- the following file tree structure
Expand Down
4 changes: 3 additions & 1 deletion crates/pmacct-gauze-lib/cbindgen.toml.template
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ expand = ["pmacct-gauze-lib"]
"bridge" = "pmacct-gauze-bindings"

[enum]
prefix_with_name = true
prefix_with_name = true
# This requires the fork cargo-c https://github.com/mxyns/cargo-c
merge_generic_tags = true

0 comments on commit 77dd01e

Please sign in to comment.