Skip to content

Glossary: Rust Basics

crate:: (path)

Also written: use crate::

In a path, `crate` means the top of the current crate, which is `main.rs`. `use crate::money;` lets another file reach the `money` module.

Where the book teaches it

Related terms

Moduleuse