Open andymeneely opened 1 week ago
I'm not sure about closing a namespace, but rust modules, functions, objects, etc are private by default and need to be given the pub
keyword to give visibility to other modules.
I believe this means the namespace is closed by default? But not entirely sure. If so, then this can be categorized as virtually impossible in safe rust OR opt in since a developer could make everything public.
https://cwe.mitre.org/data/definitions/487 Reliance on Package-level Scope