libbpf / libbpf-sys

Rust bindings to libbpf from the Linux kernel
https://crates.io/crates/libbpf-sys/
BSD 2-Clause "Simplified" License
200 stars 48 forks source link

Update bindgen requirement from ^0.69.4 to ^0.70.1 #100

Closed dependabot[bot] closed 3 months ago

dependabot[bot] commented 3 months ago

Updates the requirements on bindgen to permit the latest version.

Release notes

Sourced from bindgen's releases.

v0.70.1

Install bindgen-cli 0.70.1

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/download/v0.70.1/bindgen-cli-installer.sh | sh

Download bindgen-cli 0.70.1

File Platform Checksum
bindgen-cli-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
bindgen-cli-x86_64-apple-darwin.tar.xz Intel macOS checksum
bindgen-cli-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum
Changelog

Sourced from bindgen's changelog.

0.70.1 (2024-08-20)

Added

Changed

Removed

Fixed

  • Fix regression where the const layout tests were triggering the unnecessary_operation and identity_op clippy warnings.

Security

0.70.0 (2024-08-16)

Added

  • Add target mappings for riscv64imac and riscv32imafc.
  • Add a complex macro fallback API (#2779).
  • Add option to use DST structs for flexible arrays (--flexarray-dst, #2772).
  • Add option to dynamically load variables (#2812).
  • Add option in CLI to use rustified non-exhaustive enums (--rustified-non-exhaustive-enum, #2847).

Changed

  • Remove which and lazy-static dependencies (#2809, #2817).
  • Generate compile-time layout tests (#2787).
  • Print bindgen-cli errors to stderr instead of stdout (#2840)

Removed

Fixed

  • Fix --formatter=prettyplease not working in bindgen-cli by adding prettyplease feature and enabling it by default for bindgen-cli (#2789) .
  • Fix --allowlist-item so anonymous enums are no longer ignored (#2827).
  • Use clang_getFileLocation instead of clang_getSpellingLocation to fix clang-trunk (#2824).
  • Fix generated constants: f64::INFINITY, f64::NEG_ INFINITY, f64::NAN (#2854).

Security

0.69.4 (2024-02-04)

Added

Changed

  • Allow older itertools. (#2745)

Removed

Fixed

Security

0.69.3 (2024-02-04)

Added

  • Added blocklist_var (#2731)
  • Stabilized thiscall_abi (#2661)

Changed

  • Use CR consistently on windows (#2698)
  • Replaced peeking_take_while by itertools (#2724)

Removed

Fixed

... (truncated)

Commits
  • 21c60f4 Bump crates version to 0.70.1
  • 1f3fafe Revert "Only trigger the publish workflow manually"
  • 93648e4 Fix collapsible_match clippy warning
  • 9bd603e Add #[clippy::allow] attribute to const layout tests
  • 8c71848 Fix creduce example
  • 7a4f04a Fix creduce install link
  • d71972a Fix create-tag.yml
  • 190ff2a Bump crates version to 0.70.0
  • 7efb924 fix error
  • e4fcb54 Add github action workflow that creates tags
  • Additional commits viewable in compare view


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
danielocfb commented 3 months ago

I re-generated bindings.h with the new version of bindgen, verified everything works and that the diff is minimal:

--- src/bindings.rs
+++ src/bindings.rs
@@ -1,4 +1,4 @@
-/* automatically generated by rust-bindgen 0.69.4 */
+/* automatically generated by rust-bindgen 0.70.1 */

 #[repr(C)]
 #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
@@ -5486,8 +5486,8 @@ extern "C" {
         opts: *mut bpf_token_create_opts,
     ) -> ::std::os::raw::c_int;
 }
-pub type va_list = __builtin_va_list;
 pub type __gnuc_va_list = __builtin_va_list;
+pub type va_list = __builtin_va_list;
 #[repr(C)]
 #[derive(Debug, Default, Copy, Clone)]
 pub struct btf_header {
danielocfb commented 3 months ago

@dependabot merge