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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#![cfg_attr(feature="clippy", feature(plugin))]
#![cfg_attr(feature="clippy", plugin(clippy))]
#![warn(missing_copy_implementations,
missing_debug_implementations,
missing_docs,
trivial_numeric_casts,
unsafe_code,
unused_extern_crates,
unused_import_braces,
unused_qualifications)]
#![cfg_attr(feature="clippy", warn(cast_possible_truncation))]
#![cfg_attr(feature="clippy", warn(cast_possible_wrap))]
#![cfg_attr(feature="clippy", warn(cast_precision_loss))]
#![cfg_attr(feature="clippy", warn(cast_sign_loss))]
#![cfg_attr(feature="clippy", warn(missing_docs_in_private_items))]
#![cfg_attr(feature="clippy", warn(mut_mut))]
#![cfg_attr(feature="clippy", warn(print_stdout))]
#![cfg_attr(all(not(test), feature="clippy"), warn(result_unwrap_used))]
#![cfg_attr(feature="clippy", warn(wrong_pub_self_convention))]
#![deny(warnings)]
#![cfg_attr(feature = "serde_derive", feature(proc_macro))]
#![recursion_limit = "1024"]
extern crate colored;
extern crate compose_yml;
#[cfg(test)]
extern crate env_logger;
#[macro_use]
extern crate error_chain;
extern crate glob;
extern crate handlebars;
extern crate hashicorp_vault as vault;
extern crate includedir;
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate log;
extern crate phf;
#[cfg(test)]
extern crate rand;
extern crate rayon;
extern crate retry;
extern crate rustc_serialize;
extern crate semver;
extern crate serde;
#[cfg(feature = "serde_derive")]
#[macro_use]
extern crate serde_derive;
extern crate serde_yaml;
extern crate shlex;
extern crate url;
pub use default_tags::DefaultTags;
pub use errors::*;
pub use project::{PodOrService, Project, ProjectConfig, Pods, Targets};
pub use pod::{Pod, PodType, TargetFiles, AllFiles};
pub use sources::{Sources, Source};
pub use sources::Iter as SourceIter;
pub use target::Target;
pub use util::err;
#[macro_use]
mod util;
pub mod args;
#[macro_use]
pub mod command_runner;
pub mod cmd;
mod default_tags;
pub mod dir;
mod errors;
mod ext;
pub mod hook;
pub mod plugins;
mod pod;
mod project;
mod serde_helpers;
mod service_locations;
mod sources;
mod target;
mod template;
mod data {
include!(concat!(env!("OUT_DIR"), "/data.rs"));
}
pub fn version() -> &'static semver::Version {
lazy_static! {
static ref VERSION: semver::Version =
semver::Version::parse(env!("CARGO_PKG_VERSION"))
.expect("package version should be a valid semver");
}
&VERSION
}