cansocket 0.1.2

Linux SocketCAN driver
Documentation

CANSocket

A safe Linux SocketCAN async wrapper with minimal dependencies. Utilises async-io to be cross compatible with many executors and implements embedded-can traits.

Virtual CAN device for testing

Examples and integration tests require a virtual device vcan0 to be created.

sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0

To skip the integration tests, pass the --lib flag to cargo.

cargo test --lib