1#![cfg_attr(
14 all(doc, feature = "document-features"),
15 doc = ::document_features::document_features!()
16)]
17#![cfg_attr(all(doc, feature = "document-features"), feature(doc_cfg, doc_auto_cfg))]
18#![deny(missing_docs, rust_2018_idioms, unsafe_code)]
19
20#[cfg(feature = "handshake")]
24pub type AuthenticateFn<'a> = Box<dyn FnMut(gix_credentials::helper::Action) -> gix_credentials::protocol::Result + 'a>;
25
26#[derive(PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone, Copy)]
28pub enum Command {
29 LsRefs,
31 Fetch,
33}
34pub mod command;
35
36#[cfg(feature = "async-client")]
37pub use async_trait;
38#[cfg(feature = "async-client")]
39pub use futures_io;
40#[cfg(feature = "async-client")]
41pub use futures_lite;
42#[cfg(feature = "handshake")]
43pub use gix_credentials as credentials;
44pub use gix_transport as transport;
46pub use maybe_async;
47
48pub mod fetch;
50#[cfg(any(feature = "blocking-client", feature = "async-client"))]
51pub use fetch::function::fetch;
52
53mod remote_progress;
54pub use remote_progress::RemoteProgress;
55
56#[cfg(all(feature = "blocking-client", feature = "async-client"))]
57compile_error!("Cannot set both 'blocking-client' and 'async-client' features as they are mutually exclusive");
58
59pub mod handshake;
61#[cfg(any(feature = "blocking-client", feature = "async-client"))]
62#[cfg(feature = "handshake")]
63pub use handshake::function::handshake;
64
65pub mod ls_refs;
67#[cfg(any(feature = "blocking-client", feature = "async-client"))]
68pub use ls_refs::function::ls_refs;
69
70mod util;
71pub use util::*;