Answer the question
In order to leave comments, you need to log in
How to correctly translate the word "Crate" into Russian?
Actually the question is in the title. Literally, "box". Following analogies from other languages, should be translated as "package". But maybe there is a well-established translation in the community?
Answer the question
In order to leave comments, you need to log in
Crate is the structural unit of compilation.
In Rust, the compilation model centers on objects called crates. Each compilation process processes a single crate in source code form, and if the compilation succeeds, the result is one single crate in binary form: either an executable file or a library.
Crate is to some extent analogous to an assembly in the ECMA-335 CLI model, a library in the SML/NJ Compilation Manager, a unit in the Owens and Flatt module system, or a configuration in Mesa.
The crate is the unit of compilation and linking (linking), as well as version control, distribution, and run-time loading systems. The crate contains a tree of nested module scopes. The top level of this tree is a module, which is anonymous (unnamed) (in terms of paths within that module), and any element within a crate has a canonical path (module path) indicating its location in that crate's module tree.
Here is a link to more information: Modular system and crates
The box is there. Applicable to cargo - a package, of course. This trick with boxes exists almost exclusively among the developers of the package subsystem, for example, python packages were first eggs (eggs), and now wheels (wheels), but in fact no one calls them that.
From what side and by analogy with what such languages do you get a "package"? Very interesting!
In general, crate is a box or container, usually more or less overall (although not necessarily), usually wooden (although not necessarily).
By the way, the toaster is not exactly a dictionary. When in doubt, I recommend using the sources below.
pictures
definition
extended definition
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question