2 ms·
Show HN: Convert Go to Rust
I announce rinku to the world!
With people looking less and less at code,
why not choose a language with better
runtime characteristics instead of the
one you wanted to write code in before?
As a Go coder I have migrated several of my small tools to
Rust, as Rust is faster, uses less memory and has no
GC latency (wish Go had arenas).
The main obstacle was mapping third party dependencies like open
source libraries.
As a solution I have created 'rinku'. You give it a Go dependency
and it gives you a Rust dependency.
> $ rinku lookup https://github.com/spf13/cobra https://github.com/spf13/cobra
> https://github.com/clap-rs/clap https://github.com/clap-rs/clap
Prompt now becomes (real prompt is more complicated)
> Translate the project from Go to Rust. For dependencies migration use rinku.
The library of mappings is not yet extensive, but
migration is now much easier.
https://github.com/marvai-dev/rinku https://github.com/marvai-dev/rinku