Problem
Trying to install dioxus-cli via cargo install currently fails during auth-git2 compilation with
Compiling auth-git2 v0.5.6
error[E0599]: no function or associated item named `credential_helper` found for struct `Cred` in the current scope
--> /Users/max/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/auth-git2-0.5.6/src/lib.rs:575:23
|
575 | ... match git2::Cred::credential_helper(git_config, url, username) {
| ^^^^^^^^^^^^^^^^^ function or associated item not found in `Cred`
|
I personally reproduced this with
cargo install dioxus-cli
cargo install dioxus-cli@0.7.3
cargo install --git https://github.com/DioxusLabs/dioxus.git dioxus-cli
on both a macOS and a Linux machine. I see no obvious way to freshly install Dioxus' CLI as of yesterday; this seems to be caused by the release of git2 v0.21.0. dioxus-cli itself pins that dependency to a 0.20.x version on main, but auth-git2 v0.5.6 transitively pulls in the 0.21.0 version anyway.
Steps To Reproduce
Steps to reproduce the behavior:
- Try to install
dioxus-cli via cargo install.
Environment:
- Dioxus version: main, latest, 0.7.3, probably others too
- Rust version:
rustc 1.94.1 (e408947bf 2026-03-25)
- OS info: n/a
- App platform: n/a
Problem
Trying to install dioxus-cli via
cargo installcurrently fails duringauth-git2compilation withI personally reproduced this with
cargo install dioxus-clicargo install dioxus-cli@0.7.3cargo install --git https://github.com/DioxusLabs/dioxus.git dioxus-clion both a macOS and a Linux machine. I see no obvious way to freshly install Dioxus' CLI as of yesterday; this seems to be caused by the release of
git2 v0.21.0.dioxus-cliitself pins that dependency to a0.20.xversion on main, butauth-git2 v0.5.6transitively pulls in the0.21.0version anyway.Steps To Reproduce
Steps to reproduce the behavior:
dioxus-cliviacargo install.Environment:
rustc 1.94.1 (e408947bf 2026-03-25)