Hello, I have a large Blockchain CONSENSUS module written in GO that I would like to 're-engineer' to RUST code, only because I have very little RUST programming knowledge and experience. Is there a GO-RUST COMPILER or proven PROCESS to achieve the conversion of GOLang code into RUST? Many Thanks :)
I think that Go is a sufficiently complicated language that you'd need to do it by hand. Even the automatic C to Rust compiler isn't perfect.
You may also wish to re-evaluate when to use all-capital letters. Generally considered to be yelling when communicating online. It's correctly written as Go and Rust.
Hi Everyone, thanks for your very valuable feedback ! @Lokathor I'd appreciate if you could point me to where/how I can evaluate the 'automatic C to Rust compiler' to become familiar with the process ...many Thanks :)
I'm not sure if there are other attempts
Is there an automatic Go-to-C tool? You could hook both of them up to produce terrible output.
I wonder if you could compile to WASM and then disassemble...
Honestly, you're not going to get good results from any automated conversion. You're going to need to translate the code by hand.