docs.rs failed to build git2_credentials-0.7.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
git2_credentials-0.13.0
git2_credentials
Provide credentials function to used with git2::RemoteCallbacks.credentials
Usage
use git2;
use CredentialHandler;
use tempfile;
let mut cb = new;
let git_config = open_default.unwrap;
let mut ch = new;
cb.credentials;
// clone a repository
let mut fo = new;
fo.remote_callbacks
.download_tags
.update_fetchhead;
let dst = tempdir.unwrap;
create_dir_all.unwrap;
new
.branch
.fetch_options
.clone.unwrap;
You can run the example via
You can provide custom UI (to ask password, passphrase) by providing a CredentialUI
. A default implementation (with dialoguer is provided.
Build
Credit
Code extracted from:
- cargo/utils.rs at master · rust-lang/cargo (search
with_authentication
)Cargo, a package manager for Rust.
- ffizer
ffizer is a files and folders initializer / generator. Create any kind (or part) of project from template.
- gpm/ssh.rs at master · aerys/gpm
Git-based package manager.