Skip to content

Glossary: add "crate" and "module" #1015

Closed
@cmcqueen

Description

@cmcqueen

Please add "crate" and "module" to the glossary. As someone coming from Python, I'm a bit unsure of what Rust terminology to use instead of Python's "package".

Activity

changed the title [-]Glossary: add "crate"[/-] [+]Glossary: add "crate" and "module"[/+] on May 5, 2021
ehuss

ehuss commented on May 5, 2021

@ehuss
Contributor

Yea, it definitely can be confusing, especially when the same term is used in different ways. I have posted #1016 with some definitions. You may also find some definitions in the Cargo glossary for crate and package.

The following is a rough translation:

Python Rust
project package or project (a Cargo concept)
root package crate or "crate root"
subpackage module
module module

Rust does not differentiate between leaves and nodes in the module tree, it just calls them all "modules" whereas Python calls inner nodes "subpackages".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @ehuss@cmcqueen

      Issue actions

        Glossary: add "crate" and "module" · Issue #1015 · rust-lang/reference