Modules and Visibility
Flint keeps the module system intentionally small.
One File, One Module
Each file is a module. The filename defines the module name. There is no separate module declaration.
Imports
Use use for imports:
use json
use micro/gpio
use ./board
use ./drivers/sensor
The rule is simple:
- bare paths are for standard library modules,
./paths are for local modules in the current project.
Visibility
Flint has two visibility levels:
pub- private by default
There is no larger visibility ladder to memorize.