pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/doc/guide/files Add a Rust section



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c9be704f2466
branches:  trunk
changeset: 379654:c9be704f2466
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat May 21 11:20:48 2022 +0000

description:
Add a Rust section

diffstat:

 doc/guide/files/fixes.xml |  24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r e393c64a278f -r c9be704f2466 doc/guide/files/fixes.xml
--- a/doc/guide/files/fixes.xml Sat May 21 11:14:56 2022 +0000
+++ b/doc/guide/files/fixes.xml Sat May 21 11:20:48 2022 +0000
@@ -1,4 +1,4 @@
-<!-- $NetBSD: fixes.xml,v 1.171 2022/05/21 11:14:56 nia Exp $ -->
+<!-- $NetBSD: fixes.xml,v 1.172 2022/05/21 11:20:48 nia Exp $ -->
 
 <chapter id="fixes"> <?dbhtml filename="fixes.html"?>
 <title>Making your package work</title>
@@ -1496,6 +1496,28 @@
     </orderedlist>
   </sect2>
 
+  <sect2 id="rust-programming-language">
+    <title>Rust</title>
+
+    <para>If a program is written in Rust and uses Cargo to build,
+    have the package include
+    <filename>../../lang/rust/cargo.mk</filename>.</para>
+
+    <orderedlist>
+      <listitem><para>Generate a list of those dependencies with
+      <command>make CARGO_ARGS="build --release" build &&
+      make print-cargo-depends > cargo-depends.mk</command>.</para></listitem>
+
+      <listitem><para>Prepend
+      <literal>.include "cargo-depends.mk"</literal> to any other
+      <literal>.include</literal>s.</para></listitem>
+
+      <listitem><para>Incorporate these modules in
+      <filename>distinfo</filename> with <command>make
+      makesum</command>.</para></listitem>
+    </orderedlist>
+  </sect2>
+
   <sect2 id="perl-scripts">
     <title>Packages containing Perl scripts</title>
 



Home | Main Index | Thread Index | Old Index