| 1 |
[package] |
| 2 |
name = "git2" |
| 3 |
version = "0.21.0" |
| 4 |
authors = ["Josh Triplett <[email protected]>", "Alex Crichton <[email protected]>"] |
| 5 |
license = "MIT OR Apache-2.0" |
| 6 |
readme = "README.md" |
| 7 |
keywords = ["git"] |
| 8 |
repository = "https://github.com/rust-lang/git2-rs" |
| 9 |
documentation = "https://docs.rs/git2" |
| 10 |
description = """ |
| 11 |
Bindings to libgit2 for interoperating with git repositories. This library is |
| 12 |
both threadsafe and memory safe and allows both reading and writing git |
| 13 |
repositories. |
| 14 |
""" |
| 15 |
categories = ["api-bindings"] |
| 16 |
edition = "2021" |
| 17 |
|
| 18 |
[dependencies] |
| 19 |
url = { version = "2.5.4", optional = true } |
| 20 |
bitflags = "2.1.0" |
| 21 |
libc = "0.2" |
| 22 |
log = "0.4.8" |
| 23 |
libgit2-sys = { path = "libgit2-sys", version = "0.18.4" } |
| 24 |
|
| 25 |
[target."cfg(all(unix, not(target_os = \"macos\")))".dependencies] |
| 26 |
openssl-sys = { version = "0.9.45", optional = true } |
| 27 |
openssl-probe = { version = "0.1", optional = true } |
| 28 |
|
| 29 |
[dev-dependencies] |
| 30 |
clap = { version = "4.4.13", features = ["derive"] } |
| 31 |
time = { version = "0.3.47", features = ["formatting"] } |
| 32 |
tempfile = "3.1.0" |
| 33 |
url = "2.5.4" |
| 34 |
|
| 35 |
[features] |
| 36 |
unstable = [] |
| 37 |
# Experimental SHA256 OID support, |
| 38 |
# reflecting upstream libgit2's GIT_EXPERIMENTAL_SHA256. |
| 39 |
# |
| 40 |
# This is an ABI-breaking change. |
| 41 |
# Future releases with this feature may introduce breakages without notice |
| 42 |
# Use at your own risk. |
| 43 |
# |
| 44 |
# Library authors: |
| 45 |
# DO NOT enable this feature by default in your dependencies. |
| 46 |
# Due to Cargo's additive features, |
| 47 |
# downstream users cannot deactivate it once enabled. |
| 48 |
# |
| 49 |
# NOTE: libgit2's builtin SHA256 implementation is not thread-safe. |
| 50 |
# Enable the `https` feature to route hashing through thread-safe OpenSSL impl. |
| 51 |
# See https://github.com/rust-lang/git2-rs/issues/1255. |
| 52 |
unstable-sha256 = ["libgit2-sys/unstable-sha256"] |
| 53 |
default = [] |
| 54 |
ssh = ["libgit2-sys/ssh", "cred"] |
| 55 |
https = ["libgit2-sys/https", "openssl-sys", "openssl-probe", "cred"] |
| 56 |
# Include support for credentials, which pulls in the `url` crate and all its dependencies |
| 57 |
cred = ["dep:url"] |
| 58 |
vendored-libgit2 = ["libgit2-sys/vendored"] |
| 59 |
vendored-openssl = ["openssl-sys/vendored", "libgit2-sys/vendored-openssl"] |
| 60 |
zlib-ng-compat = ["libgit2-sys/zlib-ng-compat"] |
| 61 |
|
| 62 |
[workspace] |
| 63 |
members = ["systest", "git2-curl"] |
| 64 |
|
| 65 |
[package.metadata.docs.rs] |
| 66 |
features = ["https", "ssh"] |
| 67 |
|
| 68 |
[[example]] |
| 69 |
name = "clone" |
| 70 |
required-features = ["https", "ssh"] |
| 71 |
|
| 72 |
[[example]] |
| 73 |
name = "fetch" |
| 74 |
required-features = ["https", "ssh"] |
| 75 |
|
| 76 |
[[example]] |
| 77 |
name = "ls-remote" |
| 78 |
required-features = ["https", "ssh"] |
| 79 |
|
| 80 |
[[example]] |
| 81 |
name = "pull" |
| 82 |
required-features = ["https", "ssh"] |