Skip to content

git2 v0.21.0 breaks CLI installation #5572

@MaximilianAzendorf

Description

@MaximilianAzendorf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions