zencan-common 0.0.4

Shared code for zencan-node and zencan-client
Documentation
//! Common functionality shared among other zencan crates.
//!
//! Most users will have no reason to depend on this crate directly, as it is re-exported by both
//! `zencan-node` and `zencan-client`.
#![cfg_attr(not(feature = "std"), no_std)]
#![warn(missing_docs, missing_copy_implementations)]
#![cfg_attr(docsrs, feature(doc_cfg))]

mod atomic_cell;
pub use atomic_cell::AtomicCell;
pub mod constants;
#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
pub mod device_config;
pub mod lss;
pub mod messages;
pub mod nmt;
#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
pub mod node_configuration;
pub mod node_id;
pub mod objects;
pub mod pdo;
pub mod sdo;
mod time_types;
pub mod traits;

#[cfg(all(feature = "socketcan", target_os = "linux"))]
mod socketcan;

#[cfg(all(feature = "socketcan", target_os = "linux"))]
#[cfg_attr(docsrs, doc(all(feature = "socketcan", target_os = "linux")))]
pub use socketcan::open_socketcan;

pub use arbitrary_int::{i24, u24};
pub use messages::{CanError, CanId, CanMessage};
pub use node_id::NodeId;
pub use time_types::{TimeDifference, TimeOfDay};