git2 0.21.0

Bindings to libgit2 for interoperating with git repositories. This library is both threadsafe and memory safe and allows both reading and writing git repositories.
Documentation

Build #3316730 2026-05-18 16:07:15

# rustc version rustc 1.97.0-nightly (507271bc1 2026-05-17)

# docs.rs version docsrs 0.0.0 (e50152ed411bb913753b1dfd203f22cb8711f097 2026-05-17 )

# build log [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-w" "/opt/rustwide/workdir" "--user" "1001:1001" "909c7b5c11257e5479a59c26570381f9d6023c4bd559f1cb164193a5e3b06ade" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--features" "https ssh" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20260517-1.97.0-nightly-507271bc1\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: add, blame, cat-file, clone, diff, fetch, file-latest-commit, init, log, ls-remote, pull, rev-list, rev-parse, status, tag [INFO] [stderr] If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true` [INFO] [stderr] to the [[example]] target configuration of at least one example. [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Documenting git2 v0.21.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unresolved link to `ObjectFormat::Sha256` [INFO] [stderr] --> src/repo.rs:3622:27 [INFO] [stderr] | [INFO] [stderr] 3622 | /// Setting this to [`ObjectFormat::Sha256`] (requires `unstable-sha256`) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ the enum `ObjectFormat` has no variant or associated item named `Sha256` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `git2` (lib doc) generated 1 warning [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.22s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/git2/index.html [INFO] running `Command { std: "docker" "inspect" "909c7b5c11257e5479a59c26570381f9d6023c4bd559f1cb164193a5e3b06ade", kill_on_drop: false }`