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

//! Implementation of an HTTP [Web Thing](https://webthings.io/api/).

extern crate std;

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

/// ActionGenerator trait and base implementation.
pub mod action_generator;

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

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

/// WebThingServer implementation.
#[cfg(feature = "actix")]
pub mod server;

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

/// Utility functions.
pub mod utils;

pub use action::{Action, BaseAction};
pub use action_generator::BaseActionGenerator;
pub use event::{BaseEvent, Event};
pub use property::{BaseProperty, Property};

#[cfg(feature = "actix")]
pub use server::{ThingsType, WebThingServer};

pub use thing::{BaseThing, Thing, ThingContext};