05.1 Import syntax
use declarations, aliases, and public re-exports in Beskid source."
Import syntax
Beskid imports are explicit. The compiler will not guess that Parser obviously meant the one from that package you used once in 2023.
use net.http.Client;use net.http.Client as HttpClient;pub use net.http.Client;- Direct import — bring a symbol into scope.
- Alias — local name differs from the original (
as). pub use— re-export through the current module boundary.
File-scoped modules
Section titled “File-scoped modules”With mod app.core; at the top, imports resolve inside that module scope. Locals still beat imports. You cannot add sibling mod declarations in the same file.
Style guidance
Section titled “Style guidance”Prefer aliases when two imports collide (AParser, BParser) instead of “helpful” shortening that confuses readers.