--- title: ".rs file — what it is and how to open it" description: "A .rs file is a Rust Source. Source code in Rust, a systems language with memory safety enforced at compile time. How to open one on Windows, macOS and Linux, and what to convert it to." url: https://atoneplace.net/file/rs/ site: "At One Place" --- # .rs files **.rs file: Rust Source** Source code in Rust, a systems language with memory safety enforced at compile time. ## What opens a .rs file - **Windows:** Visual Studio Code, RustRover, Notepad (built in) - **macOS:** Visual Studio Code, RustRover, TextEdit (built in) - **Linux:** Visual Studio Code, RustRover, Text Editor (built in) - **In a browser:** Rust Playground ## What a .rs file is Rust came out of Mozilla Research and reached 1.0 in 2015; its borrow checker prevents whole classes of memory bugs without a garbage collector. A .rs file is plain text built by cargo, the project and dependency tool that every Rust project uses. It now appears in the Linux kernel, Firefox and Windows components. ## Converting it A .rs file is commonly converted to .exe or .txt. It is a plain text format, so any text editor can open and edit it directly. ## Details - **Extension:** .rs - **Full name:** Rust Source - **Category:** Code and scripts - **Created by:** Rust Foundation - **Format:** Plain text ## Common questions ### How do I open a .rs file? On Windows use Visual Studio Code; on macOS use Visual Studio Code; on Linux use Visual Studio Code. Source code in Rust, a systems language with memory safety enforced at compile time. ### What is a .rs file? Rust Source. Rust came out of Mozilla Research and reached 1.0 in 2015; its borrow checker prevents whole classes of memory bugs without a garbage collector. A .rs file is plain text built by cargo, the project and dependency tool that every Rust project uses. ### Can I convert a .rs file? Yes. It is usually converted to .exe or .txt, either by exporting from one of the programs listed above or with a format converter. ## Related pages - [.html — HyperText Markup Language](https://atoneplace.net/file/html/) - [.js — JavaScript Source](https://atoneplace.net/file/js/) - [.css — Cascading Style Sheet](https://atoneplace.net/file/css/) - [.py — Python Source](https://atoneplace.net/file/py/) - [.java — Java Source](https://atoneplace.net/file/java/) - [.tsx — TypeScript Source (JSX)](https://atoneplace.net/file/tsx/) - [.cpp — C++ Source](https://atoneplace.net/file/cpp/) - [.php — PHP Source](https://atoneplace.net/file/php/) - [.c — C Source](https://atoneplace.net/file/c/) - [.cs — C# Source](https://atoneplace.net/file/cs/) - [.go — Go Source](https://atoneplace.net/file/go/) - [.rb — Ruby Source](https://atoneplace.net/file/rb/) ## Sources - Media Types Registry — IANA (https://www.iana.org/assignments/media-types/) - Official vendor product documentation — At One Place (/about/)