From a709c6f6e141fc842c5aec8a60f7fa0061c563b6 Mon Sep 17 00:00:00 2001 From: Pavol Žáčik Date: Apr 30 2025 10:40:23 +0000 Subject: Rust: Update rust2rpm examples to use --path Paths are no longer accepted as positional arguments. --- diff --git a/guidelines/modules/ROOT/pages/Rust.adoc b/guidelines/modules/ROOT/pages/Rust.adoc index 9e43ae4..337d343 100644 --- a/guidelines/modules/ROOT/pages/Rust.adoc +++ b/guidelines/modules/ROOT/pages/Rust.adoc @@ -770,7 +770,7 @@ but _not_ published on https://crates.io[crates.io]. https://pagure.io/fedora-rust/rust2rpm[rust2rpm] has basic support for generating spec files for this type of package -by running `rust2rpm path/to/Cargo.toml` in unpacked upstream sources. +by running `rust2rpm --path path/to/Cargo.toml` in unpacked upstream sources. Packages that fall into this category *MUST NOT* ship crate sources in `%{cargo_registry}`, i.e. they cannot ship `-devel` subpackages @@ -812,7 +812,7 @@ but not published on https://crates.io[crates.io]. https://pagure.io/fedora-rust/rust2rpm[rust2rpm] has basic support for generating spec files for this type of package -by running `rust2rpm path/to/Cargo.toml` in unpacked upstream sources, +by running `rust2rpm --path path/to/Cargo.toml` in unpacked upstream sources, (where `./Cargo.toml` must be the path to the "workspace root", i.e. the `Cargo.toml` file that contains the `[workspace]` table).