This library allows Controller Area Network (CAN) communications on Linux using the SocketCAN interfaces. This provides a network socket interface to the CAN bus.
Please see the documentation for details about the Rust API provided by this library.
After a period of some stagnation, this library is currently being upated for a v2.0 release to add the following features:
- CAN Flexible Data Rate (FD) support
- Proper handling of Extended CAN ID's
- Integration with the Rust Embedded HAL APIs for CAN
- Control of the CAN network interfaces via netlink with the neli crate.
- Tighter integration with libc and nix crates, including upstream
- Updated documentation and dependencies
Note that the master
branch will be in heavy flux over the next few weeks and should be assumed to be highly unstable.