From 2d029bf2f170af8ba8d79ff27b10f34badf34bd7 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/program-structure-and-compilation.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/program-structure-and-compilation.rst b/src/program-structure-and-compilation.rst index 1f771808..4f5cfb7f 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``, ``cdylib`` or ``proc-macro``. :dp:`fls_Mf62VqAhoZ3c` A :t:`proc-macro crate` is a :t:`crate` whose :t:`crate type` is ``proc-macro``.