pkgsrc-Changes archive

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

CVS commit: pkgsrc/doc/guide/files



Module Name:    pkgsrc
Committed By:   nia
Date:           Sat May 21 11:20:48 UTC 2022

Modified Files:
        pkgsrc/doc/guide/files: fixes.xml

Log Message:
Add a Rust section


To generate a diff of this commit:
cvs rdiff -u -r1.171 -r1.172 pkgsrc/doc/guide/files/fixes.xml

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/doc/guide/files/fixes.xml
diff -u pkgsrc/doc/guide/files/fixes.xml:1.171 pkgsrc/doc/guide/files/fixes.xml:1.172
--- pkgsrc/doc/guide/files/fixes.xml:1.171      Sat May 21 11:14:56 2022
+++ pkgsrc/doc/guide/files/fixes.xml    Sat May 21 11:20:48 2022
@@ -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 @@ pre-configure:
     </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