Validate whether Rust could improve software reliability compared to C++
Rust in Industrial IoT: Replacing Legacy C++ in a Pilot Project For Asset Tracking Provider
An Australian mining tech provider wanted to improve the reliability of its C++ telemetry modules. We built a Rust-based pilot module for one sensor group, showing gains in both stability and engineering speed.
Faster module development
Uptime
Months Rust module delivered
“Our client was exploring Rust as a safer alternative to C++. A Rust asset tracking module we built let them see, in production, how much it can improve reliability and speed up engineering.”
– Mykhailo Maidan, CTO at Yalantis
Consider migrating to Rust? We’ll help you do that pain-free.
A faster, safer alternative to legacy C++ ecosystem wanted
Client:
Global mining technology provider (NDA)
Headquarters:
Australia
Industry:
Industrial IoT / Mining fleet management
Partnership:
January–May 2025
Team:
Rust Developer
Tech Lead
Project Manager
Business Analyst
Services:
Rust is considered the next natural step in systems programming. But how do you prove it on real production code without breaking a working system?
This question came to the CTO of a company building tech that tracks mining trucks in real time. Their C++ telemetry systems did the job, but were unstable, requiring constant bug fixes.
The CTO considered migration from C++ to Rust because the latter promised:
→ fewer bugs from memory and safety issues
→ higher reliability, crucial for machinery running 24/7
→ simpler tooling than their current C++ setup
→ faster delivery of new modules, thanks to clearer abstractions and fewer low-level errors
To help them validate Rust’s potential, we teamed up to build a pilot Rust module for one group of sensors.
The results did not disappoint.
Client:
Global mining technology provider (NDA)
Headquarters:
Australia
Industry:
Industrial IoT / Mining fleet management
Partnership:
January–May 2025
Team:
Rust Developer
Tech Lead
Project Manager
Business Analyst
Services:
A Rust pilot project of the telemetry module for a mining truck
Core telemetry flow in Rust
A Rust service on Linux that handles a proprietary communication protocol, connects to internal buses, validates messages, and publishes clean telemetry into the fleet system.
Safe Rust–C++ interoperability
A Rust FFI layer wrapped around existing C++ libraries to enable safe calls into legacy code, while avoiding common memory issues in C++.
Automated testing
A Python-based simulator that reproduces real sensor traffic, timing patterns, and edge cases to power automated and manual QA.
Documentation and knowledge transfer
A set of Rust guidelines mapped to the client’s C++ workflows. Based on code reviews, it covers memory safety, module structure, and best practices.
How the client validated Rust in production via a pilot project
To help the client evaluate Rust against their legacy C++ modules, we launched a pilot that focused on a single telemetry module and integrated with their existing C++ libraries and internal data buses. The whole process (which included building the testing simulator), took us 3 months.
Define scope and design the architecture
We narrowed the pilot to one sensor group on a single truck using a proprietary protocol – enough to measure stability and engineering impact.
Together with the client, we mapped all integration points:
- their internal sensor, alarm, and fleet buses
- shared-memory IPC
- the C++ libraries the new module needed to call
Based on this, we designed the module’s data flow, state machine, message lifecycle, and a safe Rust–C++ FFI layer that would wrap their existing libraries.
Implement the telemetry flow and error-handling logic
We built the full Rust pipeline for message parsing, CRC checks, retries, and publishing data into the fleet system.
The module connected to the client’s sensor, alarm and fleet buses, and followed the same operational rules as their C++ modules. Rust’s safety guarantees helped eliminate many of the memory-related issues that previously caused instability.
Build a Python simulator for validating performance
Mining-truck sensors and onboard hardware weren’t always accessible, and the proprietary protocol required precise timing and edge-case handling. That’s why we built a Python simulator to reproduce real sensor traffic. It generated both valid and faulty sensor traffic to exercise the full Rust flow: parsing, retries, CRC checks, and publishing.
We tested the module under different load patterns, failure scenarios, and protocol variations. The pilot demonstrated cleaner behavior under fault conditions and reduced memory-related bugs.
Transfer Rust knowledge to the client’s engineering team
One of the CTO’s goals was to understand whether adopting Rust could improve velocity of their large in-house team. Several engineers were upskilling, and our Rust pilot project proved practical for them.
Through code reviews and documentation that mapped Rust concepts to C++ workflows, we helped the team understand how to develop and maintain Rust-based modules. This equipped them to continue expanding Rust across their 70+ existing modules in future.
How we solved the client’s challenges
Built a production-grade Rust module for one sensor group to benchmark reliability
Delivered Rust code, architecture, and guidelines through code reviews
Understand if Rust could speed up delivery for in-house engineering team
Integrated the module with via Rust–C++ FFI layer
Learn how Rust would integrate with existing C++ libraries and data buses
Introduced a hardware-independent testing environment
Test Rust safely before committing to rewriting dozens of modules
Higher runtime stability
Rust removed many memory-related bugs that caused instability in C++, reducing risk of issues in a 24/7 mining environment.
20%+ faster module delivery
The Rust pilot required 20%+ less engineering effort than a comparable C++ module the client was building previously.
Foundation to adopt Rust in 70+ modules
The client confirmed the pilot met all expectations and began evaluating how Rust could replace 70 legacy modules over time.
Client’s Review
We appreciated that Yalantis not only developed the digital labels end to end. They also guided us at every step, including manufacturing.
Head of Clinical Supply Chain
AIoT solution with predictive maintenance for a logistics company
Real-time tracking and predictive analytics for heavy-duty vehicle fleets to prevent technical failures and reduce downtime.
IoT network management platform for RAKwireless
Cloud-based platform for remote configuration and secure firmware updates across global industrial IoT networks.
Industrial IoT energy consumption optimization
Industrial IoT energy consumption optimization Intelligent monitoring system identifying power usage waste and operational bottlenecks across large-scale production lines.
IoT infrastructure management
IoT infrastructure management High-load backend infrastructure ensuring seamless data lifecycles and reliable connectivity for diverse sensor networks.
Discover how we turned an 8-week manual process into a 24-hour digital update
Be our next success story. Share details about your project and book a call with us to discuss your goals.
From medical devices to industrial automation — we deliver complete enterprise solutions with regulatory compliance built-in. Everything under one roof.
Our offices
Poland
123 al. Jerozolimskie, Warsaw, 00-001
Cyprus
8 Athinon Street, Larnaca, 6023
Estonia
12 Parda, Tallinn, 10151
USA
1080 Ximeno Ave, Long Beach, CA 90804
Germany
Marienplatz 22, Munich, 80331
FAQ
-
Why did Rust speed up development compared to C++?
Rust prevented many of the memory and safety issues that slowed the client’s C++ work down. One Rust engineer was able to deliver the module over 20% faster than similar modules the client had previously built in C++, thanks to fewer defects, clearer abstractions, and less debugging.
-
How did you ensure safe integration with legacy C++?
We created a Rust FFI layer that wrapped the client’s existing C++ libraries. This allowed the new module to reuse legacy logic while letting Rust enforce safety, preventing the memory issues common in their C++ modules.
-
How was proprietary sensor behavior tested without hardware?
We built a Python simulator that reproduced real sensor traffic, timing patterns, and edge cases. It let the team fully test the Rust module without relying on physical devices and became the main tool for automated and manual QA.
-
What contributed to the 99.99% uptime?
Rust’s strict safety model eliminated entire categories of memory-related bugs, while the module’s state machine, CRC checks, and retry logic handled errors predictably. This project validates that Rust for industrial IoT asset tracking produces cleaner runtime behavior compared to the client’s C++ modules.
-
Can your approach be reused across other modules?
Yes. Our Rust pilot for legacy systems established a clear architecture, testing approach, and Rust–C++ interoperability pattern that the client can reuse across their 70+ modules. The guidelines and code reviews we delivered help their engineers replicate the same design.
Let’s Start from call scheduling
- Schedule a call
- We collect your requirements
- We offer a solution
- We succeed together!
We are open for partnerships too
Check out our refferal program. Find out all benefits.