I have Rust library dependencies referenced by git URL in Cargo.toml like this:
rust_wheel = { git = "https://github.com/jiangxiaoqiang/rust_wheel.git" }
Now I changed the git repo and want to update the dependencies for my current project. I tried to use this command:
cargo install rust_wheel --force
But it shows this error:
error: there is nothing to install in `rust_wheel v0.1.0`, because it has no binaries
`cargo install` is only for installing programs, and can't be used with libraries.
To use a library crate, add it as a dependency in a Cargo project instead.
I have tried to refresh the cargo dependencies in Clion. It did not work. What should I do to update the dependencies? Also tried the command cargo update rust_wheel.