Skip to content

Commit

Permalink
upgrade bindgen for rust 1.62
Browse files Browse the repository at this point in the history
  • Loading branch information
drunkirishcoder committed Jul 14, 2022
1 parent 8642d2b commit 7576270
Show file tree
Hide file tree
Showing 3 changed files with 20,465 additions and 12,369 deletions.
2 changes: 1 addition & 1 deletion ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ name = "capsule_ffi"
doctest = false

[build-dependencies]
bindgen = "0.57"
bindgen = "0.60"
cc = "1.0"
libc = "0.2"

Expand Down
6 changes: 3 additions & 3 deletions ffi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ fn bind(path: &Path) {
// treat as opaque as per issue w/ combining align/packed:
// https://github.com/rust-lang/rust-bindgen/issues/1538
.opaque_type(r"rte_arp_ipv4|rte_arp_hdr")
.whitelist_type(r"(rte|eth|pcap)_.*")
.whitelist_function(r"(_rte|rte|eth|numa|pcap)_.*")
.whitelist_var(r"(RTE|DEV|ETH|MEMPOOL|PKT|rte)_.*")
.allowlist_type(r"(rte|eth|pcap)_.*")
.allowlist_function(r"(_rte|rte|eth|numa|pcap)_.*")
.allowlist_var(r"(RTE|DEV|ETH|MEMPOOL|PKT|rte)_.*")
.derive_copy(true)
.derive_debug(true)
.derive_default(true)
Expand Down
Loading

0 comments on commit 7576270

Please sign in to comment.