# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "git2" version = "0.21.0" authors = [ "Josh Triplett ", "Alex Crichton ", ] build = false autolib = false autobins = false autoexamples = false autotests = false autobenches = false description = """ 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 = "https://docs.rs/git2" readme = "README.md" keywords = ["git"] categories = ["api-bindings"] license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang/git2-rs" [package.metadata.docs.rs] features = [ "https", "ssh", ] [features] cred = ["dep:url"] default = [] https = [ "libgit2-sys/https", "openssl-sys", "openssl-probe", "cred", ] ssh = [ "libgit2-sys/ssh", "cred", ] unstable = [] [lib] name = "git2" path = "src/lib.rs" [[example]] name = "add" path = "examples/add.rs" [[example]] name = "blame" path = "examples/blame.rs" [[example]] name = "cat-file" path = "examples/cat-file.rs" [[example]] name = "clone" path = "examples/clone.rs" required-features = [ "https", "ssh", ] [[example]] name = "diff" path = "examples/diff.rs" [[example]] name = "fetch" path = "examples/fetch.rs" required-features = [ "https", "ssh", ] [[example]] name = "file-latest-commit" path = "examples/file-latest-commit.rs" [[example]] name = "init" path = "examples/init.rs" [[example]] name = "log" path = "examples/log.rs" [[example]] name = "ls-remote" path = "examples/ls-remote.rs" required-features = [ "https", "ssh", ] [[example]] name = "pull" path = "examples/pull.rs" required-features = [ "https", "ssh", ] [[example]] name = "rev-list" path = "examples/rev-list.rs" [[example]] name = "rev-parse" path = "examples/rev-parse.rs" [[example]] name = "status" path = "examples/status.rs" [[example]] name = "tag" path = "examples/tag.rs" [[test]] name = "add_extensions" path = "tests/add_extensions.rs" [[test]] name = "end_to_end" path = "tests/end_to_end.rs" [[test]] name = "get_extensions" path = "tests/get_extensions.rs" [[test]] name = "global_state" path = "tests/global_state.rs" [[test]] name = "remove_extensions" path = "tests/remove_extensions.rs" [dependencies.bitflags] version = "2.1.0" [dependencies.libc] version = "0.2" [dependencies.libgit2-sys] version = "0.18.4" [dependencies.log] version = "0.4.8" [dependencies.url] version = "2.5.4" optional = true [dev-dependencies.clap] version = "4.4.13" features = ["derive"] [dev-dependencies.tempfile] version = "3.1.0" [dev-dependencies.time] version = "0.3.47" features = ["formatting"] [dev-dependencies.url] version = "2.5.4" [target.'cfg(all(unix, not(target_os = "macos")))'.dependencies.openssl-probe] version = "0.2" optional = true [target.'cfg(all(unix, not(target_os = "macos")))'.dependencies.openssl-sys] version = "0.9.45" optional = true [lints.rust.unexpected_cfgs] level = "warn" check-cfg = [ 'cfg(feature, values("unstable-sha256"))', 'cfg(feature, values("vendored-libgit2"))', 'cfg(feature, values("vendored-openssl"))', 'cfg(feature, values("zlib-ng-compat"))']