Skip to content

Commit

Permalink
Add library crate definition back
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Jul 5, 2024
1 parent a5d06a2 commit 634fb89
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/program-structure-and-compilation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``.

Expand Down

0 comments on commit 634fb89

Please sign in to comment.