Basically edit your dependencies from command line. No more manual manual editing of Cargo.toml file.
cargo install cargo-edit # https://crates.io/crates/cargo-edit
cargo add tokio # it will add tokio to your Cargo.toml
cargo add tokio --features all # also add features option
It is really worth fix the installation issues to save time later and use cargo-edit
One of the errors during installation of cargo edit ld: cannot find -lntdll. This shows on Windows. Try use different toolchain eg.
rustup toolchain install stable-msvc
# if you don't have nexss programmer installed just use
npx nexssp/os install gcc
# with nexss programmer
nexss os install gcc
nexss os install gcc --dry # just to see what command nexss programmer uses to install gcc.
More about amazing cargo-edit here: https://crates.io/crates/cargo-edit
If you found it valuable, please join to the nexss.com supporters at: Support Nexss.com