Skip to content

Commit 3b82a3f

Browse files
bors-ferrocene[bot]Veykrilpietroalbini
authored
Merge #512
512: Add library crate definition back r=pietroalbini a=Veykril #511 (comment) Co-authored-by: Lukas Wirth <[email protected]> Co-authored-by: Pietro Albini <[email protected]>
2 parents 60d9924 + 4d08044 commit 3b82a3f

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

src/changelog.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,9 @@ Language changes in Rust 1.79.0
7171
* New section: :ref:`fls_8JB3SJqamdpU`
7272
* New glossary entry: :t:`crate type`
7373
* New paragraphs: :p:`fls_unxalgMqIr3v`, :p:`fls_e7jGvXvTsFpC`, :p:`fls_kQiJPwb2Hjcc`, :p:`fls_OyFwBtDGVimT`
74-
* Updated glossary entries: :t:`binary crate`, :t:`proc-macro crate`
75-
* Updated paragraphs: :p:`fls_9ub6ks8qrang`, :p:`fls_Mf62VqAhoZ3c`
74+
* Updated glossary entries: :t:`binary crate`, :t:`library crate`, :t:`proc-macro crate`
75+
* Updated paragraphs: :p:`fls_9ub6ks8qrang`, :p:`fls_Mf62VqAhoZ3c`, :p:`fls_d9nn4yuiw1ja`
7676
* Moved paragraph: :p:`fls_sbGnkm8Ephiu`
77-
* Removed paragraph about library crates
7877

7978
* `Check return types of function types for well-formedness <https://github.com/rust-lang/rust/pull/115538>`_
8079

src/glossary.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3744,6 +3744,15 @@ lexical element
37443744
A :dt:`lexical element` is the most basic syntactic element in program
37453745
text.
37463746

3747+
.. _fls_r1sk7vdgckym:
3748+
3749+
library crate
3750+
^^^^^^^^^^^^^
3751+
3752+
:dp:`fls_3m8lg4mdc2x0`
3753+
A :dt:`library crate` is a :t:`crate` whose :t:`crate type` is ``lib``, ``rlib``,
3754+
``staticlib``, ``dylib``, or ``cdylib``.
3755+
37473756
.. _fls_vdhaa61g6kah:
37483757

37493758
lifetime

src/program-structure-and-compilation.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ The :t:`function` in scope of a :t:`binary crate`'s :t:`crate root module` under
138138
the :t:`name` ``main`` with a :t:`main function signature` is the :t:`binary
139139
crate`'s :t:`program entry point`.
140140

141+
:dp:`fls_d9nn4yuiw1ja`
142+
A :t:`library crate` is a :t:`crate` whose :t:`crate type` is ``lib``, ``rlib``,
143+
``staticlib``, ``dylib``, or ``cdylib``.
144+
141145
:dp:`fls_Mf62VqAhoZ3c`
142146
A :t:`proc-macro crate` is a :t:`crate` whose :t:`crate type` is ``proc-macro``.
143147

0 commit comments

Comments
 (0)