I want to create a binary crate on Windows and the result PE should export some functions (my purpose is that the PE can be used by LoadLibrary as a dll). I've tried with:
Then the question then becomes how to set up the main entry point for a rust library,
there is a thread on the forum setting that up, appears to involve relinking an rlib into a pe while adding the entry point.
Not having a windows machine, I haven't managed yet to repeat this on linux an elf PIE executable where it should be possible as well...