Skip to content

Commit

Permalink
Be explicit with what a library crate entails
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Jul 8, 2024
1 parent 6036ca2 commit 904b5c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3750,7 +3750,8 @@ library crate
^^^^^^^^^^^^^

:dp:`fls_3m8lg4mdc2x0`
A :dt:`library crate` is a :t:`crate` that is not a :t:`binary crate`.
A :dt:`library crate` is a :t:`crate` whose :t:`crate type` is ``lib``, ``rlib``,
``staticlib``, ``dylib``, or ``cdylib``.

.. _fls_vdhaa61g6kah:

Expand Down
3 changes: 2 additions & 1 deletion src/program-structure-and-compilation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ 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`.
A :t:`library crate` is a :t:`crate` whose :t:`crate type` is ``lib``, ``rlib``,
``staticlib``, ``dylib``, or ``cdylib``.

: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 904b5c7

Please sign in to comment.