lib.rs 1.16 KB
Newer Older
1
2
3
4
5
6
7
8
// Copyright 2016 Kitware, Inc.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

Ben Boeckel's avatar
Ben Boeckel committed
9
10
11
#![warn(missing_docs)]

//! A library for communicating with Gitlab instances.
12
13

#[macro_use]
Ben Boeckel's avatar
Ben Boeckel committed
14
extern crate error_chain;
15

16
#[macro_use]
Ben Boeckel's avatar
Ben Boeckel committed
17
extern crate hyper;
18

Ben Boeckel's avatar
Ben Boeckel committed
19
#[macro_use]
Ben Boeckel's avatar
Ben Boeckel committed
20
extern crate log;
Ben Boeckel's avatar
Ben Boeckel committed
21

22
23
24
#[macro_use]
extern crate serde_derive;

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
mod crates {
    // public
    pub extern crate chrono;
    // pub extern crate error_chain;
    pub extern crate serde;
    pub extern crate serde_json;

    // private
    pub extern crate hyper;
    pub extern crate itertools;
    pub extern crate log;
    pub extern crate reqwest;
    pub extern crate url;
}

40
mod error;
41
42
#[macro_use]
mod macros;
43
44
mod gitlab;

45
pub mod systemhooks;
Ben Boeckel's avatar
Ben Boeckel committed
46
pub mod types;
47
pub mod webhooks;
48
pub mod hooks;
49

Ben Boeckel's avatar
Ben Boeckel committed
50
pub use error::*;
51
pub use gitlab::CommitStatusInfo;
52
pub use gitlab::MergeRequestStateFilter;
53
pub use gitlab::Gitlab;
54
pub use gitlab::GitlabBuilder;
55
pub use types::*;
56
57
58

#[cfg(test)]
mod test;