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

//! Crate for communicating with the hue API

#[macro_use]
extern crate serde_derive;
#[cfg(feature = "ssdp")]
extern crate ssdp;

extern crate serde;
extern crate serde_json;
extern crate hyper;
#[cfg(feature = "nupnp")]
extern crate hyper_openssl;
#[macro_use]
extern crate error_chain;

pub use bridge::Bridge;
#[cfg(feature = "nupnp")]
pub use bridge::discover;
#[cfg(feature = "upnp")]
pub use bridge::discover_upnp;
pub use hue::LightCommand;

/// Errors that can occur in the crate
pub mod errors;
/// Handles all the communication with the bridge
pub mod bridge;
/// Structs mapping the different JSON-objects used with Hue API
pub mod hue;
mod json;