Add "build-finished" JSON message.#8069
Conversation
|
(rust_highfive has picked a reviewer for you, use r? to override) |
|
@alexcrichton I thought some more about the comment you left, but I really think it is better just to have a single message. I wouldn't want tools to have to listen for N messages to know when things are done. And generally I don't need to know when something launches. We can add "launched" messages in the future if it looks like people want it. Also, I think the libtest JSON message already has a separate message for "starting", so test frameworks may already cover that need. |
|
Seems reasonable for me to add, it's not like this will burden us with backward compatibility, and it does seem useful. However, I do have a gut feeling that a "proper" solution here is allowing clients to split Cargo's command in two phases, building and running. Sort-of like a universal |
|
|
|
Team member @alexcrichton has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
|
That's enough of sign-off for me, and we can always back out if there are other objections! @bors: r+ |
|
📌 Commit c889bbf has been approved by |
|
☀️ Test successful - checks-azure |
Update cargo 12 commits in 390e8f245ef2cd7ac698b8a76abf029f9abcab0d..74e3a7d5b756d7c0e94399fc29fcd154e792c22a 2020-04-07 17:46:45 +0000 to 2020-04-13 20:41:52 +0000 - Update dependencies to support illumos target (rust-lang/cargo#8093) - Whitelist another known spurious curl error (rust-lang/cargo#8102) - Fix nightly test matching rustc "warning" output. (rust-lang/cargo#8098) - Update default for codegen-units. (rust-lang/cargo#8096) - Fix freshness when linking is interrupted. (rust-lang/cargo#8087) - Add `cargo tree` command. (rust-lang/cargo#8062) - Add "build-finished" JSON message. (rust-lang/cargo#8069) - Extend -Zpackage-features with more capabilities. (rust-lang/cargo#8074) - Disallow invalid dependency names through crate renaming (rust-lang/cargo#8090) - Use the same filename hash for pre-release channels. (rust-lang/cargo#8073) - Index the commands section (rust-lang/cargo#8081) - Upgrade to mdBook v0.3.7 (rust-lang/cargo#8083)
This adds a JSON message when a build is finished. This is useful for tools to know when to stop parsing JSON, which is particularly useful for commands like
cargo testorcargo runwhere additional output may follow.Closes #7978