Closes #40293 (closed)
Patch file is the same as the one I'm upstreaming: https://github.com/mozilla/uniffi-rs/pull/433