From 2020a0a18049976a5c36de3c367b89372de5671c Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 10 Oct 2022 18:53:47 +0800 Subject: [PATCH] chapter08: add rust-bindgen --- chapter08/chapter08.xml | 1 + chapter08/rust-bindgen.xml | 101 +++++++++++++++++++++++++++++++++++++ packages.ent | 8 +++ 3 files changed, 110 insertions(+) create mode 100644 chapter08/rust-bindgen.xml diff --git a/chapter08/chapter08.xml b/chapter08/chapter08.xml index cae1102dd..5febe1cc0 100644 --- a/chapter08/chapter08.xml +++ b/chapter08/chapter08.xml @@ -64,6 +64,7 @@ + diff --git a/chapter08/rust-bindgen.xml b/chapter08/rust-bindgen.xml new file mode 100644 index 000000000..c437e3a4e --- /dev/null +++ b/chapter08/rust-bindgen.xml @@ -0,0 +1,101 @@ + + + %general-entities; +]> + + + + + + rust-bindgen + &rust-bindgen-version; +
&rust-bindgen-url;
+
+ + Rust-bindgen-&rust-bindgen-version; + + + rust-bindgen + + + + + + <para>Rust-bindgen automatically generates Rust FFI bindings to C and + C++ libraries.</para> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + + <seglistitem> + <seg>&rust-bindgen-fin-sbu;</seg> + <seg>&rust-bindgen-fin-du;</seg> + </seglistitem> + </segmentedlist> + + </sect2> + + <sect2 role="installation"> + <title>Installation of Rust-bindgen + + Build rust-bindgen with: + +cargo build --release + + + The meaning of the build option: + + + --release + + Build this package with optimization suitable for stable + release. The default () will produce + unoptimized binary. + + + + + + The testsuite needs rustup which is beyond the + scope of LFS. + + Install the package: + +install -vm755 target/release/bindgen /usr/bin + + + + + Contents of Rust-bindgen + + + Installed programs + + + bindgen + + + + Short Descriptions + + + + + bindgen + + generates Rust bindings from C/C++ headers + + bindgen + + + + + + + + +
+ diff --git a/packages.ent b/packages.ent index 9310d7dfd..a4ddd10ca 100644 --- a/packages.ent +++ b/packages.ent @@ -646,6 +646,14 @@ + + + + + + + +