dev-util/bindgen - 0.73.2 (gentoo)

Search

Install

Install this version:

emerge -a =dev-util/bindgen-0.73.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/bindgen-0.73.2

Or alternatively:

emerge --autounmask-write -a =dev-util/bindgen-0.73.2

Package Information

Description:
Automatically generate Rust FFI bindings to C and C++ libraries
Homepage:
https://rust-lang.github.io/rust-bindgen/
License:
BSD Apache-2.0 BSD ISC MIT Unicode-3.0

Ebuild Details

Version EAPI Keywords Slot
0.73.2 8 ~amd64 ~arm64 ~loong ~ppc64 ~riscv 0
View Raw Ebuild
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

CRATES=" "
inherit rust-toolchain cargo

DESCRIPTION="Automatically generate Rust FFI bindings to C and C++ libraries"
HOMEPAGE="https://rust-lang.github.io/rust-bindgen/"
SRC_URI="https://github.com/rust-lang/rust-${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/gentoo-crate-dist/rust-${PN}/releases/download/v${PV}/rust-${P}-crates.tar.xz
"
S=${WORKDIR}/rust-${P}

LICENSE="BSD"
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD ISC MIT Unicode-3.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv"

DEPEND="${RUST_DEPEND}"
RDEPEND="${DEPEND}
	llvm-core/clang:*
"

QA_FLAGS_IGNORED="usr/bin/bindgen"

src_test () {
	# required by clang during tests
	local -x TARGET=$(rust_abi)

	cargo_src_test --bins --lib
}

src_install () {
	cargo_src_install --path "${S}/bindgen-cli"

	einstalldocs
}

Inherited Eclasses

Dependencies

RDEPEND

	llvm-core/clang:*

Manifest for 0.73.2

Type File Size Source URLs
DIST bindgen-0.73.2.tar.gz 2392711 bytes https://github.com/rust-lang/rust-bindgen/archive/refs/tags/v0.73.2.tar.gz
DIST rust-bindgen-0.73.2-crates.tar.xz 5139916 bytes https://github.com/gentoo-crate-dist/rust-bindgen/releases/download/v0.73.2/rust-bindgen-0.73.2-crates.tar.xz