Subject: CVS commit: pkgsrc/devel/rust-bindgen
From: pin
Date: 2025-01-17 10:59:08
Message id: 20250117095908.5E3F1FC7D@cvs.NetBSD.org

Log Message:
devel/rust-bindgen: update to 0.71.1

v0.71.1 (2024-12-09)
Fixed

    Fix --version and --generate-shell-completions (#3040)

0.71.0 (2024-12-06)
Added

    Add the ParseCallbacks::new_item_found callback to expose the original and \ 
final name of structs, unions and enums (#2658).
    Add the field_type_name field to FieldInfo to expose the name of the type of \ 
a field (#2863)
    Add support for custom attributes with the --with-attribute-custom flag (#2866)
    Allow setting --rust-target to any Rust version supported by bindgen (#2993)
    Use c-string literals if the --generate-cstr flag is used for Rust targets \ 
after 1.77 under the 2021 edition (#2996)
    Add the --rust-edition flag which allows to select which Rust edition to \ 
target. (#3002, #3013)
    Use unsafe extern instead of extern in blocks for any Rust target after \ 
1.82. (#3015)

Changed

    The --wrap-static-fns related options no longer require the experimental \ 
feature or flag (#2928)
    Use the Display implementation instead of the Debug one for BindgenError in \ 
bindgen-cli (#3005)

Removed

    Dropped support for any Clang versions strictly lower than 9.0 (#2932)
    Dropped support for any Rust version strictly lower than 1.33 (#2993)

Fixed
Represent opaque types in a FFI-safe way (#2880)
Use the underlying type of any atomic type instead of panicking (#2920)
Use the right characters for newlines on windows (#2923)
Inlined namespaces are properly recognized now (#2950)
Unsafe calls to libloading are now wrapped in unsafe blocks when using dynamic lo

    ading (#2961)
    The ParseCallbacks::field_visibility callback is now called for newtypes as \ 
well (#2967)
    Gate the use of the addr_of and addr_of_mut macros under the 1.51 rust \ 
version (#2988)

0.70.1 (2024-08-20)
Fixed

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

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).
    Add field_type_name to FieldInfo.

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)

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

    Update tempfile and rustix due to GHSA-c827-hfw6-qwvm.

Files:
RevisionActionfile
1.4modifypkgsrc/devel/rust-bindgen/Makefile
1.4modifypkgsrc/devel/rust-bindgen/cargo-depends.mk
1.4modifypkgsrc/devel/rust-bindgen/distinfo