Closed vintitres closed 3 days ago
It's now November and in getting myself setup for the annual tradition in under 30 days, I am hitting this issue too. :(
Can we prioritize PRs like this one? 🙏
A workaround for folks finding this on Google, use --locked
:
cargo install cargo-aoc --force --locked
When using
cargo install cargo-aoc
cargo doesn’t use theCargo.lock
file (see https://github.com/rust-lang/cargo/issues/7169 ) and installs newertokio
which results in a build error ofcargo-aoc
astokio
has hidden theRuntime::new
function underrt-multi-thread
feature in this commit https://github.com/tokio-rs/tokio/commit/9ed595767d01c400955122d276b34ab52b3a6aab .This is the error I am seeing:
Using
tokio::runtime::Builder::new_current_thread
to create the runtime fixes the build error.Tested by running