Skip to content

Commit 904b5c7

Browse files
committed
Be explicit with what a library crate entails
1 parent 6036ca2 commit 904b5c7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/glossary.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3750,7 +3750,8 @@ library crate
37503750
^^^^^^^^^^^^^
37513751

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

37553756
.. _fls_vdhaa61g6kah:
37563757

src/program-structure-and-compilation.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ the :t:`name` ``main`` with a :t:`main function signature` is the :t:`binary
139139
crate`'s :t:`program entry point`.
140140

141141
:dp:`fls_d9nn4yuiw1ja`
142-
A :t:`library crate` is a :t:`crate` that is not a :t:`binary crate`.
142+
A :t:`library crate` is a :t:`crate` whose :t:`crate type` is ``lib``, ``rlib``,
143+
``staticlib``, ``dylib``, or ``cdylib``.
143144

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

0 commit comments

Comments
 (0)