diff options
| author | Ulf Lilleengen <[email protected]> | 2025-08-18 15:00:22 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2025-08-25 19:44:51 +0200 |
| commit | b00496fd299ca1dbc122476f0477b4032d5727c7 (patch) | |
| tree | d9ef2a8304c07caf06f5d5424808c6f0fcf008f0 /release/src/main.rs | |
| parent | 5cab79d817759e50a051d05e245067dd07c81362 (diff) | |
fix: write instructions only for publishing crates
Diffstat (limited to 'release/src/main.rs')
| -rw-r--r-- | release/src/main.rs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/release/src/main.rs b/release/src/main.rs index 488dc9b6a..22c926b86 100644 --- a/release/src/main.rs +++ b/release/src/main.rs | |||
| @@ -396,7 +396,9 @@ fn main() -> Result<()> { | |||
| 396 | while let Some(node) = bfs.next(&rgraph) { | 396 | while let Some(node) = bfs.next(&rgraph) { |
| 397 | let weight = rgraph.node_weight(node).unwrap(); | 397 | let weight = rgraph.node_weight(node).unwrap(); |
| 398 | let c = ctx.crates.get(weight).unwrap(); | 398 | let c = ctx.crates.get(weight).unwrap(); |
| 399 | println!("git tag {}-v{}", weight, c.version); | 399 | if c.publish { |
| 400 | println!("git tag {}-v{}", weight, c.version); | ||
| 401 | } | ||
| 400 | } | 402 | } |
| 401 | 403 | ||
| 402 | println!(""); | 404 | println!(""); |
| @@ -414,8 +416,10 @@ fn main() -> Result<()> { | |||
| 414 | ]; | 416 | ]; |
| 415 | 417 | ||
| 416 | let config = c.configs.first().unwrap(); // TODO | 418 | let config = c.configs.first().unwrap(); // TODO |
| 417 | args.push("--features".into()); | 419 | if !config.features.is_empty() { |
| 418 | args.push(config.features.join(",")); | 420 | args.push("--features".into()); |
| 421 | args.push(config.features.join(",")); | ||
| 422 | } | ||
| 419 | 423 | ||
| 420 | if let Some(target) = &config.target { | 424 | if let Some(target) = &config.target { |
| 421 | args.push("--target".into()); | 425 | args.push("--target".into()); |
| @@ -428,7 +432,9 @@ fn main() -> Result<()> { | |||
| 428 | 432 | ||
| 429 | println!("cargo {}", dry_run.join(" ")); | 433 | println!("cargo {}", dry_run.join(" ")); |
| 430 | */ | 434 | */ |
| 431 | println!("cargo {}", args.join(" ")); | 435 | if c.publish { |
| 436 | println!("cargo {}", args.join(" ")); | ||
| 437 | } | ||
| 432 | } | 438 | } |
| 433 | 439 | ||
| 434 | println!(""); | 440 | println!(""); |
