Jan Alexander Steffens (heftig) pushed to branch main at Arch Linux / Packaging
/ Packages / rust-bindgen
Commits:
853e7f8e by Jan Alexander Steffens (heftig) at 2026-06-30T10:33:00+02:00
0.72.1-3: rebuild with LTO and debug symbols
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = rust-bindgen
pkgdesc = Automatically generates Rust FFI bindings to C (and some C++)
libraries
pkgver = 0.72.1
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/rust-lang/rust-bindgen
arch = x86_64
license = BSD-3-Clause
=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
pkgname=rust-bindgen
_pkgname=bindgen
pkgver=0.72.1
-pkgrel=2
+pkgrel=3
pkgdesc='Automatically generates Rust FFI bindings to C (and some C++)
libraries'
url='https://github.com/rust-lang/rust-bindgen'
depends=('libgcc' 'glibc' 'clang')
@@ -14,9 +14,15 @@ license=('BSD-3-Clause')
source=("$pkgname-$pkgver.tar.gz::https://github.com/rust-lang/rust-bindgen/archive/refs/tags/v$pkgver.tar.gz")
sha512sums=('b280e9386d2f1baae9c78ae0572bc7f807d59752812abb55742d1232cbb647c5c1dbc00847679eb3e597e600870cfe99b5d82199bd801d8e8f27b83320cd1149')
+# Use debug
+export CARGO_PROFILE_RELEASE_DEBUG=2 CARGO_PROFILE_RELEASE_STRIP=false
+
+# Use LTO
+export CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
+
prepare() {
cd $pkgname-$pkgver
- cargo fetch --locked --target "$(rustc --print host-tuple)"
+ cargo fetch --locked --target host-tuple
mkdir -p completions
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/rust-bindgen/-/commit/853e7f8e36cce13d27be2a72c95a006fc408d4b5
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/rust-bindgen/-/commit/853e7f8e36cce13d27be2a72c95a006fc408d4b5
You're receiving this email because of your account on gitlab.archlinux.org.
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications
| Help: https://gitlab.archlinux.org/help