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
extern crate serde;

#[macro_use]
extern crate serde_derive;

extern crate serde_json;

pub mod actiondispatch;
pub mod xfstruct;
pub mod xfstate;
pub mod validation;
pub mod errors;
pub mod xfrunner;
pub mod dispatcher;

#[cfg(not(feature = "embedded"))]
pub use self::xfstate::*;

#[cfg(not(feature = "embedded"))]
pub use self::xfstruct::*;

#[cfg(not(feature = "embedded"))]
pub use self::validation::*;

#[cfg(not(feature = "embedded"))]
pub use self::xfrunner::*;

#[cfg(not(feature = "embedded"))]
pub use self::dispatcher::*;

#[cfg(not(feature = "embedded"))]
pub use self::actiondispatch::*;

// Embedded config
//

#[cfg(feature = "embedded")]
extern crate libc;

#[cfg(feature = "embedded")]
mod embed;

#[cfg(feature = "embedded")]
pub use self::embed::embed::*;