Rust anatomy: Difference between revisions
From wikinotes
(Created page with " A rust project comprises of {| class="wikitable" |- | packages || build/test/share a collection of crates |- | crates || tree of modules that build a single library, or executable |- | modules || organize scope/privacy of paths |- | paths || files ? |} <syntaxhighlight lang="yaml"> package: - crate - crate: - module - module: - path - path </syntaxhighlight> = Components = <blockquote> == Packages == <blockquote> </blo...") |
No edit summary |
||
Line 15: | Line 15: | ||
<syntaxhighlight lang="yaml"> | <syntaxhighlight lang="yaml"> | ||
package: | package: | ||
- crate: | - crate: | ||
- module | - crate: | ||
- module: | |||
- module: | - module: | ||
- path | - path |
Revision as of 22:34, 7 February 2023
A rust project comprises of
packages | build/test/share a collection of crates |
crates | tree of modules that build a single library, or executable |
modules | organize scope/privacy of paths |
paths | files ? |
package:
- crate:
- crate:
- module:
- module:
- path
- path
Components
Packages
Crates