🍗 Wiki

Rust

Rust

Rust is a strong typed programming language that encouraging programmers to write programs considering memory safety by design.

1. Introduction

Memory safety have been a big issue. Writing code in C and C is considered that is prone to create unsafe program. Since 2024, US Government is actively discouraging to use C and C.

Rust is nowadays considered a safe way to write code. The language design and philosophy of Rust was unique; Rust has become one of the greatest programming language that achieved both memory safety and speed. With these reasons, many programs have been migrating to Rust.

Rust is not based on language virtual machine, and does not have garbage collector. It is comparable to Go; it has garbage collector.

1.1. Migrating from C/C++ to Rust

If the code is easy, you can consider using c2rust.

But if the code base is large or the program is complicated, the output of c2rust can be hard to understand. There are use cases that migrate program to Rust.

2. Rust for Windows

You can bring the power of Windows API by installing 'windows' crate.

3. Trivia

3.1. Rust As Meme

There are parody programs that intentionally make a simple program heavy and complicated. A sarcasm of over-engineering and fanboys.

5. See Also