diff options
| author | Murilo <murilo@disroot.org> | 2026-01-23 10:45:31 -0300 |
|---|---|---|
| committer | Gabriel Wicki <gabriel@erlikon.ch> | 2026-04-23 14:33:58 +0200 |
| commit | 32f426c44680c7ec7be77a8f50c25fd619c86a57 (patch) | |
| tree | 5c06dce254a3d83e349a780c87916fe7bc21f6c4 /doc | |
| parent | 0a713ecbc860dafc766ae797fa72236b3e957282 (diff) | |
doc: Add rust commit messages guidance.
* doc/contributing.texi (Rust Crates)[Commit messages]:
New subsubsection.
Change-Id: If22d6921301902417a88d2d5d8e2fad947762bee
Signed-off-by: Gabriel Wicki <gabriel@erlikon.ch>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/contributing.texi | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/doc/contributing.texi b/doc/contributing.texi index 815cf0149ce..d88e6f0484c 100644 --- a/doc/contributing.texi +++ b/doc/contributing.texi | |||
| @@ -1699,6 +1699,58 @@ tree. | |||
| 1699 | @xref{Packaging Rust Crates,,, guix-cookbook, GNU Guix Cookbook}, for | 1699 | @xref{Packaging Rust Crates,,, guix-cookbook, GNU Guix Cookbook}, for |
| 1700 | packaging workflow. | 1700 | packaging workflow. |
| 1701 | 1701 | ||
| 1702 | @subsubsection Commit messages | ||
| 1703 | |||
| 1704 | The commit message must have a general brief mention to entry changes | ||
| 1705 | in @code{(gnu packages rust-crates)}. For changes in @code{(gnu packages | ||
| 1706 | rust-sources)}, the commit message must explicitly mention all changes to the | ||
| 1707 | packages. | ||
| 1708 | |||
| 1709 | Here are some examples for different situations: | ||
| 1710 | |||
| 1711 | @itemize | ||
| 1712 | |||
| 1713 | @item | ||
| 1714 | Adding a new Rust package: | ||
| 1715 | |||
| 1716 | @example | ||
| 1717 | gnu: Add catppuccin-whiskers. | ||
| 1718 | |||
| 1719 | * gnu/packages/rust-apps.scm (catppuccin-whiskers): New variable. | ||
| 1720 | * gnu/packages/rust-crates.scm (lookup-cargo-inputs) | ||
| 1721 | [catppuccin-whiskers]: New entry. | ||
| 1722 | @end example | ||
| 1723 | |||
| 1724 | @item | ||
| 1725 | Updating a simple package: | ||
| 1726 | |||
| 1727 | @example | ||
| 1728 | gnu: watchexec: Update to 2.3.2. | ||
| 1729 | |||
| 1730 | * gnu/packages/rust-apps.scm (watchexec): Update to 2.3.2. | ||
| 1731 | * gnu/packages/rust-crates.scm (lookup-cargo-inputs)[watchexec]: | ||
| 1732 | Update entry. | ||
| 1733 | @end example | ||
| 1734 | |||
| 1735 | @item | ||
| 1736 | Updating a package with sources: | ||
| 1737 | |||
| 1738 | @example | ||
| 1739 | gnu: typst: Update to 0.14.0. | ||
| 1740 | |||
| 1741 | * gnu/packages/rust-apps.scm (typst): Update to 0.14.0. | ||
| 1742 | [arguments]<#:rust>: Use rust-1.88. | ||
| 1743 | * gnu/packages/rust-crates.scm (lookup-cargo-inputs)[typst]: Update | ||
| 1744 | entry. | ||
| 1745 | [rust-syntect-5]: Rename to rust-syntect-5.2. | ||
| 1746 | [rust-syntect-5.3]: New entry. | ||
| 1747 | * gnu/packages/rust-sources.scm (rust-hypher-0.1): Update to 0.1.6. | ||
| 1748 | (rust-syntect-5): Rename to rust-syntect-5.2. | ||
| 1749 | [inputs]: Rename cargo-inputs rust-syntect-5 to rust-syntect-5.2. | ||
| 1750 | (rust-syntect-5.3): New variable. | ||
| 1751 | @end example | ||
| 1752 | |||
| 1753 | @end itemize | ||
| 1702 | 1754 | ||
| 1703 | @node Elm Packages | 1755 | @node Elm Packages |
| 1704 | @subsection Elm Packages | 1756 | @subsection Elm Packages |
