.rs
4 claimants
3 primary
1 secondary
shared primary (3)
SWH popularity
From the SWH-MSR-ARV dataset (Desmazières, Di Cosmo, Lorentz, MSR 2025; file nb_extensions_alphanum.csv) — one row per (ext, year) in the full SWH archive. Case-aggregated. citation.
40.8M
total occurrences
15.1M
since 2019 (37.0%)
1970–2023
years active
Case variants in archive: .rs (40.8M), .RS (387), .Rs (79), .rS (12) — aggregated above.
Attribution status
This extension is attributed to RenderScript; RenderScript; Rs; Rust; Rust; Rust as primary by 6 authoritative claims.
Claimants (7)
Languages that list
.rs among their extensions. Strength reflects whether the upstream source treated it as their primary extension.| Language | Source | Strength |
|---|---|---|
| RenderScript | linguist | primary |
| RenderScript | pygments | primary |
| Rs | pygments | primary |
| Rust | linguist | primary |
| Rust | pygments | primary |
| Rust | wikidata | primary |
| xml | linguist | secondary |
Wikidata says… (2)
File formats, image formats, audio codecs and other non-PL
entities that claim
.rs on Wikidata
(property P1195) or in the Wikipedia infobox.
Source: data/derived/external_extension_index.csv.
Click Use as new PL on any row to open the
Add-PL form pre-filled with that entry's name, Wikipedia/Wikidata
URL, and this extension — one submission creates the PL + claim.
| Format | Class (Wikidata P31) | Suggested label | MIME | Notes | Action |
|---|---|---|---|---|---|
| Sun Raster Q17138473 file format | file format | — | image/x-sun-raster | — | Use as new PL ↗ |
| Rust source code file Q126951815 file format | file format | — | text/rust; text/x-rust | — | Use as new PL ↗ |
Disambiguation rules (3)
Linguist heuristics that decide, by content, which language a
.rs file actually is.| Rule | Predicts | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.rs/0 | Rust | predicates | [{"kind": "any", "regexes": ["^(use |fn |mod |pub |macro_rules|impl|#!?\\[)"]}] |
h/linguist/.rs/1 | RenderScript | predicates | [{"kind": "any", "regexes": ["#include|#pragma\\s+(rs|version)|__attribute__"]}] |
h/linguist/.rs/2 | xml | predicates | [{"kind": "any", "regexes": ["^\\s*<\\?xml"]}] |
SWH-mined examples (0)
No archived examples for .rs in our local mirror yet.