<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>elebihan.com (Articles sur rust)</title><link>http://elebihan.com/</link><description></description><atom:link href="http://elebihan.com/fr/categories/rust.xml" rel="self" type="application/rss+xml"></atom:link><language>fr</language><copyright>Contents © 2023 &lt;a href="mailto:eric !at! elebihan !dot! com"&gt;Eric Le Bihan&lt;/a&gt; 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/"&gt;
&lt;img alt="Creative Commons License BY-NC-SA"
style="border-width:0; margin-bottom:12px;"
src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Mon, 27 Feb 2023 20:55:16 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Comment ajouter un paquet Buildroot pour un projet Cargo</title><link>http://elebihan.com/fr/posts/how-to-add-a-buildroot-package-for-a-cargo-crate.html</link><dc:creator>Eric Le Bihan</dc:creator><description>&lt;div&gt;&lt;p&gt;Le support de Rust et Cargo pour Buildroot est disponible dans la branche
"feature/rust" de &lt;a class="reference external" href="https://github.com/elebihan/buildroot/tree/feature/rust"&gt;ce dépôt Buildroot (personnel)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Dans cet article, nous expliquerons comment ajouter un paquet Buildroot pour un
projet Cargo, (nommé "hello-rust"). L'infrastructure pour des paquets Cargo sera
peut-être ajoutée dans le futur, afin de faciliter le développement de paquets.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://elebihan.com/fr/posts/how-to-add-a-buildroot-package-for-a-cargo-crate.html"&gt;Lire la suite…&lt;/a&gt; (Il reste encore 2 min. de lecture)&lt;/p&gt;&lt;/div&gt;</description><category>buildroot</category><category>embedded linux</category><category>rust</category><guid>http://elebihan.com/fr/posts/how-to-add-a-buildroot-package-for-a-cargo-crate.html</guid><pubDate>Sat, 23 Apr 2016 14:04:22 GMT</pubDate></item><item><title>Générer des Programmes Liés Dynamiquement avec Cargo</title><link>http://elebihan.com/fr/posts/generating-dynamically-linked-programs-with-cargo.html</link><dc:creator>Eric Le Bihan</dc:creator><description>&lt;section id="des-gros-programmes-lies-statiquement"&gt;
&lt;h2&gt;Des Gros Programmes, liés Statiquement&lt;/h2&gt;
&lt;p&gt;Dans un &lt;a class="reference external" href="http://elebihan.com/fr/posts/using-cargo-with-buildroot-full-build.html"&gt;article précédent&lt;/a&gt;, Cargo avait été utilisé pour générer un programme
Rust: &lt;cite&gt;hello-rust&lt;/cite&gt;.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_043cf347cd3d45639bc75397b259c166-1" name="rest_code_043cf347cd3d45639bc75397b259c166-1" href="http://elebihan.com/fr/posts/generating-dynamically-linked-programs-with-cargo.html#rest_code_043cf347cd3d45639bc75397b259c166-1"&gt;&lt;/a&gt;$ cd $HOME/src/hello-rust
&lt;a id="rest_code_043cf347cd3d45639bc75397b259c166-2" name="rest_code_043cf347cd3d45639bc75397b259c166-2" href="http://elebihan.com/fr/posts/generating-dynamically-linked-programs-with-cargo.html#rest_code_043cf347cd3d45639bc75397b259c166-2"&gt;&lt;/a&gt;$ stat -c "%s" target/arm-buildroot-linux-gnueabihf/release/hello-rust
&lt;a id="rest_code_043cf347cd3d45639bc75397b259c166-3" name="rest_code_043cf347cd3d45639bc75397b259c166-3" href="http://elebihan.com/fr/posts/generating-dynamically-linked-programs-with-cargo.html#rest_code_043cf347cd3d45639bc75397b259c166-3"&gt;&lt;/a&gt;218732
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;La taille du fichier binaire généré est de 213 Ko. Une fois les symboles
enlevés, elle descendra jusqu'à 115 Ko. C'est vraiment un "Hello World!"
imposant! Étant donné l'architecture du "runtime", tout le code de gestion des
entrées/sorties est inclus dans tout binaire lié statiquement, ce qui est le
comportement par défaut de &lt;cite&gt;rustc&lt;/cite&gt; (l'exécution de &lt;cite&gt;strings&lt;/cite&gt; sur le fichier
donne un résultat effrayant).&lt;/p&gt;
&lt;p&gt;&lt;a href="http://elebihan.com/fr/posts/generating-dynamically-linked-programs-with-cargo.html"&gt;Lire la suite…&lt;/a&gt; (Il reste encore 4 min. de lecture)&lt;/p&gt;&lt;/section&gt;</description><category>buildroot</category><category>embedded linux</category><category>rust</category><guid>http://elebihan.com/fr/posts/generating-dynamically-linked-programs-with-cargo.html</guid><pubDate>Sat, 02 Apr 2016 18:42:22 GMT</pubDate></item><item><title>Utiliser Cargo avec Buildroot (construction complète)</title><link>http://elebihan.com/fr/posts/using-cargo-with-buildroot-full-build.html</link><dc:creator>Eric Le Bihan</dc:creator><description>&lt;div&gt;&lt;p&gt;&lt;a class="reference external" href="https://github.com/rust-lang/cargo/"&gt;Cargo&lt;/a&gt; est le gestionnaire de paquets officiel pour Rust. Il téléchargera les
dépendances d'un projet Rust et compilera le tout. L'ajout du support de Cargo
dans Buildroot permettra à l'utilisateur final de compiler facilement des
programmes pour un système embarqué.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://elebihan.com/fr/posts/using-cargo-with-buildroot-full-build.html"&gt;Lire la suite…&lt;/a&gt; (Il reste encore 1 min. de lecture)&lt;/p&gt;&lt;/div&gt;</description><category>buildroot</category><category>embedded linux</category><category>rust</category><guid>http://elebihan.com/fr/posts/using-cargo-with-buildroot-full-build.html</guid><pubDate>Thu, 31 Mar 2016 18:50:01 GMT</pubDate></item><item><title>Utiliser Rust avec Buildroot (construction complète)</title><link>http://elebihan.com/fr/posts/using-rust-with-buildroot-full-build.html</link><dc:creator>Eric Le Bihan</dc:creator><description>&lt;div&gt;&lt;p&gt;Dans un &lt;a class="reference external" href="http://elebihan.com/fr/posts/using-rust-with-buildroot-pre-built-binaries.html"&gt;article précédent&lt;/a&gt;, nous avons vu comment ajouter le support du
langage de programmation Rust dans Buildroot, en utiisant des binaires
pré-compilés.&lt;/p&gt;
&lt;p&gt;Cette fois-ci, nous ajouterons le support pour Rust en construisant un
compilateur croisé dans l'environement Buildroot. Nous reprendrons l'exemple
précédent, basé sur un système QEMU ARM Versatile Express.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://elebihan.com/fr/posts/using-rust-with-buildroot-full-build.html"&gt;Lire la suite…&lt;/a&gt; (Il reste encore 4 min. de lecture)&lt;/p&gt;&lt;/div&gt;</description><category>buildroot</category><category>embedded linux</category><category>rust</category><guid>http://elebihan.com/fr/posts/using-rust-with-buildroot-full-build.html</guid><pubDate>Tue, 29 Mar 2016 15:58:11 GMT</pubDate></item><item><title>Utiliser Rust avec Buildroot (binaires pré-compilés)</title><link>http://elebihan.com/fr/posts/using-rust-with-buildroot-pre-built-binaries.html</link><dc:creator>Eric Le Bihan</dc:creator><description>&lt;div&gt;&lt;p&gt;&lt;a class="reference external" href="https://www.rust-lang.org"&gt;Rust&lt;/a&gt; est un langage de programmation moderne, compilé, orienté vers la
sécurité, le contrôle des accès mémoire et les accès concurrents. Ces
performances sont comparables au C++.&lt;/p&gt;
&lt;p&gt;Les fonctionnalités de Rust en font un bon candidat pour l'écriture de
programmes pour des systèmes embarqués.&lt;/p&gt;
&lt;p&gt;Dans cet article, nous construirons un système pour QEMU ARM Vexpress en
utilisant &lt;a class="reference external" href="https://buildroot.org"&gt;Buildroot&lt;/a&gt;, puis nous ajouterons le support pour Rust en installant
la chaîne de compilation pré-compilée dans l'environement Buildroot. Enfin, nous
écrirons un programme de test en Rust, qui sera compilé puis exécuté sur le
système généré.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://elebihan.com/fr/posts/using-rust-with-buildroot-pre-built-binaries.html"&gt;Lire la suite…&lt;/a&gt; (Il reste encore 2 min. de lecture)&lt;/p&gt;&lt;/div&gt;</description><category>buildroot</category><category>embedded linux</category><category>rust</category><guid>http://elebihan.com/fr/posts/using-rust-with-buildroot-pre-built-binaries.html</guid><pubDate>Sat, 19 Mar 2016 16:34:51 GMT</pubDate></item></channel></rss>