The goal of this is to create a virtual ECU, which emulates basic features of our ECU firmware. This should help us in developing the rest of the software stack (LLServer, ECUI).
Note: This is still very much experimental and a work in progress.
add virtual socketcan interface:
sudo modprobe vcan
sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0The repository includes a CI script (ci-rust.sh) that runs all quality checks on the Rust implementation. This script is used both locally and in GitHub Actions
Run all checks:
./ci-rust.sh
# or explicitly
./ci-rust.sh allRun individual checks:
./ci-rust.sh build # Build the project
./ci-rust.sh test # Run tests
./ci-rust.sh fmt # Check code formatting
./ci-rust.sh clippy # Run clippy linterYou can fix formatting or linter issues by adding the -fix suffix to the command. e.g: ./ci-rust.sh clippy-fix