gitlab/
lib.rs

1// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
2// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
3// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
4// option. This file may not be copied, modified, or distributed
5// except according to those terms.
6
7// TODO: Document API entities.
8// #![warn(missing_docs)]
9// XXX(rust-1.66)
10#![allow(clippy::uninlined_format_args)]
11
12//! A library for communicating with Gitlab instances.
13
14#[macro_use]
15#[cfg(not(feature = "_nohooks"))]
16mod macros;
17#[cfg(feature = "client_api")]
18mod gitlab;
19
20pub mod hooktypes;
21
22#[deprecated(since = "0.1705.1", note = "stable hook APIs are not feasible")]
23#[cfg(not(feature = "_nohooks"))]
24pub mod hooks;
25#[deprecated(since = "0.1705.1", note = "stable hook APIs are not feasible")]
26#[cfg(not(feature = "_nohooks"))]
27pub mod systemhooks;
28#[deprecated(since = "0.1705.1", note = "stable hook APIs are not feasible")]
29#[cfg(not(feature = "_nohooks"))]
30pub mod webhooks;
31
32#[cfg(feature = "client_api")]
33pub mod api;
34#[cfg(feature = "client_api")]
35mod auth;
36
37#[cfg(feature = "client_api")]
38pub use crate::auth::AuthError;
39#[cfg(feature = "client_api")]
40pub use crate::gitlab::{
41    AsyncGitlab, Gitlab, GitlabBuilder, GitlabError, ImpersonationClient, RestError,
42};
43
44#[cfg(test)]
45mod test;