Rust anatomy

From wikinotes
Revision as of 22:31, 7 February 2023 by Will (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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