source: general/prog/cbindgen.xml@ 27534cc7

11.0 ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 27534cc7 was 27534cc7, checked in by Douglas R. Reno <renodr@…>, 8 months ago

Update to cmake-3.19.6
Update to mariadb-10.5.9
Update to cbindgen-0.18.0
Update to vala-0.50.4

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24327 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 4.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY cbindgen-download-http "https://github.com/eqrion/cbindgen/archive/v&cbindgen-version;/cbindgen-&cbindgen-version;.tar.gz">
8 <!ENTITY cbindgen-download-ftp " ">
9 <!ENTITY cbindgen-md5sum "9eb3e5c1c3adda2a8f1e3eee8d9700e3">
10 <!ENTITY cbindgen-size "188 KB">
11 <!ENTITY cbindgen-buildsize "123 MB (add 533 MB for tests)">
12 <!ENTITY cbindgen-time "0.6 SBU (add 0.4 SBU for tests), both on a 4-core machine">
13]>
14
15<sect1 id="cbindgen" xreflabel="Cbindgen-&cbindgen-version;">
16 <?dbhtml filename="cbindgen.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Cbindgen-&cbindgen-version;</title>
24
25 <indexterm zone="cbindgen">
26 <primary sortas="a-cbindgen">cbindgen</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Cbindgen</title>
31
32 <para>
33 <application>Cbindgen</application> can be used to generate C bindings for
34 <application>Rust</application> code.
35 </para>
36
37 &lfs101_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&cbindgen-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&cbindgen-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &cbindgen-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &cbindgen-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &cbindgen-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &cbindgen-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">cbindgen Dependencies</bridgehead>
74
75 <bridgehead renderas="sect4">Required</bridgehead>
76 <para role="required">
77 <xref linkend="rust"/>
78 </para>
79
80 <para condition="html" role="usernotes">
81 User Notes: <ulink url="&blfs-wiki;/cbindgen"/>
82 </para>
83 </sect2>
84
85 <sect2 role="installation">
86 <title>Installation of cbindgen</title>
87
88 <note>
89 <para>
90 As with most <application>Rust</application> packages, this needs a
91 network connection to check the current versions of the required cargo
92 crates, and to download them if they are not already present.
93 </para>
94 </note>
95
96 <para>
97 Install <application>cbindgen</application> by running the following
98 commands:
99 </para>
100
101<screen><userinput>cargo build --release</userinput></screen>
102
103 <para>
104 <!-- 0.16.0 log shows 2 suites where both tests pass, in the third
105 3 of 6 fail. The suite names are impenetrable. -->
106 To test the results, issue: <command>cargo test</command>.
107 Three tests in the final suite are known to fail.
108 </para>
109
110 <para>
111 Now, as the <systemitem class="username">root</systemitem> user:
112 </para>
113
114<screen role="root"><userinput>install -Dm755 target/release/cbindgen /usr/bin/</userinput></screen>
115
116 </sect2>
117
118 <sect2 role="content">
119 <title>Contents</title>
120
121 <segmentedlist>
122 <segtitle>Installed Program</segtitle>
123 <segtitle>Installed Library</segtitle>
124 <segtitle>Installed Directory</segtitle>
125
126 <seglistitem>
127 <seg>
128 cbindgen
129 </seg>
130 <seg>
131 none
132 </seg>
133 <seg>
134 none
135 </seg>
136 </seglistitem>
137 </segmentedlist>
138
139 <variablelist>
140 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
141 <?dbfo list-presentation="list"?>
142 <?dbhtml list-presentation="table"?>
143
144 <varlistentry id="cbindgen-prog">
145 <term><command>cbindgen</command></term>
146 <listitem>
147 <para>
148 generates C bindings for <application>Rust</application> code
149 </para>
150 <indexterm zone="cbindgen cbindgen-prog">
151 <primary sortas="b-cbindgen">cbindgen</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155
156 </variablelist>
157
158 </sect2>
159
160</sect1>
Note: See TracBrowser for help on using the repository browser.