aboutsummaryrefslogtreecommitdiff
path: root/release/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'release/src/main.rs')
-rw-r--r--release/src/main.rs14
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!("");