White Paper
From C++ to Rust
Optimising vSomeIP’s Log Module for Improved Efficiency
As vehicle software systems grow more complex, memory safety and performance are no longer nice-to-haves. They’re critical requirements!
But how can OEMs and suppliers introduce modern, safer languages like Rust without disrupting existing C++ architectures?
In this white paper, you’ll learn how Critical Software tackled this exact challenge by refactoring the logging module of vSomeIP, a widely adopted open-source middleware implementation developed with the BMW Group.
You’ll discover:
- Why the original C++ implementation struggled with performance and thread contention
- How Rust’s concurrency model eliminates bottlenecks while improving safety
- The tools that make Rust–C++ interoperability possible (like cxx and corrosion)
- Benchmark results comparing C++, refactored C++, and Rust implementations
- Why DLT logging presents unique performance challenges—and how to manage them
- How this approach serves as a blueprint for introducing Rust in safety-critical environments