Revisiting Rust's modules

That makes sense! There is one other case where I think that work is hugely relevant to Rust, though: The growing number of cases where a global need must be satisfied at-most-once. More and more cases of this have been cropping up:

  • Global allocators
  • std platform backends
  • Linking to external libraries statically
  • Panic runtimes
  • Replacing crates behind the facade
  • 1-of-N cargo features (for selecting backends)
  • lang items
  • event loops
  • etc
4 Likes