Featured image of post Rust Language Introduction: Getting Started from Features to Installation and Hello World

Rust Language Introduction: Getting Started from Features to Installation and Hello World

Explains how to get started with Rust, a fast and memory-safe programming language, for beginners. Comprehensively introduces everything from the language's features and installation methods to the execution steps of the first program, Hello World, and recommended Japanese documentation.

Introduction

Rust is a systems programming language focused on memory safety, performance, and concurrency. Rust 1.0 was released in 2015. It overlaps with C++ in some use cases, but neither language is a universal replacement for the other.

Installation

Use rustup to install and manage Rust toolchains; it installs the stable toolchain by default. Follow the instructions on the official Rust installation page for your operating system.

Hello World

Create a binary project with cargo new, then put this code in src/main.rs. cargo run builds and runs it.

1
2
3
cargo new hello_world
cd hello_world
cargo run
1
2
3
fn main() {
    println!("Hello, world!");
}

Documentation

The Rust Programming Language

Rust by Example

Try Rust on the Web

To experiment without installing a compiler, use the Rust Playground.

References

Licensed under CC BY-NC-SA 4.0
Last updated on 2026/11/24 00:00 +0900
comments powered by Disqus