kornelski / cargo-deb

Make Debian packages directly from Rust/Cargo projects
https://lib.rs/cargo-deb
MIT License
431 stars 52 forks source link

CARGO_BUILD_TARGET isn't respected #59

Open dancek opened 1 year ago

dancek commented 1 year ago

I have a container set up for cross compilation. CARGO_BUILD_TARGET is set and rust projects compile with just cargo build.

I'd expect cargo deb to also work but alas, I seem to require an explicit --target=$CARGO_BUILD_TARGET on invocation.

kornelski commented 1 year ago

Yes, cargo deb needs to know the target itself, and it doesn't scrape all the places Cargo uses.