summaryrefslogtreecommitdiff
path: root/doc/guix-cookbook.texi
diff options
context:
space:
mode:
authorMurilo <murilo@disroot.org>2026-01-23 10:55:53 -0300
committerGabriel Wicki <gabriel@erlikon.ch>2026-04-23 14:33:58 +0200
commitfda72ca8fb3243d653824f136b430323cfbcd9d5 (patch)
treecaded4d252364cada06eda17b7e747eded2526bf /doc/guix-cookbook.texi
parente9e6165d07dfef44b0b12ef027198219f074ae12 (diff)
doc: Add a note reminder to checkout the correct tag for rust crates.
* doc/guix-cookbook.texi (Packaging Workflows)[Packaging Rust Crates] {Common Workflow for Rust Packaging}: Add the note. Change-Id: I670c78d7cd6771b5f4814123e488cbdb1c4e9fe2 Signed-off-by: Gabriel Wicki <gabriel@erlikon.ch>
Diffstat (limited to 'doc/guix-cookbook.texi')
-rw-r--r--doc/guix-cookbook.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/guix-cookbook.texi b/doc/guix-cookbook.texi
index 09a49a1c9a8..73b1e16b241 100644
--- a/doc/guix-cookbook.texi
+++ b/doc/guix-cookbook.texi
@@ -1709,6 +1709,15 @@ $ cargo audit
1709$ cargo license 1709$ cargo license
1710@end example 1710@end example
1711 1711
1712@quotation Note
1713Before running @command{cargo generate-lockfile}, make sure you have checked
1714out the correct tag for the version you are packaging. This ensures that
1715@code{Cargo.toml} matches the file used in the packages's @code{source} field.
1716To make sure, you can obtain the exact source with @command{./pre-inst-env guix
1717build --source <package>} and only then run @command{cargo generate-lockfile} on
1718that source tree.
1719@end quotation
1720
1712@command{cargo generate-lockfile} updates dependencies to compatible versions. 1721@command{cargo generate-lockfile} updates dependencies to compatible versions.
1713Applying it to all Rust applications helps reduce a great number of Rust 1722Applying it to all Rust applications helps reduce a great number of Rust
1714libraries we need to check later. Although sometimes libraries may fail to 1723libraries we need to check later. Although sometimes libraries may fail to