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))]
18#![deny(missing_docs, unsafe_code)]
19
20#[cfg(feature = "handshake")]
21use gix_error::Result;
22
23#[cfg(feature = "handshake")]
27pub type AuthenticateFn<'a> =
28 Box<dyn FnMut(gix_credentials::helper::Action) -> Result<Option<gix_credentials::protocol::Outcome>> + 'a>;
29
30#[derive(PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone, Copy)]
32pub enum Command {
33 LsRefs,
35 Fetch,
37}
38pub mod command;
39
40#[cfg(any(feature = "blocking-client", feature = "async-client"))]
42pub mod bisync {
43 #[cfg(all(feature = "async-client", not(feature = "blocking-client")))]
44 pub use gix_macros::{discard as only_sync, keep as bisync, keep as only_async};
45 #[cfg(feature = "blocking-client")]
46 pub use gix_macros::{discard as only_async, keep as only_sync, sync as bisync};
47
48 pub const SYNC: bool = cfg!(feature = "blocking-client");
50 pub const ASYNC: bool = !SYNC;
52}
53#[cfg(feature = "async-client")]
54pub use async_trait;
55#[cfg(feature = "async-client")]
56pub use futures_io;
57#[cfg(feature = "async-client")]
58pub use futures_lite;
59#[cfg(feature = "handshake")]
60pub use gix_credentials as credentials;
61pub use gix_transport as transport;
63
64pub mod fetch;
66#[cfg(any(feature = "blocking-client", feature = "async-client"))]
67pub use fetch::function::fetch;
68
69mod remote_progress;
70pub use remote_progress::RemoteProgress;
71
72pub mod handshake;
74#[cfg(any(feature = "blocking-client", feature = "async-client"))]
75#[cfg(feature = "handshake")]
76pub use handshake::function::handshake;
77#[cfg(feature = "handshake")]
78pub use handshake::hero::Handshake;
79
80pub mod ls_refs;
82#[cfg(any(feature = "blocking-client", feature = "async-client"))]
83pub use ls_refs::function::LsRefsCommand;
84
85mod util;
86pub use util::*;