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
//! Runtime library for flow execution. This will be linked with code generated from a flow definition
//! to enable it to be compiled and ran as a native program.
#[macro_use]
extern crate error_chain;
extern crate flow_impl;
extern crate instant;
#[macro_use]
extern crate log;
extern crate multimap;
extern crate serde;
#[macro_use]
extern crate serde_derive;
#[macro_use]
extern crate serde_json;
#[cfg(not(target_arch = "wasm32"))]
extern crate wasmi;

pub mod info;
pub mod url;
pub mod coordinator;
pub mod lib_manifest;
pub mod function;
pub mod manifest;
pub mod input;
pub mod loader;
pub mod provider;

mod execution;
mod wasm;
mod run_state;

#[cfg(feature = "metrics")]
mod metrics;

#[cfg(feature = "debugger")]
mod debugger;
#[cfg(feature = "debugger")]
pub mod debug_client;

// We'll put our errors in an `errors` module, and other modules in
// this crate will `use errors::*;` to get access to everything
// `error_chain!` creates.
pub mod errors {
    // Create the Error, ErrorKind, ResultExt, and Result types
    error_chain! {
    }
}

error_chain! {
    types {
        Error, ErrorKind, ResultExt, Result;
    }

    foreign_links {
        Io(std::io::Error);
        Serde(serde_json::error::Error);
        Recv(std::sync::mpsc::RecvError);
    }
}