News for hackers. Stuff that matters.
Re:Porting Rust's Std to Rustix by pjmlp on Wednesday January 05, 2022 @03:13AM (#29806431)
SEH doesn't need the C runtime, they are only required when using the C language extensions for frame-based Exception Handling, with the new vectored Exception Handling, plain Win32 calls will do,

https://docs.microsoft.com/en-us/windows/win32/debug/vectore...

Granted, they are more cumbersome to use and probably not worth the effort to try to avoid them other than special cases.

Re:Porting Rust's Std to Rustix by ChrisSD on Wednesday January 05, 2022 @05:52AM (#29807494)
Sure. I did not mean to imply that SEH itsef requires the C runtime. However, the __CxxFrameHandler3 that Rust/llvm uses would need to be rewritten.

IIRC llvm itself generates calls to __CxxFrameHandler3 when SEH is being used, making it awkward to replace with something that's not compatible.