Skip to content

Releases: openSUSE-Rust/cargo-packaging

v1.2.0

18 Feb 02:01
c429b77
Compare
Choose a tag to compare
marcos.cargo: add path parameter in cargo_install (#3)

The `%{cargo_install}` macro is expanded adding a `--path .` paramenter
at the end.  With virtual workspaces we need to specify a different
`path` per binary crate, but this cannot be done if there is already one
`path` parameter.

This patch adds a path parameter (-p) in the cargo_install macro, that
if it is not present will default to the current "--path ." one.  Now an
user can specify a different path parameter:

  %{cargo_install -p binary-crate} --no-default-features

Related with:

  https://github.com/rust-lang/cargo/issues/7599

Signed-off-by: Alberto Planas <[email protected]>

v1.0.0

24 Aug 03:54
Compare
Choose a tag to compare
Add macros