[New Feature] `execute-assembly`
HuskyHacks opened this issue · comments
- Loads CLR into app
- Downloads assembly remotely
- Load/execute assembly and return results
- Unload appdomain
Currently looking for help on this one, need a good example of Rust implementation of loading the CLR and FFI for .NET in general
I managed to get some things to execute, but it's really fiddly and existing mscoree-sys crates don't always work. I'll check if the code survived — I do recall destroying everything in a fit of rage.
One sidenote, I actually tried just doing the execute-assembly part in Nim and passing the necessary variables and data to it using Rust FFI. NimMain is a deal breaker though — it destroys the pointers passed back to Rust and somehow breaks consequent calls to the same FFI function. --gc:arc
wasn't helpful, since you can't use sequences with it :(
Finally got CLR working 😁
This is so exciting, @yamakadi! We'll be delving into incorporating this into ON as soon as possible. Great work!
Happy to help when I have more time!
Added in 4fa2c01