Skip to main content

linux_socketcan_iso_tp/
lib.rs

1//! Linux kernel ISO-TP socket backend.
2//!
3//! On Linux this provides a minimal wrapper around `CAN_ISOTP` sockets and implements the
4//! `can-isotp-interface` traits.
5//!
6//! On non-Linux targets this crate provides compile-time stubs so downstream crates can build
7//! with appropriate `cfg` gating.
8
9#[cfg(target_os = "linux")]
10mod linux;
11#[cfg(target_os = "linux")]
12pub use linux::*;
13
14#[cfg(not(target_os = "linux"))]
15mod non_linux;
16#[cfg(not(target_os = "linux"))]
17pub use non_linux::*;