[package]
edition = "2021"
name = "grit-lib"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for the grit Git implementation"
readme = "README.md"
license = "MIT"
repository = "https://github.com/gitbutlerapp/grit"
[features]
http-ureq = [
"dep:ureq",
"dep:base64",
]
test-tools = []
[lib]
name = "grit_lib"
path = "src/lib.rs"
[[example]]
name = "cherry_pick"
path = "examples/cherry_pick.rs"
[[example]]
name = "commit_tree"
path = "examples/commit_tree.rs"
[[example]]
name = "ignore_match"
path = "examples/ignore_match.rs"
[[example]]
name = "index_add"
path = "examples/index_add.rs"
[[example]]
name = "merge_base"
path = "examples/merge_base.rs"
[[example]]
name = "odb_blob"
path = "examples/odb_blob.rs"
[[example]]
name = "pack_index"
path = "examples/pack_index.rs"
[[example]]
name = "repo_init_and_open"
path = "examples/repo_init_and_open.rs"
[[example]]
name = "rev_list"
path = "examples/rev_list.rs"
[[example]]
name = "rev_parse"
path = "examples/rev_parse.rs"
[[example]]
name = "walk_tree"
path = "examples/walk_tree.rs"
[[test]]
name = "credentials"
path = "tests/credentials.rs"
[[test]]
name = "matrix_completeness"
path = "tests/matrix_completeness.rs"
[[test]]
name = "matrix_credentials"
path = "tests/matrix_credentials.rs"
[[test]]
name = "matrix_fetch"
path = "tests/matrix_fetch.rs"
[[test]]
name = "matrix_packs"
path = "tests/matrix_packs.rs"
[[test]]
name = "matrix_push"
path = "tests/matrix_push.rs"
[[test]]
name = "matrix_sha256"
path = "tests/matrix_sha256.rs"
[[test]]
name = "negotiator_tag_tip"
path = "tests/negotiator_tag_tip.rs"
[[test]]
name = "transfer_local_fetch"
path = "tests/transfer_local_fetch.rs"
[[test]]
name = "transfer_local_push"
path = "tests/transfer_local_push.rs"
[[test]]
name = "transfer_maint"
path = "tests/transfer_maint.rs"
[[test]]
name = "transfer_pack"
path = "tests/transfer_pack.rs"
[[test]]
name = "transport_git_daemon"
path = "tests/transport_git_daemon.rs"
[[test]]
name = "transport_git_daemon_v2"
path = "tests/transport_git_daemon_v2.rs"
[[test]]
name = "transport_http"
path = "tests/transport_http.rs"
[[test]]
name = "transport_http_auth"
path = "tests/transport_http_auth.rs"
[[test]]
name = "transport_http_proxy_cookies"
path = "tests/transport_http_proxy_cookies.rs"
[[test]]
name = "transport_http_shallow"
path = "tests/transport_http_shallow.rs"
[[test]]
name = "transport_push"
path = "tests/transport_push.rs"
[[test]]
name = "transport_push_options"
path = "tests/transport_push_options.rs"
[[test]]
name = "transport_shallow"
path = "tests/transport_shallow.rs"
[[test]]
name = "transport_ssh"
path = "tests/transport_ssh.rs"
[[test]]
name = "transport_ssh_push"
path = "tests/transport_ssh_push.rs"
[[test]]
name = "transport_v2_adversarial"
path = "tests/transport_v2_adversarial.rs"
[dependencies.base64]
version = "0.22"
optional = true
[dependencies.encoding_rs]
version = "0.8.35"
[dependencies.filetime]
version = "0.2"
[dependencies.flate2]
version = "1"
[dependencies.hex]
version = "0.4"
[dependencies.icu_normalizer]
version = "2.0.0"
[dependencies.imara-diff]
version = "0.2"
features = ["unified_diff"]
[dependencies.libc]
version = "0.2"
[dependencies.merge3]
version = "0.2"
[dependencies.regex]
version = "1"
[dependencies.sha1]
version = "0.11"
[dependencies.sha2]
version = "0.11"
[dependencies.shell-words]
version = "1.1"
[dependencies.similar]
version = "3"
[dependencies.tempfile]
version = "3"
[dependencies.thiserror]
version = "2"
[dependencies.time]
version = "0.3"
features = [
"formatting",
"parsing",
]
[dependencies.unicode-width]
version = "0.2"
[dependencies.ureq]
version = "3.3"
optional = true
[dependencies.url]
version = "2.5"
[dev-dependencies]
[target."cfg(unix)".dependencies.nix]
version = "0.31"
features = [
"fs",
"signal",
"user",
"poll",
"feature",
]
default-features = false
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_Security_Credentials",
"Win32_System_Console",
]
[lints.clippy]
expect_used = "deny"
unwrap_used = "deny"
[lints.rust]
unsafe_code = "allow"