Skip to content

Commit

Permalink
Add library crate definition back
Browse files Browse the repository at this point in the history
Veykril committed Jul 5, 2024
1 parent a5d06a2 commit 6036ca2
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/changelog.rst
Original file line number Diff line number Diff line change
@@ -74,7 +74,6 @@ Language changes in Rust 1.79.0
* Updated glossary entries: :t:`binary crate`, :t:`proc-macro crate`
* Updated paragraphs: :p:`fls_9ub6ks8qrang`, :p:`fls_Mf62VqAhoZ3c`
* Moved paragraph: :p:`fls_sbGnkm8Ephiu`
* Removed paragraph about library crates

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

8 changes: 8 additions & 0 deletions src/glossary.rst
Original file line number Diff line number Diff line change
@@ -3744,6 +3744,14 @@ lexical element
A :dt:`lexical element` is the most basic syntactic element in program
text.

.. _fls_r1sk7vdgckym:

library crate
^^^^^^^^^^^^^

:dp:`fls_3m8lg4mdc2x0`
A :dt:`library crate` is a :t:`crate` that is not a :t:`binary crate`.

.. _fls_vdhaa61g6kah:

lifetime
3 changes: 3 additions & 0 deletions src/program-structure-and-compilation.rst
Original file line number Diff line number Diff line change
@@ -138,6 +138,9 @@ The :t:`function` in scope of a :t:`binary crate`'s :t:`crate root module` under
the :t:`name` ``main`` with a :t:`main function signature` is the :t:`binary
crate`'s :t:`program entry point`.

:dp:`fls_d9nn4yuiw1ja`
A :t:`library crate` is a :t:`crate` that is not a :t:`binary crate`.

:dp:`fls_Mf62VqAhoZ3c`
A :t:`proc-macro crate` is a :t:`crate` whose :t:`crate type` is ``proc-macro``.

0 comments on commit 6036ca2

Please sign in to comment.