The trick could definitely work with rust since fundamentally it's "just" a hack on how the various scripts work on different systems. Actually getting the rust compiler to produce cosmopolitan binaries would likely be a heavy lift though.
Also it says it supports WASM (wasi?) so some applications might work out of the box with that.
Also it says it supports WASM (wasi?) so some applications might work out of the box with that.