1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Deny warnings, except in dev mode
#![deny(warnings)]
// #![deny(missing_docs)]
#![cfg_attr(feature="dev", warn(warnings))]

// Stuff we want clippy to ignore
#![cfg_attr(feature="cargo-clippy", allow(
        cyclomatic_complexity,
        too_many_arguments,
        ))]

extern crate chrono;
extern crate ignore;
extern crate liquid;
extern crate pulldown_cmark;
extern crate regex;
extern crate rss;
extern crate walkdir;
extern crate yaml_rust;
extern crate serde;
extern crate serde_yaml;

extern crate itertools;

#[cfg(all(feature="syntax-highlight", not(windows)))]
extern crate syntect;

#[macro_use]
extern crate log;

#[macro_use]
extern crate clap;

#[macro_use]
extern crate error_chain;

#[macro_use]
extern crate lazy_static;

pub use cobalt::build;
pub use error::Error;
pub use config::Config;
pub use config::Dump;
pub use new::{create_new_project, create_new_document};

pub mod error;

mod cobalt;
mod config;
mod document;
mod new;
mod slug;
mod files;

#[cfg(feature="syntax-highlight")]
mod syntax_highlight;