source: general/prog/cbindgen.xml@ 81e5e5a

10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 81e5e5a was 5c4a616, checked in by Douglas R. Reno <renodr@…>, 3 years ago

Update to JasPer-2.0.24 (Security Update - 25 vulnerabilities fixed)
Update to glib-2.66.6 (Critical security update)
Update to audacious (and audacious-plugins) 4.1
Update to libevdev-1.11.0
Update to cbindgen-0.17.0
Update to poppler-21.02.0
Update to krb5-1.19
Update to Jinja2-2.11.3 (Python Module)
Update to mousepad-0.5.2

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24174 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 "319023d51257da454f9a30aa3a358429">
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 &lfs10_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.