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
#![deny(missing_docs)]

//! Implementation of an HTTP [Web Thing](https://iot.mozilla.org/wot/).

extern crate actix;
extern crate actix_net;
extern crate actix_web;
extern crate chrono;
extern crate get_if_addrs;
extern crate hostname;
extern crate libmdns;
#[cfg(feature = "ssl")]
extern crate openssl;
#[macro_use]
extern crate serde_json;
extern crate uuid;
extern crate valico;

/// Action trait and base implementation.
pub mod action;

/// Event trait and base implementation.
pub mod event;

/// Property trait and base implementation.
pub mod property;

/// WebThingServer implementation.
pub mod server;

/// Thing trait and base implementation.
pub mod thing;

/// Utility functions.
pub mod utils;

pub use action::{Action, BaseAction};
pub use event::{BaseEvent, Event};
pub use property::{BaseProperty, Property};
pub use server::{ThingsType, WebThingServer};
pub use thing::{BaseThing, Thing};