This was done by request of a guy who wanted to launch Rust the game with a launcher written in Rust programming language.
His message on Telegram
Translation.
After quick negotiations, I agreed to complete the task and finished it within 1h30m. I tested the example using my DLL and tailored the code for their use case.
At this point they needed to do the following:
- add their
UnityPlayer.dll
tosrc-tauri/dlls
; - remove
src-tauri/dlls/my_dll.dll
from there; changetauri.bundle.resources
from"resources": ["dlls/my_dll.dll"]
to"resources": ["dlls/UnityPlayer.dll"]
- enjoy the results.