Build scripts being able to provide extra context on errors #12071
Labels
A-build-scripts
Area: build.rs scripts
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
Take the following build error;
For a new user, this might be a bit of a "show stopper", or otherwise a kink/bump in the road for them to get started. Rust already has a bunch of helpful errors, I think it could help if the build script (or any script) is able to "catch" this error, observe it, and possibly provide additional information useful for the user at hand. (f.e. "TIP: You are on a debian OS, installing
build-essential
will provide the relevant files for this build").This would allow library developers to provide "here, do this to proceed building" instructions for common cases, and/or even try to diagnose tricky cases, or provide extra debug/context information on output of such a build.
The text was updated successfully, but these errors were encountered: