rust-bindgen 0.70.0

boo#1229375
boo#1229376

OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust-bindgen?expand=0&rev=5
This commit is contained in:
William Brown 2024-08-20 00:29:52 +00:00 committed by Git OBS Bridge
commit 9d05b8ecd4
11 changed files with 165 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

23
_service Normal file
View File

@ -0,0 +1,23 @@
<services>
<service mode="disabled" name="obs_scm">
<param name="url">https://github.com/rust-lang/rust-bindgen.git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="scm">git</param>
<param name="revision">v0.70.0</param>
<param name="match-tag">*</param>
<param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param>
<param name="versionrewrite-replacement">\1</param>
<param name="changesgenerate">enable</param>
</service>
<service mode="disabled" name="tar" />
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">zst</param>
</service>
<service mode="disabled" name="set_version"/>
<service name="cargo_vendor" mode="disabled">
<param name="src">rust-bindgen</param>
<param name="compression">zst</param>
<param name="update">true</param>
</service>
</services>

6
_servicedata Normal file
View File

@ -0,0 +1,6 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/rust-lang/rust-bindgen.git</param>
<param name="changesrevision">190ff2a6a4739f3a703125d9ed290dcd2dc9c808</param>
</service>
</servicedata>

5
cargo_config Normal file
View File

@ -0,0 +1,5 @@
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c10e2806786fb75f05ef32f3f03f4cb7e37bb8e06be5a4a0e95f974fdc567d87
size 2317711

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c6cff2849850f7c5f8cd7e280bd041e12b4211d2ade37b82c47fa0c016f372a5
size 2121421

42
rust-bindgen.changes Normal file
View File

@ -0,0 +1,42 @@
-------------------------------------------------------------------
Mon Aug 19 19:03:36 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
- Update to version 0.70.0:
* Fix generation of extern "C" blocks with llvm 18
* Update shlex dependency (RUSTSEC-2024-0006, boo#1229375)
* Try to avoid repr(packed) for explicitly aligned types when not
needed
* Support Float16
* Fix alignment contribution from bitfields
* Replace peeking_take_while by itertools
* Add blocklist_var
* Stabilize thiscall_abi
* Allow older itertools
* Add target mappings for riscv64imac and riscv32imafc.
* Add a complex macro fallback API
* Add option to use DST structs for flexible arrays
* Add option to dynamically load variables
* Add option in CLI to use rustified non-exhaustive enums
* Remove which and lazy-static dependencies
* Generate compile-time layout tests
* Print bindgen-cli errors to stderr instead of stdout
* Fix --formatter=prettyplease not working in bindgen-cli by
adding prettyplease feature and enabling it by default for
bindgen-cli
* Fix --allowlist-item so anonymous enums are no longer ignored
* Use clang_getFileLocation instead of clang_getSpellingLocation
to fix clang-trun
* Fix generated constants: f64::INFINITY, f64::NEG_ INFINITY,
f64::NAN
* Update tempfile and rustix due to GHSA-c827-hfw6-qwvm (boo#1229376)
-------------------------------------------------------------------
Wed Nov 15 15:11:25 UTC 2023 - Paolo Perego <paolo.perego@suse.com>
- Updated to version 0.69.1
- Changed vendor directory archive format
-------------------------------------------------------------------
Sun Jan 15 14:20:26 UTC 2023 - Martin Hauke <mardnh@gmx.de>
- Initial package, version 0.63.0

4
rust-bindgen.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: rust-bindgen
version: 0.70.0
mtime: 1723848350
commit: 190ff2a6a4739f3a703125d9ed290dcd2dc9c808

52
rust-bindgen.spec Normal file
View File

@ -0,0 +1,52 @@
#
# spec file for package rust-bindgen
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2023, Martin Hauke <mardnh@gmx.de>
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: rust-bindgen
Version: 0.70.0
Release: 0
Summary: Automatically generates Rust FFI bindings to C and C++ libraries
License: BSD-3-Clause
Group: Development/Languages/Rust
#Git-Clone: https://github.com/rust-lang/rust-bindgen.git
URL: https://rust-lang.github.io/rust-bindgen/
Source: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
BuildRequires: cargo
BuildRequires: cargo-packaging
BuildRequires: rust
%description
Automatically generates Rust FFI bindings to C (and some C++) libraries.
%prep
%autosetup -p 1 -a 1
%build
%{cargo_build}
%install
install -D -m 0755 target/release/bindgen %{buildroot}%{_bindir}/bindgen
%files
%license LICENSE
%doc CHANGELOG.md README.md
%{_bindir}/bindgen
%changelog

3
vendor.tar.zst Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:908a139796890621365d91dc2b67eeb259899ef769d3398f441c01ede5409aea
size 15310106