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
#![forbid(unsafe_code)]
#![deny(
missing_copy_implementations,
missing_debug_implementations,
missing_docs,
trivial_casts,
trivial_numeric_casts,
unused_import_braces
)]
#![deny(clippy::use_self, clippy::wildcard_dependencies)]
#![warn(unused_qualifications)]
#![warn(
clippy::print_stdout,
clippy::pub_enum_variant_names,
clippy::used_underscore_binding,
clippy::wrong_self_convention,
clippy::wrong_pub_self_convention
)]
#[cfg(feature = "use_serde")]
#[cfg_attr(feature = "use_serde", macro_use)]
extern crate serde_derive;
pub use deoxy_core::*;
pub mod actix {
pub use actix_web::actix::{
Actor, Addr, Arbiter, AsyncContext, Context, Handler as Handle, Message as ActixMessage,
SpawnHandle, System,
};
}
mod comm;
mod config;
pub mod mail;
mod motor;
pub(crate) mod pin;
mod pump;
#[cfg(feature = "server")]
pub mod server;
pub use self::{
comm::{
Coordinator, Error as CoordError, Message as CoordMessage, State as ExecState, Status,
StatusMessage, Update,
},
config::{Config, MotorConfig, PumpConfig},
motor::{Message as MotorMessage, Motor},
pin::{Error as PinError, Out, Pin, Pwm},
pump::{Direction as PumpDirection, Message as PumpMessage, Pump},
};
#[cfg(not(feature = "server"))]
pub use self::comm::tui::Tui;