Cargo Features
gix-transport has no features set by default.
[dependencies]
gix-transport = { version = "0.49.1", features = ["blocking-client", "http-client", "http-client-curl", "http-client-curl-rust-tls", "http-client-reqwest", "http-client-reqwest-rust-tls", "http-client-reqwest-rust-tls-trust-dns", "http-client-reqwest-native-tls", "http-client-insecure-credentials", "async-client", "serde", "async-std", "document-features"] }
- blocking-client http-client?
-
Mutually Exclusive Client
The client portion of transport can be blocking or async. If none is selected, it will be missing entirely. Specifying both causes a compile error, preventing the use of
--all-features.If set, blocking implementations of the typical git transports become available in
crate::clientEnables blocking-io of gix-packetline
Affects
capabilities::recv,client::git,traits::TransportWithoutIO.request… - http-client http-client-curl? http-client-reqwest? = base64, blocking-client, gix-credentials
-
Implies
blocking-client, and adds support for the http and https transports.Enables io-pipe of gix-features
Affects
http::connect_http,blocking_io::http… - http-client-curl http-client-curl-rust-tls? = curl, http-client
-
Implies
http-client, and adds support for the http and https transports using the Rust bindings forlibcurl.Affects
http::curl,http::Impl,http::connect,http::redirect… - http-client-curl-rust-tls = http-client-curl
-
Implies
http-client-curland enablesrustlsfor creatinghttps://connections.for http-client-curl. Additional configuration should be performed on higher levels of the dependency tree.
- http-client-reqwest http-client-reqwest-native-tls? http-client-reqwest-rust-tls? http-client-reqwest…tls-trust-dns? = http-client, reqwest
-
Implies
http-clientand adds support for http and https transports using the blocking version ofreqwest.Affects
http::reqwest,http::Impl,http::connect,http::redirect… - http-client-reqwest-rust-tls = http-client-reqwest
-
Stacks with
blocking-http-transport-reqwestand enableshttps://via therustlscrate.Enables rustls-tls of reqwest
for http-client-reqwest
all but the 'default-tls' feature - http-client-reqwest-rust-tls-trust-dns = http-client-reqwest
-
Stacks with
blocking-http-transport-reqwestand enableshttps://via therustlscrate. This also makes use oftrust-dnsto avoidgetaddrinfo, but note it comes with its own problems.Enables rustls-tls and trust-dns of reqwest
- http-client-reqwest-native-tls = http-client-reqwest
-
Stacks with
blocking-http-transport-reqwestand enableshttps://via thenative-tlscrate.Enables default-tls of reqwest
- http-client-insecure-credentials
-
Allows sending credentials over cleartext HTTP. For testing purposes only.
- async-client = async-trait, futures-io, futures-lite, pin-project-lite
-
If set, an async implementations of the git transports becomes available in
crate::client. Suitable for implementing your own transports while using git's way of communication, typically in conjunction with a custom server. Note that the blocking client has a wide range of available transports, with the async version of it supporting only the TCP basedgittransport leaving you with the responsibility to providing such an implementation offutures-io::AsyncRead/AsyncWriteyourself.Enables async-io of gix-packetline
Affects
capabilities::recv,client::git,traits::TransportWithoutIO.request… - serde
-
Other
Data structures implement
serde::Serializeandserde::Deserialize.Enables serde
Features from optional dependencies
In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- gix-credentials http-client?
- async-trait async-client?
-
Enables async-trait
for async-client
- futures-io async-client?
- futures-lite async-client?
- pin-project-lite async-client?
- base64 http-client?
-
Enables base64
for http-client
- curl http-client-curl? http-client-curl-rust-tls?
- reqwest http-client-reqwest? http-client-reqwest-native-tls? http-client-reqwest-rust-tls? http-client-reqwest…tls-trust-dns?
- async-std implicit feature
-
Enables async-std
If used in conjunction with
async-client, theconnect()method will become available along with supporting the git protocol over TCP, where the TCP stream is created using this crate. - document-features implicit feature
-
Enables document-features
document-features:
Extract documentation for the feature flags from comments in Cargo.toml