diff --git a/CHANGELOG.md b/CHANGELOG.md index c12ccaf..ee7aa32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Fixed + +- Redirected cargo build output to stderr instead of stdout. This prevents cargo/rustc messages and warnings from appearing in the stdout of cargo-binutils tools, making it easier to pipe or redirect tool output cleanly. + ## [v0.4.0] - 2025-08-26 ### Added diff --git a/src/lib.rs b/src/lib.rs index acad687..b08cf51 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -449,7 +449,7 @@ fn cargo_build(matches: &ArgMatches, metadata: &Metadata) -> Result { if !quiet || verbose > 1 { if let Some(rendered) = msg.message.rendered { - print!("{rendered}"); + eprint!("{rendered}"); } } }