-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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.
Description
Status: #7037 (comment)
Describe the problem you are trying to solve
Provide meaningful information to a developer when using a build.rs
script.
In my case, I provide duration of specific steps to monitor the performance of thoses.
Currently, I use cargo:warning=MESSAGE
to provide this output.
This is not fine because it is not an actual warning.
Describe the solution you'd like
Supporting cargo:info=MESSAGE
to output a string in the cargo's output with info log level.
Example:
(build.rs)
fn main() {
println!("cargo:info=Hello World!");
}
Will print in the cargo output if the build.rs
script is executed:
info: Hello World!
with the look of an info entry.
konstin, Aetf, Shizcow, joshraexp, Fishrock123 and 57 moretklajnscek, MichaelSasser, gmuloc and Nabav
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.