Rustify
- 8 Devlogs
- 4 Total hours
Tool that rewrites simple c++ code in rust
Tool that rewrites simple c++ code in rust
new feature just dropped
you can now use simple cout statements but with one catch. the cout statement has to not have any spaces and be structured like cout « “foo” « endl;
future goals:
thanks for reading this short devlog
1x bonus meme included in the screenshots
in the screenshot below, all the commented code is features that will be implemented soon in the future.
whats up rust programmers who are looking to rewrite everything in rust.
some new features just dropped that will make your lives much easier. (not guaranteed)
note: this project is still in development and is lacking a lot of features.
thanks for reading this short little devlog
screenshot 1: code that was converted from c++, screenshot 2: original c++ code
a devlog a day keeps the heidi away
whats up crustaceans (or c++ devs), some slight changes dropped to rustify
the new changes include:
this readme includes instructions on how to build it or download it and the lore behind it
Q: what is the inspiration behind this
A: i made this because of the meme that rust developers rewrite c++ in rust
Q: can i use this in production
A: this is not made to be used standalone in production but it could work really well if used with an ai agent, might even write a opencode or claude skill for it.
Q: can this convert c code?
A: no
thanks for reading this devlog
screenshot of the new readme
a devlog a day keeps the orpheus away
really small devlog, i just wanted to publish today’s one
new changes:
future goals:
thanks for reading this devlog
screenshot of the new file being converted, the compile errors arent a bad thing they are just reminders that you need to manually fix the code.
new rustify feature just dropped
now, instead of having comments for unkown keywords
e.g // UNKNOWN KEYWORD std::foo()
they are replaced with compile errors
e.g compile_error!("UNKNOWN KEYWORD std::foo());
this makes it easier to catch unknown keywords in large codebases and cancels the auto-compilation at the end.
this is useful as the code may be broken if its missing a function or an integer
the code is now also compiled at the end and the executable is placed next to the rust source file
thank you for reading this devlog
screenshot of the converter compiling the code and the compile errors doing their thing
ok, this is a short devlog as i just wanted to get one out for the day
even though its really short, thanks for reading it
screenshot of the converted code below
Lots of new additions have just dropped for rustify that is going to make converting c++ code into rust easier.
Other, smaller changes in the code:
I know this is a short devlog, but thank you for reading it.
Image of the process and the converted code output
new project!
rustify is a simple tool that allows the user to rewrite c++ code in rust, with just the click of a button. only works on simple code tho but is blazing fast because it is written in rust.
currently, it can:
things to implement in the future:
thank you for reading this devlog
screenshot of the current version of the program parsing a source file and writing it to a rust source file (visible in second screenshot)