[package]
name = "git-transport"
version = "0.21.1"
repository = "https://github.com/Byron/gitoxide"
license = "MIT/Apache-2.0"
description = "A WIP crate of the gitoxide project dedicated to implementing the git transport layer"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
edition = "2018"
include = ["src/**/*", "CHANGELOG.md"]
[lib]
doctest = false
[features]
default = []
blocking-client = ["git-packetline/blocking-io"]
http-client = ["base64", "git-features/io-pipe", "blocking-client"]
http-client-curl = ["curl", "http-client"]
http-client-reqwest = ["reqwest", "http-client"]
async-client = ["git-packetline/async-io", "async-trait", "futures-lite", "futures-io", "pin-project-lite"]
serde1 = ["serde"]
[[test]]
name = "blocking-transport"
path = "tests/blocking-transport.rs"
required-features = ["blocking-client", "maybe-async/is_sync"]
[[test]]
name = "blocking-transport-http-only"
path = "tests/blocking-transport-http.rs"
required-features = ["http-client-curl", "maybe-async/is_sync"]
[[test]]
name = "async-transport"
path = "tests/async-transport.rs"
required-features = ["async-client"]
[dependencies]
git-features = { version = "^0.23.1", path = "../git-features" }
git-url = { version = "^0.10.1", path = "../git-url" }
git-sec = { version = "^0.4.2", path = "../git-sec" }
git-packetline = { version = "^0.13.1", path = "../git-packetline" }
serde = { version = "1.0.114", optional = true, default-features = false, features = ["std", "derive"]}
bstr = { version = "1.0.1", default-features = false, features = ["std"] }
thiserror = "1.0.26"
async-trait = { version = "0.1.51", optional = true }
futures-io = { version = "0.3.16", optional = true }
futures-lite = { version = "1.12.0", optional = true }
pin-project-lite = { version = "0.2.6", optional = true }
base64 = { version = "0.13.0", optional = true }
curl = { version = "0.4", optional = true, features = ["static-curl", "static-ssl", "zlib-ng-compat"] }
reqwest = { version = "0.11.12", optional = true, features = ["blocking"] }
async-std = { version = "1.12.0", optional = true }
document-features = { version = "0.2.0", optional = true }
[dev-dependencies]
git-pack = { path = "../git-pack" }
git-hash = { path = "../git-hash" }
async-std = { version = "1.9.0", features = ["attributes"] }
maybe-async = "0.2.6"
blocking = "1.0.2"
[package.metadata.docs.rs]
features = ["http-client-curl", "document-features", "serde1"]
rustdoc-args = ["--cfg", "docsrs"]