diff --git a/Cargo.lock b/Cargo.lock index 1d1c2496d31..3da45c0bbc7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -40,9 +40,9 @@ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299" [[package]] name = "annotate-snippets" -version = "0.12.3" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b0f1e2f8ec4bff67c7e1867001ec452595daf315cce10c393b7d4274024f878" +checksum = "a8ee2f071d418442e50c643c4e7a4051ce3abd9dba11713cc6cdf4f4a3f3cca5" dependencies = [ "anstyle", "memchr", diff --git a/Cargo.toml b/Cargo.toml index c2e4976cb4c..7d1e091d8f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ homepage = "https://github.com/rust-lang/cargo" repository = "https://github.com/rust-lang/cargo" [workspace.dependencies] -annotate-snippets = { version = "0.12.3", features = ["simd"] } +annotate-snippets = { version = "0.12.4", features = ["simd"] } anstream = "0.6.20" anstyle = "1.0.11" anyhow = "1.0.98" diff --git a/src/cargo/ops/registry/publish.rs b/src/cargo/ops/registry/publish.rs index 7e3b758e0e2..d19da9f612c 100644 --- a/src/cargo/ops/registry/publish.rs +++ b/src/cargo/ops/registry/publish.rs @@ -287,11 +287,18 @@ pub fn publish(ws: &Workspace<'_>, opts: &PublishOpts<'_>) -> CargoResult<()> { let source_description = source.source_id().to_string(); let short_pkg_descriptions = package_list(to_confirm.iter().copied(), "or"); if plan.is_empty() { - opts.gctx.shell().note(format!( - "waiting for {short_pkg_descriptions} to be available at {source_description}.\n\ - You may press ctrl-c to skip waiting; the {crate} should be available shortly.", - crate = if to_confirm.len() == 1 { "crate" } else {"crates"} - ))?; + let report = &[ + annotate_snippets::Group::with_title( + annotate_snippets::Level::NOTE + .secondary_title(format!( + "waiting for {short_pkg_descriptions} to be available at {source_description}" + ))), + annotate_snippets::Group::with_title(annotate_snippets::Level::HELP.secondary_title(format!( + "you may press ctrl-c to skip waiting; the {crate} should be available shortly", + crate = if to_confirm.len() == 1 { "crate" } else {"crates"} + ))), + ]; + opts.gctx.shell().print_report(report, false)?; } else { opts.gctx.shell().note(format!( "waiting for {short_pkg_descriptions} to be available at {source_description}.\n\ diff --git a/tests/testsuite/alt_registry.rs b/tests/testsuite/alt_registry.rs index 7c49dfa5e07..ab0ded2443a 100644 --- a/tests/testsuite/alt_registry.rs +++ b/tests/testsuite/alt_registry.rs @@ -362,8 +362,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `alternative` -[NOTE] waiting for foo v0.0.1 to be available at registry `alternative`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `alternative` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `alternative` "#]]) @@ -525,8 +525,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `alternative` -[NOTE] waiting for foo v0.0.1 to be available at registry `alternative`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `alternative` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `alternative` "#]]) @@ -607,8 +607,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `alternative` -[NOTE] waiting for foo v0.0.1 to be available at registry `alternative`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `alternative` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `alternative` "#]]) diff --git a/tests/testsuite/artifact_dep.rs b/tests/testsuite/artifact_dep.rs index 1850f6184ed..e75ff9722a1 100644 --- a/tests/testsuite/artifact_dep.rs +++ b/tests/testsuite/artifact_dep.rs @@ -2261,8 +2261,8 @@ fn publish_artifact_dep() { [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] foo v0.1.0 ([ROOT]/foo) [UPLOADED] foo v0.1.0 to registry `crates-io` -[NOTE] waiting for foo v0.1.0 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.1.0 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.1.0 at registry `crates-io` "#]]) diff --git a/tests/testsuite/cargo_features.rs b/tests/testsuite/cargo_features.rs index 19fc55cb424..b5af3381ac7 100644 --- a/tests/testsuite/cargo_features.rs +++ b/tests/testsuite/cargo_features.rs @@ -707,8 +707,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] a v0.0.1 ([ROOT]/foo) [UPLOADED] a v0.0.1 to registry `crates-io` -[NOTE] waiting for a v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for a v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] a v0.0.1 at registry `crates-io` "#]]) diff --git a/tests/testsuite/credential_process.rs b/tests/testsuite/credential_process.rs index 1c66a25c3d4..cd223b523db 100644 --- a/tests/testsuite/credential_process.rs +++ b/tests/testsuite/credential_process.rs @@ -80,8 +80,8 @@ fn publish() { [UPLOADING] foo v0.1.0 ([ROOT]/foo) {"v":1,"registry":{"index-url":"[..]","name":"alternative"},"kind":"get","operation":"publish","name":"foo","vers":"0.1.0","cksum":"[..]"} [UPLOADED] foo v0.1.0 to registry `alternative` -[NOTE] waiting for foo v0.1.0 to be available at registry `alternative`. -You may press ctrl-c [..] +[NOTE] waiting for foo v0.1.0 to be available at registry `alternative` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.1.0 at registry `alternative` "#]]) @@ -564,7 +564,7 @@ fn token_caching() { {"v":1,"registry":{"index-url":"[..]","name":"alternative"},"kind":"get","operation":"publish","name":"foo","vers":"0.1.0","cksum":"[..]"} [UPLOADED] foo v0.1.0 to registry `alternative` [NOTE] waiting [..] -You may press ctrl-c [..] +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.1.0 at registry `alternative` "#]]; @@ -585,7 +585,7 @@ You may press ctrl-c [..] {"v":1,"registry":{"index-url":"[..]","name":"alternative"},"kind":"get","operation":"publish","name":"foo","vers":"0.1.1","cksum":"[..]"} [UPLOADED] foo v0.1.1 to registry `alternative` [NOTE] waiting [..] -You may press ctrl-c [..] +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.1.1 at registry `alternative` "#]]; diff --git a/tests/testsuite/cross_publish.rs b/tests/testsuite/cross_publish.rs index 0624a0cd9c8..b564e1adb52 100644 --- a/tests/testsuite/cross_publish.rs +++ b/tests/testsuite/cross_publish.rs @@ -115,8 +115,8 @@ fn publish_with_target() { [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.0 ([ROOT]/foo) [UPLOADED] foo v0.0.0 to registry `crates-io` -[NOTE] waiting for foo v0.0.0 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.0 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.0 at registry `crates-io` "#]]) diff --git a/tests/testsuite/features_namespaced.rs b/tests/testsuite/features_namespaced.rs index 0d8c711807c..c79f5fdc14a 100644 --- a/tests/testsuite/features_namespaced.rs +++ b/tests/testsuite/features_namespaced.rs @@ -930,8 +930,8 @@ fn publish_no_implicit() { [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] foo v0.1.0 ([ROOT]/foo) [UPLOADED] foo v0.1.0 to registry `crates-io` -[NOTE] waiting for foo v0.1.0 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.1.0 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.1.0 at registry `crates-io` "#]]) @@ -1074,8 +1074,8 @@ fn publish() { [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.1.0 ([ROOT]/foo) [UPLOADED] foo v0.1.0 to registry `crates-io` -[NOTE] waiting for foo v0.1.0 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.1.0 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.1.0 at registry `crates-io` "#]]) diff --git a/tests/testsuite/inheritable_workspace_fields.rs b/tests/testsuite/inheritable_workspace_fields.rs index d3434d85400..6da48e639d5 100644 --- a/tests/testsuite/inheritable_workspace_fields.rs +++ b/tests/testsuite/inheritable_workspace_fields.rs @@ -167,8 +167,8 @@ fn inherit_own_workspace_fields() { [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v1.2.3 ([ROOT]/foo) [UPLOADED] foo v1.2.3 to registry `crates-io` -[NOTE] waiting for foo v1.2.3 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v1.2.3 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v1.2.3 at registry `crates-io` "#]]) @@ -334,8 +334,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] bar v0.2.0 ([ROOT]/foo) [UPLOADED] bar v0.2.0 to registry `crates-io` -[NOTE] waiting for bar v0.2.0 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for bar v0.2.0 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] bar v0.2.0 at registry `crates-io` "#]]) @@ -501,8 +501,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] bar v0.2.0 ([ROOT]/foo) [UPLOADED] bar v0.2.0 to registry `crates-io` -[NOTE] waiting for bar v0.2.0 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for bar v0.2.0 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] bar v0.2.0 at registry `crates-io` "#]]) @@ -762,8 +762,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-lice [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] bar v1.2.3 ([ROOT]/foo/bar) [UPLOADED] bar v1.2.3 to registry `crates-io` -[NOTE] waiting for bar v1.2.3 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for bar v1.2.3 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] bar v1.2.3 at registry `crates-io` "#]]) @@ -936,8 +936,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] bar v0.2.0 ([ROOT]/foo/bar) [UPLOADED] bar v0.2.0 to registry `crates-io` -[NOTE] waiting for bar v0.2.0 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for bar v0.2.0 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] bar v0.2.0 at registry `crates-io` "#]]) diff --git a/tests/testsuite/publish.rs b/tests/testsuite/publish.rs index 88fbd7ab4f6..846b0689328 100644 --- a/tests/testsuite/publish.rs +++ b/tests/testsuite/publish.rs @@ -120,8 +120,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `crates-io` -[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `crates-io` "#]]) @@ -214,8 +214,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `dummy-registry` -[NOTE] waiting for foo v0.0.1 to be available at registry `dummy-registry`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `dummy-registry` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `dummy-registry` "#]]) @@ -257,8 +257,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `dummy-registry` -[NOTE] waiting for foo v0.0.1 to be available at registry `dummy-registry`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `dummy-registry` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `dummy-registry` "#]]) @@ -313,8 +313,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `crates-io` -[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `crates-io` "#]]) @@ -358,8 +358,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `[ROOT]/registry` -[NOTE] waiting for foo v0.0.1 to be available at registry `[ROOT]/registry`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `[ROOT]/registry` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `[ROOT]/registry` "#]]) @@ -564,8 +564,8 @@ fn publish_clean() { [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `crates-io` -[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `crates-io` "#]]) @@ -613,8 +613,8 @@ fn publish_in_sub_repo() { [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.1 ([ROOT]/foo/bar) [UPLOADED] foo v0.0.1 to registry `crates-io` -[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `crates-io` "#]]) @@ -662,8 +662,8 @@ fn publish_when_ignored() { [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `crates-io` -[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `crates-io` "#]]) @@ -710,8 +710,8 @@ fn ignore_when_crate_ignored() { [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.1 ([ROOT]/foo/bar) [UPLOADED] foo v0.0.1 to registry `crates-io` -[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `crates-io` "#]]) @@ -901,8 +901,8 @@ fn publish_allowed_registry() { [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `alternative` -[NOTE] waiting for foo v0.0.1 to be available at registry `alternative`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `alternative` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `alternative` "#]]) @@ -962,8 +962,8 @@ fn publish_implicitly_to_only_allowed_registry() { [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `alternative` -[NOTE] waiting for foo v0.0.1 to be available at registry `alternative`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `alternative` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `alternative` "#]]) @@ -1130,8 +1130,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `crates-io` -[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `crates-io` "#]]) @@ -1181,8 +1181,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `crates-io` -[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `crates-io` "#]]) @@ -1232,8 +1232,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `crates-io` -[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `crates-io` "#]]) @@ -1345,8 +1345,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `crates-io` -[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `crates-io` "#]]) @@ -1552,8 +1552,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] foo v0.1.0 ([ROOT]/foo) [UPLOADED] foo v0.1.0 to registry `crates-io` -[NOTE] waiting for foo v0.1.0 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.1.0 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.1.0 at registry `crates-io` "#]]) @@ -1808,8 +1808,8 @@ fn publish_dev_dep_stripping() { [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] foo v0.1.0 ([ROOT]/foo) [UPLOADED] foo v0.1.0 to registry `crates-io` -[NOTE] waiting for foo v0.1.0 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.1.0 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.1.0 at registry `crates-io` "#]]) @@ -2147,8 +2147,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `crates-io` -[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `crates-io` "#]]) @@ -2515,8 +2515,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] li v0.0.1 ([ROOT]/foo/li) [UPLOADED] li v0.0.1 to registry `crates-io` -[NOTE] waiting for li v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for li v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] li v0.0.1 at registry `crates-io` "#]]) @@ -2586,8 +2586,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [UPLOADED] bar v0.0.1 to registry `crates-io` [UPLOADING] li v0.0.1 ([ROOT]/foo/li) [UPLOADED] li v0.0.1 to registry `crates-io` -[NOTE] waiting for bar v0.0.1 or li v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crates should be available shortly. +[NOTE] waiting for bar v0.0.1 or li v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crates should be available shortly [PUBLISHED] bar v0.0.1 and li v0.0.1 at registry `crates-io` "#]]) @@ -2636,8 +2636,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] li v0.0.1 ([ROOT]/foo/li) [UPLOADED] li v0.0.1 to registry `crates-io` -[NOTE] waiting for li v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for li v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] li v0.0.1 at registry `crates-io` "#]]) @@ -2683,8 +2683,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] foo v0.0.1 ([ROOT]/foo/foo) [UPLOADED] foo v0.0.1 to registry `crates-io` -[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `crates-io` "#]]) @@ -2741,8 +2741,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] li v0.0.1 ([ROOT]/foo/li) [UPLOADED] li v0.0.1 to registry `crates-io` -[NOTE] waiting for li v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for li v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] li v0.0.1 at registry `crates-io` "#]]) @@ -2854,8 +2854,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [UPLOADED] li v0.0.1 to registry `crates-io` [UPLOADING] lii v0.0.1 ([ROOT]/foo/lii) [UPLOADED] lii v0.0.1 to registry `crates-io` -[NOTE] waiting for li v0.0.1 or lii v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crates should be available shortly. +[NOTE] waiting for li v0.0.1 or lii v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crates should be available shortly [PUBLISHED] li v0.0.1 and lii v0.0.1 at registry `crates-io` "#]]) @@ -2939,8 +2939,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `crates-io` -[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `crates-io` "#]]) @@ -3017,8 +3017,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] delay v0.0.1 ([ROOT]/foo) [UPLOADED] delay v0.0.1 to registry `crates-io` -[NOTE] waiting for delay v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for delay v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] delay v0.0.1 at registry `crates-io` "#]]) @@ -3110,8 +3110,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] delay_with_underscore v0.0.1 ([ROOT]/foo) [UPLOADED] delay_with_underscore v0.0.1 to registry `crates-io` -[NOTE] waiting for delay_with_underscore v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for delay_with_underscore v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] delay_with_underscore v0.0.1 at registry `crates-io` "#]]) @@ -3210,8 +3210,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] delay v0.0.2 ([ROOT]/foo) [UPLOADED] delay v0.0.2 to registry `crates-io` -[NOTE] waiting for delay v0.0.2 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for delay v0.0.2 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] delay v0.0.2 at registry `crates-io` "#]]) @@ -3328,8 +3328,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] delay v0.0.1 ([ROOT]/foo) [UPLOADED] delay v0.0.1 to registry `crates-io` -[NOTE] waiting for delay v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for delay v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [WARNING] timed out waiting for delay v0.0.1 to be available in registry `crates-io` [NOTE] the registry may have a backlog that is delaying making the crate available. The crate should be available soon. @@ -3552,8 +3552,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed) [UPLOADING] delay v0.0.2 ([ROOT]/foo) [UPLOADED] delay v0.0.2 to registry `crates-io` -[NOTE] waiting for delay v0.0.2 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for delay v0.0.2 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] delay v0.0.2 at registry `crates-io` "#]]) @@ -3760,8 +3760,8 @@ fn workspace_with_local_deps() { [PUBLISHED] level2 v0.0.1 at registry `crates-io` [UPLOADING] level1 v0.0.1 ([ROOT]/foo/level1) [UPLOADED] level1 v0.0.1 to registry `crates-io` -[NOTE] waiting for level1 v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for level1 v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] level1 v0.0.1 at registry `crates-io` "#]]) @@ -3859,12 +3859,12 @@ fn workspace_parallel() { [PUBLISHED] a v0.0.1 and b v0.0.1 at registry `crates-io` [UPLOADING] c v0.0.1 ([ROOT]/foo/c) [UPLOADED] c v0.0.1 to registry `crates-io` -[NOTE] waiting for c v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for c v0.0.1 to be available at registry `crates-io` [PUBLISHED] c v0.0.1 at registry `crates-io` [UPLOADING] a v0.0.1 ([ROOT]/foo/a) [UPLOADING] b v0.0.1 ([ROOT]/foo/b) [UPDATING] crates.io index +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly "#]] .unordered(), @@ -3944,8 +3944,8 @@ Caused by: [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] a v0.0.1 ([ROOT]/foo/a) [UPLOADED] a v0.0.1 to registry `crates-io` -[NOTE] waiting for a v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for a v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] a v0.0.1 at registry `crates-io` "#]]) @@ -4020,8 +4020,8 @@ fn one_unpublishable_package() { [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] dep v0.1.0 ([ROOT]/foo/dep) [UPLOADED] dep v0.1.0 to registry `crates-io` -[NOTE] waiting for dep v0.1.0 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for dep v0.1.0 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] dep v0.1.0 at registry `crates-io` "#]]) @@ -4099,8 +4099,8 @@ fn virtual_ws_with_multiple_unpublishable_package() { [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] publishable v0.1.0 ([ROOT]/foo/publishable) [UPLOADED] publishable v0.1.0 to registry `crates-io` -[NOTE] waiting for publishable v0.1.0 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for publishable v0.1.0 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] publishable v0.1.0 at registry `crates-io` "#]]) @@ -4170,8 +4170,8 @@ fn workspace_flag_with_unpublishable_packages() { [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] publishable v0.0.0 ([ROOT]/foo/publishable) [UPLOADED] publishable v0.0.0 to registry `crates-io` -[NOTE] waiting for publishable v0.0.0 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for publishable v0.0.0 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] publishable v0.0.0 at registry `crates-io` "#]]) diff --git a/tests/testsuite/source_replacement.rs b/tests/testsuite/source_replacement.rs index 322d63da04c..0bc5dd454b8 100644 --- a/tests/testsuite/source_replacement.rs +++ b/tests/testsuite/source_replacement.rs @@ -222,8 +222,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.0.1 ([ROOT]/foo) [UPLOADED] foo v0.0.1 to registry `crates-io` -[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.0.1 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.0.1 at registry `crates-io` "#]]) diff --git a/tests/testsuite/weak_dep_features.rs b/tests/testsuite/weak_dep_features.rs index 992251b3078..5194ab4206f 100644 --- a/tests/testsuite/weak_dep_features.rs +++ b/tests/testsuite/weak_dep_features.rs @@ -576,8 +576,8 @@ fn publish() { [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s [UPLOADING] foo v0.1.0 ([ROOT]/foo) [UPLOADED] foo v0.1.0 to registry `crates-io` -[NOTE] waiting for foo v0.1.0 to be available at registry `crates-io`. -You may press ctrl-c to skip waiting; the crate should be available shortly. +[NOTE] waiting for foo v0.1.0 to be available at registry `crates-io` +[HELP] you may press ctrl-c to skip waiting; the crate should be available shortly [PUBLISHED] foo v0.1.0 at registry `crates-io` "#]])