Rustacean Station · Hands-On Engineering Podcasts · November 2026
The host asked how a team with a large C codebase should move to Rust. David says the biggest hurdle is cultural rather than technical, and recommends converting one module at a time.
…of agree with the way that the Rust compiler expects them to work. So there's lots of checks you need to do to ensure that what you're getting from the C world is good stuff, not corrupted stuff. But yeah, besides that, it works really well. In fact, it's surprisingly working surprisingly well.
…Rust because they see benefits going forward, right? They recognize that there's a lot of benefits for it. What would you recommend to them to do if they want to slowly, like over time, start to change each piece over? How would you recommend them to do that? How would you teach them to do that?
So I think there's going straight from, let's say, you have some massive piece of C code that exists and going straight to translating it to Rust has a few hurdles, of course, in a way. And not least the cultural hurdle, right? So you have people, and I've seen that throughout my life. You have excellent software engineers who've been developing C code for years and years and years. And these people write safe C code. They know the stuff inside and out. And so convincing these people to somehow depart from their comfort zone, which is C, and do things in Rust, is always a little bit of a hurdle, understandably. It's normal. It's human, I'd say. So I think going from C to Rust is something that is best done incrementally as opposed to just turn the page and everything goes rust. Because I think that could cause a lot of problem, more individual problem more than technical problems. So what I think a lot of people probably don't realize is that you could almost visualize C, Rust by me, as a superset of the C language. In other words, what you can do in C at the low level, you know, like declaring pointers, dereferencing…
Now, you did say that basically calling C from Rust is actually quite straightforward. I'm guessing that there may be some times where there may be like a tricky part to it, right? I mean, you did mention unsafe. Is there something that else that we should keep in mind? Like what would be like the…
that? So certain things in Rust are just not allowed, or certain things in C are expected to work one way, but they work a different way in Rust. So I'll give you an example, for instance. In C, commonly, if you try to do some operation, let's say you try to do a memory allocation, like some kind…
Now, I'm kind of curious about the, because we've had, I don't know how long it's been. I'm a little bit scared to even say the wrong number because I feel either be too high or too low. You know, we have decades, let's say, of stuff written in C, some stuff in C, but in any way, in C languages for…