Skip to content

Commit

Permalink
Add comment for cargo:: syntax
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
  • Loading branch information
hi-rustin committed Jul 8, 2023
1 parent 71cd128 commit ad48088
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cargo/core/compiler/custom_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,9 @@ impl BuildOutput {
}
let data = match iter.next() {
Some(val) => {
// `cargo::` is reserved for future use or some way to indicate that there is a version mismatch
// between the build script and cargo, whether its because no MSRV was specified
// or someone was reading too new of documentation.
if val.starts_with(":") {
// Line started with `cargo::`.
bail!("invalid output in {}: `{}`\n\
Expand Down

0 comments on commit ad48088

Please sign in to comment.