zencan_common/
lib.rs

1//! Common functionality shared among other zencan crates.
2//!
3//! Most users will have no reason to depend on this crate directly, as it is re-exported by both
4//! `zencan-node` and `zencan-client`.
5#![cfg_attr(not(feature = "std"), no_std)]
6#![warn(missing_docs, missing_copy_implementations)]
7#![cfg_attr(docsrs, feature(doc_cfg))]
8
9mod atomic_cell;
10pub use atomic_cell::AtomicCell;
11pub mod constants;
12#[cfg(feature = "std")]
13#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
14pub mod device_config;
15pub mod lss;
16pub mod messages;
17pub mod node_id;
18pub mod objects;
19pub mod sdo;
20pub mod traits;
21
22#[cfg(feature = "socketcan")]
23mod socketcan;
24
25#[cfg(feature = "socketcan")]
26#[cfg_attr(docsrs, doc(cfg(feature = "socketcan")))]
27pub use socketcan::open_socketcan;
28
29pub use node_id::NodeId;
30
31pub use messages::{CanError, CanId, CanMessage};