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
it does not detect/respect rust-toolchain in a project itself (it will use whatever toolchain is the default one, which is good enough for most cases)
it is implemented as a workaround in a bash script: we simply pass an environment variable.
I tried to track this issue more deeply, but I could not find the proper solution. Anyway here is some info that can be useful for further investigation into it:
Siderophile runs cargo clean and cargo check through Cargo API:
It uses a custom Cargo executor for that where it calls the underlying rustc compilation by itself - this is the point where it fails to compile a dependency (on the .exec(..) call) as it tries to do it with the toolchain specified in the dependency's rust-toolchain file:
The PR #22 added a workaround for issue #14.
However, this solution is not ideal as:
rust-toolchain
in a project itself (it will use whatever toolchain is the default one, which is good enough for most cases)I tried to track this issue more deeply, but I could not find the proper solution. Anyway here is some info that can be useful for further investigation into it:
cargo clean
andcargo check
through Cargo API:siderophile/src/deps.rs
Lines 244 to 270 in c3e6c76
.exec(..)
call) as it tries to do it with the toolchain specified in the dependency'srust-toolchain
file:siderophile/src/deps.rs
Lines 389 to 434 in c3e6c76
The text was updated successfully, but these errors were encountered: