From 904b5c76d21a7fda726ac6201b184d4d6e75f77d Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 8 Jul 2024 10:18:32 +0200 Subject: [PATCH] Be explicit with what a library crate entails --- src/glossary.rst | 3 ++- src/program-structure-and-compilation.rst | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/glossary.rst b/src/glossary.rst index 099a3409..a0c85ede 100644 --- a/src/glossary.rst +++ b/src/glossary.rst @@ -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: diff --git a/src/program-structure-and-compilation.rst b/src/program-structure-and-compilation.rst index 1f771808..e8ef612b 100644 --- a/src/program-structure-and-compilation.rst +++ b/src/program-structure-and-compilation.rst @@ -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``.