Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add library crate definition back #512

Merged
merged 4 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ Language changes in Rust 1.79.0
* Updated glossary entries: :t:`binary crate`, :t:`proc-macro crate`
pietroalbini marked this conversation as resolved.
Show resolved Hide resolved
* Updated paragraphs: :p:`fls_9ub6ks8qrang`, :p:`fls_Mf62VqAhoZ3c`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also updated glossary entries and paragraphs.

* Moved paragraph: :p:`fls_sbGnkm8Ephiu`
* Removed paragraph about library crates

* `Check return types of function types for well-formedness <https://github.com/rust-lang/rust/pull/115538>`_

Expand Down
9 changes: 9 additions & 0 deletions src/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3744,6 +3744,15 @@ lexical element
A :dt:`lexical element` is the most basic syntactic element in program
text.

.. _fls_r1sk7vdgckym:

library crate
^^^^^^^^^^^^^

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

.. _fls_vdhaa61g6kah:

lifetime
Expand Down
4 changes: 4 additions & 0 deletions src/program-structure-and-compilation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ The :t:`function` in scope of a :t:`binary crate`'s :t:`crate root module` under
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` 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
Loading