Skip to content

Commit 304a245

Browse files
committed
Mention deprecation of crate files.
1 parent c639f44 commit 304a245

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/rust.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,9 @@ Crates are provided to the Rust compiler through two kinds of file:
591591
- _crate files_, that end in `.rc` and each define a `crate`.
592592
- _source files_, that end in `.rs` and each define a `module`.
593593

594+
> **Note:** The functionality of crate files will be merged into source files in future versions of Rust.
595+
> The separate processing of crate files, both their grammar and file extension, will be removed.
596+
594597
The Rust compiler is always invoked with a single input file, and always
595598
produces a single output crate.
596599

0 commit comments

Comments
 (0)