1. 20
  1.  

  2. 1

    The big architectural pattern question for me was “what to do with ‘service objects’?” i.e. globals that manage stuff that’s needed all over the application. I’ve found that getting a &'static reference to a struct of those via Box::leak and passing that reference into the various components is the most pleasant solution.

    1. 1

      Here’s some additional “patterns” I found recently, in Rust API Guidelines - Future proofing.