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

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

Closed
cmcqueen opened this issue May 5, 2021 · 1 comment · Fixed by #1016
Closed

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

cmcqueen opened this issue May 5, 2021 · 1 comment · Fixed by #1016

Comments

@cmcqueen
Copy link

cmcqueen commented May 5, 2021

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".

@cmcqueen cmcqueen changed the title Glossary: add "crate" Glossary: add "crate" and "module" May 5, 2021
@ehuss
Copy link
Contributor

ehuss commented May 5, 2021

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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants