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 2d029bf
Showing 1 changed file with 2 additions and 1 deletion.
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``, ``cdylib`` or ``proc-macro``.

: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 2d029bf

Please sign in to comment.