webthing/
lib.rs

1#![deny(missing_docs)]
2
3//! Implementation of an HTTP [Web Thing](https://webthings.io/api/).
4
5extern crate std;
6
7/// Action trait and base implementation.
8pub mod action;
9
10/// ActionGenerator trait and base implementation.
11pub mod action_generator;
12
13/// Event trait and base implementation.
14pub mod event;
15
16/// Property trait and base implementation.
17pub mod property;
18
19/// WebThingServer implementation.
20#[cfg(feature = "actix")]
21pub mod server;
22
23/// Thing trait and base implementation.
24pub mod thing;
25
26/// Utility functions.
27pub mod utils;
28
29pub use action::{Action, BaseAction};
30pub use action_generator::BaseActionGenerator;
31pub use event::{BaseEvent, Event};
32pub use property::{BaseProperty, Property};
33
34#[cfg(feature = "actix")]
35pub use server::{ThingsType, WebThingServer};
36
37pub use thing::{BaseThing, Thing, ThingContext};