-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Support cargo:info=MESSAGE in build.rs stdout #7037
Copy link
Copy link
Open
Labels
A-build-scriptsArea: build.rs scriptsArea: build.rs scriptsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Metadata
Metadata
Assignees
Labels
A-build-scriptsArea: build.rs scriptsArea: build.rs scriptsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Status: #7037 (comment)
Describe the problem you are trying to solve
Provide meaningful information to a developer when using a
build.rsscript.In my case, I provide duration of specific steps to monitor the performance of thoses.
Currently, I use
cargo:warning=MESSAGEto provide this output.This is not fine because it is not an actual warning.
Describe the solution you'd like
Supporting
cargo:info=MESSAGEto output a string in the cargo's output with info log level.Example:
(build.rs)
Will print in the cargo output if the
build.rsscript is executed:with the look of an info entry.