glfs/general/prog/cbindgen.xml
Bruce Dubbs 1b6c879efc Add a sed to fix postfix with linux5.
Update node.js-10.15.3. 
Update cbindgen-0.8.2. 
Update to totem-pl-parser-3.26.3. 



git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21290 af4574ff-66df-0310-9fd7-8a98e5e911e0
2019-03-06 21:51:16 +00:00

172 lines
4.8 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY cbindgen-download-http "https://github.com/eqrion/cbindgen/archive/v&cbindgen-version;/cbindgen-&cbindgen-version;.tar.gz">
<!ENTITY cbindgen-download-ftp " ">
<!ENTITY cbindgen-md5sum "36470763bcb11c16a255eea6ab07ad54">
<!ENTITY cbindgen-size "104 KB">
<!ENTITY cbindgen-buildsize "86 MB (add 3042 MB for tests) ">
<!ENTITY cbindgen-time "1.1 SBU (Using paralleism=4; add 0.3 SBU tests)">
]>
<sect1 id="cbindgen" xreflabel="Cbindgen-&cbindgen-version;">
<?dbhtml filename="cbindgen.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>Cbindgen-&cbindgen-version;</title>
<indexterm zone="cbindgen">
<primary sortas="a-cbindgen">cbindgen</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to Cbindgen</title>
<para>
<application>Cbindgen</application> can be used to generate C bindings for
<application>Rust</application> code.
</para>
&lfs84_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&cbindgen-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&cbindgen-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &cbindgen-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &cbindgen-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &cbindgen-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &cbindgen-time;
</para>
</listitem>
</itemizedlist>
<!--
<note>
<para>
The <application>cbindgen</application> source tarball shown above
downloads with the correct name, cbindgen-&cbindgen-version;.tar.gz,
if using a browser such as Firefox. If you prefer to use a command line
program such as wget, you normally would obtain
&cbindgen-version;.tar.gz. To obtain this package with the proper
filename, run:
<screen><userinput>wget -c https://github.com/eqrion/cbindgen/archive/v&cbindgen-version;.tar.gz \
-O cbindgen-&cbindgen-version;.tar.gz</userinput></screen>.
</para>
</note>
-->
<bridgehead renderas="sect3">cbindgen Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="rust"/>
</para>
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/cbindgen"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of cbindgen</title>
<note>
<para>
As with most <application>Rust</application> packages, this needs a
network connection to check the current versions of the required cargo
crates, and to download them if they are not already present.
</para>
</note>
<para>
Install <application>cbindgen</application> by running the following
commands:
</para>
<screen><userinput>cargo build --release</userinput></screen>
<para>
To test the results, issue: <command>cargo test</command>.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>install -Dm755 target/release/cbindgen /usr/bin/</userinput></screen>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Program</segtitle>
<segtitle>Installed Library</segtitle>
<segtitle>Installed Directory</segtitle>
<seglistitem>
<seg>
cbindgen
</seg>
<seg>
none
</seg>
<seg>
none
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="cbindgen-prog">
<term><command>cbindgen</command></term>
<listitem>
<para>
generates C bindings for <application>Rust</application> code.
</para>
<indexterm zone="cbindgen cbindgen-prog">
<primary sortas="b-cbindgen">cbindgen</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>