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
//! From the [LCM Homepage](http://lcm-proj.github.io/):
//! >
//! LCM is a set of libraries and tools for message passing and data marshalling,
//! targeted at real-time systems where high-bandwidth and low latency are critical.
//! It provides a publish/subscribe message passing model
//! and automatic marshalling/unmarshalling code generation
//! with bindings for applications in a variety of programming languages.
//!
//! This crate provides Rust support for LCM.
//! See also the `lcm-gen` crate, for running `lcmgen` at build time.

extern crate byteorder;

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

#[cfg(not(feature = "log"))]
macro_rules! trace { ($($a:tt)*) => ( () ) }
#[cfg(not(feature = "log"))]
macro_rules! error { ($($a:tt)*) => ( () ) }

mod ffi;
mod lcm;
pub use lcm::Lcm;

mod message;
pub use message::Message;