Project
driver
Describe the feature
Currently, the compiler processes all dependencies through the --dep flag without distinguishing between local files and external libraries. So it would be better to introduce crate keyword to explicitly mark local program files, separating them from external dependencies.
Motivation
- Prevents a breaking change in future versions. Adding this distinction later would require rewriting all existing import paths.
- Improves error reporting. It would be easier for the error handler to tell whether an unresolved path is a missing local file or a missing external dependency.
- Improves code readability. For example,
crate::utils::foo immediately signals local code, while mathlib::utils::foo signals an external library.
Project
driver
Describe the feature
Currently, the compiler processes all dependencies through the
--depflag without distinguishing between local files and external libraries. So it would be better to introducecratekeyword to explicitly mark local program files, separating them from external dependencies.Motivation
crate::utils::fooimmediately signals local code, whilemathlib::utils::foosignals an external library.