How to create Rust global mutable variable of struct type

A while back, when I was working on a WebAssembly particle system using Rust, I ran into a problem after trying to add a struct as a global static mutable variable. First, Rust statics must be initialized at compile time. Making the global variable mutable was another issue. In the end, I had to make use of a specific cargo and Mutex to make it work.