source: general/prog/cbindgen.xml@ afb71d0a

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since afb71d0a was afb71d0a, checked in by Xi Ruoyao <xry111@…>, 13 months ago

Add notes about Internet connection requirement for building or testing

  • Property mode set to 100644
File size: 4.0 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 "6aa2991ca8411f9ebf9961e8b873e884">
10 <!ENTITY cbindgen-size "204 KB">
11 <!ENTITY cbindgen-buildsize "121 MB (add 596 MB for tests)">
12 <!ENTITY cbindgen-time "0.5 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
19 <title>Cbindgen-&cbindgen-version;</title>
20
21 <indexterm zone="cbindgen">
22 <primary sortas="a-cbindgen">cbindgen</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Cbindgen</title>
27
28 <para>
29 <application>Cbindgen</application> can be used to generate C bindings for
30 <application>Rust</application> code.
31 </para>
32
33 &lfs113_checked;
34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&cbindgen-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&cbindgen-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &cbindgen-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &cbindgen-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &cbindgen-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &cbindgen-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">cbindgen Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Required</bridgehead>
72 <para role="required">
73 <xref linkend="rust"/>
74 </para>
75
76 &build-use-internet;
77
78 <para condition="html" role="usernotes">
79 User Notes: <ulink url="&blfs-wiki;/cbindgen"/>
80 </para>
81 </sect2>
82
83 <sect2 role="installation">
84 <title>Installation of cbindgen</title>
85 <para>
86 Install <application>cbindgen</application> by running the following
87 commands:
88 </para>
89
90<screen><userinput>cargo build --release</userinput></screen>
91
92 <para>
93 <!-- 0.16.0 log shows 2 suites where both tests pass, in the third
94 3 of 6 fail. The suite names are impenetrable. -->
95 To test the results, issue: <command>cargo test</command>.
96 Three tests in the final suite are known to fail.
97 </para>
98
99 <para>
100 Now, as the <systemitem class="username">root</systemitem> user:
101 </para>
102
103<screen role="root"><userinput>install -Dm755 target/release/cbindgen /usr/bin/</userinput></screen>
104
105 </sect2>
106
107 <sect2 role="content">
108 <title>Contents</title>
109
110 <segmentedlist>
111 <segtitle>Installed Program</segtitle>
112 <segtitle>Installed Library</segtitle>
113 <segtitle>Installed Directory</segtitle>
114
115 <seglistitem>
116 <seg>
117 cbindgen
118 </seg>
119 <seg>
120 none
121 </seg>
122 <seg>
123 none
124 </seg>
125 </seglistitem>
126 </segmentedlist>
127
128 <variablelist>
129 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
130 <?dbfo list-presentation="list"?>
131 <?dbhtml list-presentation="table"?>
132
133 <varlistentry id="cbindgen-prog">
134 <term><command>cbindgen</command></term>
135 <listitem>
136 <para>
137 generates C bindings for <application>Rust</application> code
138 </para>
139 <indexterm zone="cbindgen cbindgen-prog">
140 <primary sortas="b-cbindgen">cbindgen</primary>
141 </indexterm>
142 </listitem>
143 </varlistentry>
144
145 </variablelist>
146
147 </sect2>
148
149</sect1>
Note: See TracBrowser for help on using the repository browser.