How to Install and Uninstall cbindgen Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: May 07,2024

1. Install "cbindgen" package

In this section, we are going to explain the necessary steps to install cbindgen on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install cbindgen

2. Uninstall "cbindgen" package

This guide let you learn how to uninstall cbindgen on Ubuntu 20.10 (Groovy Gorilla):

$ sudo apt remove cbindgen $ sudo apt autoclean && sudo apt autoremove

3. Information about the cbindgen package on Ubuntu 20.10 (Groovy Gorilla)

Package: cbindgen
Architecture: amd64
Version: 0.14.3-1
Built-Using: rustc (= 1.43.0+dfsg1+llvm-1~exp1ubuntu2)
Multi-Arch: allowed
Priority: optional
Section: universe/utils
Source: rust-cbindgen
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Rust Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 4773
Depends: libc6 (>= 2.18), libgcc-s1 (>= 4.2)
Filename: pool/universe/r/rust-cbindgen/cbindgen_0.14.3-1_amd64.deb
Size: 1253588
MD5sum: 981be1ce34f75441a326a0f190a1cb41
SHA1: 2ec9546abc58262581166f766347599b0daed498
SHA256: f2433bb4502ede3e2aa9f9f9e5e36f6a37167d9b7a2ae5c53661bbec37b8bb8c
SHA512: ab146fb41be1806d34a3b82425f06ca15a2bbd4ecd36184a90cd138678f6e4434c025014dbc182e3ae34c0ce8833c84cb962124f470e64341a61b78f7b4f3c16
Description-en: Generates C bindings from Rust code
cbindgen can be used to generate C bindings for Rust code.
It is currently being developed to support creating bindings for
WebRender (by Mozilla for Firefox), but has been designed to support
any project.
.
Features:
.
* Builds bindings for a crate, its mods, its dependent crates, and their mods
* Only the necessary types for exposed functions are given bindings
* Can specify annotations for controlling some aspects of binding
* Support for generic structs and unions
* Support for exporting constants and statics
* Customizable formatting, can be used in C or C++ projects
* Support for generating #ifdef's for #[cfg] attributes
* Support for #[repr(sized)] tagged enum's
.
This package contains the following binaries built from the Rust crate
"cbindgen":
- cbindgen
Description-md5: 552d00bcc148a4159906dddb7b91c35d
X-Cargo-Built-Using: rust-ansi-term (= 0.12.1-1), rust-atty (= 0.2.14-2), rust-bitflags (= 1.2.1-1), rust-cfg-if (= 0.1.10-4.1), rust-clap (= 2.33.0-5), rust-getrandom (= 0.1.13-4), rust-heck (= 0.3.1-1), rust-itoa (= 0.4.3-1), rust-libc (= 0.2.68-2), rust-log (= 0.4.8-4), rust-ppv-lite86 (= 0.2.6-1), rust-proc-macro2 (= 1.0.18-1), rust-quote (= 1.0.7-1), rust-rand-chacha (= 0.2.2-1), rust-rand-core (= 0.5.1-1), rust-rand (= 0.7.2-1), rust-remove-dir-all (= 0.5.2-1), rust-ryu (= 1.0.2-1), rust-serde (= 1.0.106-1), rust-serde-json (= 1.0.41-1), rust-strsim (= 0.9.3-1), rust-syn (= 1.0.12-1), rust-tempfile (= 3.1.0-1build2), rust-textwrap (= 0.11.0-1build1), rust-toml (= 0.5.5-1), rust-unicode-segmentation (= 1.6.0-1), rust-unicode-width (= 0.1.7-2.1), rust-unicode-xid (= 0.2.0-1), rust-vec-map (= 0.8.1-2), rustc (= 1.43.0+dfsg1+llvm-1~exp1ubuntu2)