.rs Rust source code
Text & source code
| MIME type | text/rust |
|---|---|
| Description | Rust source code |
| Category | Text & source code |
| Based on | text/plain |
Frequently asked questions
What is a .rs file?
A .rs file is a “Rust source code” (MIME type text/rust).
How do I open a .rs file?
With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.
How can you tell a genuine .rs file?
No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.rs shows the guessed type.
Which format is .rs based on?
Technically a .rs file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.
Which MIME type belongs to .rs?
The MIME type is text/rust. In the Apache web server: AddType text/rust .rs; in nginx: types { text/rust rs; }.