mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-26 08:42:12 +08:00
3c545251a9
Update to cbindgen-0.14.4. Update to pango-1.46.1. Update to mesa-20.1.7. Update to p11-kit-0.23.21. git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23674 af4574ff-66df-0310-9fd7-8a98e5e911e0
159 lines
4.2 KiB
XML
159 lines
4.2 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 "362deab105d5f248c9bd36d810fc0cf0">
|
|
<!ENTITY cbindgen-size "180 KB">
|
|
<!ENTITY cbindgen-buildsize "97 MB (add 540 MB for tests)">
|
|
<!ENTITY cbindgen-time "0.7 SBU (Using parallelism=4; add 0.4 SBU for 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>
|
|
|
|
&lfs10_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>
|
|
|
|
<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>.
|
|
Six tests, test_expand*, are known to fail.
|
|
</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>
|