You are browsing as a guest. Sign up (or log in) to start making projects!

Rustify

  • 8 Devlogs
  • 4 Total hours

Tool that rewrites simple c++ code in rust

Open comments for this post

34m 23s logged

cout, or idk how you print strings

i lost my sticky streak :pf:

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:

  • vector support
  • function calling support
  • string support

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.

0
0
7
Open comments for this post

21m 7s logged

data types are fun

a devlog a day keeps my streak alive

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)

new rustify features:

  • support for booleans
  • support for doubles
  • support for floats
  • support for bool, double and float functions

future goals:

  • cout && cin support
  • support for calling functions

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

0
0
12
Open comments for this post

21m 30s logged

rust > c++

a devlog a day keeps the heidi away

whats up crustaceans (or c++ devs), some slight changes dropped to rustify
the new changes include:

  • functions (half working)
  • a very nice looking and updated readme

this readme includes instructions on how to build it or download it and the lore behind it

some interesting lore behind this project as this devlog is very short

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

0
0
10
Open comments for this post

19m 55s logged

small devlog

a devlog a day keeps the orpheus away

really small devlog, i just wanted to publish today’s one

new changes:

  • begin work on handling vectors
  • remove completed todo items
  • add a new test c++ file

future goals:

  • vector handling
  • handling cout
  • handling cin

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.

0
0
45
Open comments for this post

32m 10s logged

new rustify feature!

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

to-do list:

  • ability to call functions
  • std::cout support

thank you for reading this devlog

screenshot of the converter compiling the code and the compile errors doing their thing

0
0
3
Open comments for this post

21m 39s logged

devlog time!

ok, this is a short devlog as i just wanted to get one out for the day

new features:

  • support for code in the comments
  • support for void functions

current todo-list:

  1. change comments regarding errors in the code to compile errors
  2. when detecting specific keywords, set a boolean to true that signifies that it requires a library
  3. be able to call functions from the converted code

even though its really short, thanks for reading it

screenshot of the converted code below

0
0
3
Open comments for this post

36m 16s logged

another day, another quick devlog

Lots of new additions have just dropped for rustify that is going to make converting c++ code into rust easier.

New features include:

  • Support for integers
  • Support for functions
  • Support for returning

Other, smaller changes in the code:

  • Instead of reading directly from a vector, an iterator is being read, this allows for more flexibility with the code.

Goals for the future:

  • Verify C++ code before converting
  • Call rustc when finished
  • Support for vectors, strings and booleans
  • Support for calling functions
  • Support for cout, cerr, cin and endl
  • Support for some other basic libraries

I know this is a short devlog, but thank you for reading it.

Image of the process and the converted code output

0
0
17
Open comments for this post

33m 3s logged

🤖 must rewrite it in rust

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:

  • open the c++ source file
  • write to the rust source file
  • parse simple code such as include iostream or int main()
  • color text output!

things to implement in the future:

  • support for more c++ keywords
  • call rustc to compile the program
  • call a compiler to verify the c++ program is correct before rewriting
  • adding comments to functions/keywords that are not detected

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)

0
0
6

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…