1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 13:10:33 +02:00

build-system: cargo: Support installing Cargo workspace.

*guix/build-system/cargo.scm (cargo-build, cargo-cross-build)
[#:cargo-install-paths]: New argument.
* guix/build/cargo-build-system.scm (install): Use it.
* doc/guix.texi (Build Systems)[cargo-build-system]: Document it.

Change-Id: I74ed1972a5716da05afeac8edb2b0e4b6834bf40
This commit is contained in:
Hilton Chain
2025-02-27 20:03:49 +08:00
parent 878bdd7fb6
commit 5494343bfc
3 changed files with 21 additions and 5 deletions

View File

@@ -9582,7 +9582,10 @@ This build system supports cargo workspaces. Parameter
library crates to package in the @code{package} phase. Specified crates are
packaged from left to right, in case there's dependency among them. For
example, specifying @code{''("pcre2-sys" "pcre2")} will package
@code{"pcre2-sys"} first and then @code{"pcre2"}.
@code{"pcre2-sys"} first and then @code{"pcre2"}. Parameter
@code{#:cargo-install-paths} (default: @code{''()}) allows specifying paths of
binary crates to install in the @code{install} phase, @code{''("crates/atuin")},
for example.
@end defvar
@defvar chicken-build-system