When trying to use a Cargo dependency straight from GitHub, an error was popping in the console:
failed to authenticate when downloading repository * attempted ssh-agent authentication, but no usernames succeeded: `git`
The solution was to create a ~/.cargo/config.toml
file, and then paste:
[net] git-fetch-with-cli = true