Hi,
I’m working on a debugger called ProDBG (over here https://github.com/emoon/ProDBG) it’s mostly written in C++ (with a bunch of C also)
I have considered moving a majority of my own code over to Rust instead but I’m a bit unsure of the best approach for this.
Currently I’m using the Tundra build system to build all the code (Can be found here https://github.com/deplinenoise/tundra)
I think my approach would be to move things in steps over to Rust instead of just trying to rewrite everything. For example the Plugins for the debugger uses a C API (not C++) in order to make it easy to interface with other langs so I can perhaps move some of that over first.
Now would it be best to.
-
Move away from Tundra to use Cargo for everything. What worries me a bit here is incremental builds which are very fast in Tundra (uses Lua for config and C++ for building)
-
Add Cargo support to Tundra.
-
Skip Cargo and focus on just using rustc and have it as a “regular” compiler for the rest of the C/C++ code.
If anyone else has done something similar I would love to hear about which approach you have taken and the pros and cons with it.
Cheers!