You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a cross issue strictly speaking but the thing is cross run now has a different behaviour compared to cargo run. I didn't find a way to disable rustup output so I am now wondering if cross could have a workaround.
Even -q removes everything but the annoying rustup output :).
If I find no workaround then my only way to go is to change my program to take an argument (file name) and make it write to a file instead of stdout. I may implement it anyway in order to secure my builds but I wanted to let you know there is a potentially very annoying change in rustup.
Im not able to connect to my computer right now and dont have my laptop, could you show me the output when you set CROSS_DEBUG=1 to env?
$ CROSS_DEBUG=1 cross --version
cross 0.2.5 (36c0d78 2025-03-08)
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.87.0-nightly (ecade534c 2025-03-14)
info: checking for self-update
[cross] note: [src/bin/cross.rs:27] Falling back to `cargo` on the host.
cargo 1.87.0-nightly (ab1463d63 2025-03-08)
Side note: cross actually performs a full rustup update (even with --version).
Use rustup 1.28.1 and it should work as it should
Sorry, but no, I was already up-to-date.
$ rustup --version
rustup 1.28.1 (f9edccde0 2025-03-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.87.0-nightly (249cb8431 2025-03-12)`
I see that when I run rustup toolchain list, there's a new status called active available, we don't correctly handle that. This change is from rust-lang/rustup#3225
The fix then would be either removing the string from
Activity
Emilgardis commentedon Mar 14, 2025
Does it do the same on the main branch?
cargo install cross --git https://github.com/cross-rs/cross/arnodb commentedon Mar 14, 2025
Good question, and the answer is yes:
Emilgardis commentedon Mar 14, 2025
Im not able to connect to my computer right now and dont have my laptop, could you show me the output when you set
CROSS_DEBUG=1to env?Emilgardis commentedon Mar 14, 2025
Oh yeah, could this be rust-lang/rustup#4221 ?
Use rustup 1.28.1 and it should work as it should
arnodb commentedon Mar 15, 2025
Sorry for the delay...
Side note:
crossactually performs a full rustup update (even with--version).Sorry, but no, I was already up-to-date.
Emilgardis commentedon Mar 15, 2025
ok, I'm unable to replicate this on my mac, but I think I see the issue now.
The only place where this could come from would be here I think. that code is ran depending on the output of
cross/src/rustup.rs
Lines 87 to 99 in 36c0d78
I see that when I run
rustup toolchain list, there's a new status called active available, we don't correctly handle that. This change is from rust-lang/rustup#3225The fix then would be either removing the string from
cross/src/rustup.rs
Lines 94 to 96 in 36c0d78
rustup -q toolchain listor not match the toolchain name exactly. I think I prefer using-q, should be backwards compatible too.use `-q` when gathering the installed toolchains (#1647)