Closed VisualEhrmanntraut closed 1 month ago
"os": "none" can't be used, because it won't know what OS to put in the Mach-O archives/executable, as seen below.
Is writing kernel extensions for macOS officially supported by Rust? I don't think the existing targets are intended for that. If you writing some highly experimental code, then I think your best option probably will be to patch getrandom
with a custom version.
No it's not an officially supported Rust target; I've created it myself and slowly making bindings. I'll think tomorrow of a different way to do it and let you know.
I'll just close it since it's just the other issue you mentioned in the PR
Currently if the target OS is macOS, it assumes that you are building an application and not a kernel extension. This causes getrandom to try using libc, which is obviously not available in the kernel.