I've been working on a draft RFC for adding a new #[export_ordinal(n)] attribute.
The reasoning behind it, is that if you need an exported function to be in a specific ordinal position, you currently have to create a definition file. Once you start using a definition file, from then on, every exported function will also have to be added to that definition file, even if the ordinal positions don't matter.
I'm looking for some feedback/opinions on it, as it's my first time writing an RFC.
I'm not a Windows person (haven't used Windows since XP), but isn't the whole concept of ordinal exports a legacy thing that isn't supposed to be used in new binaries? As such it is a very niche thing to need this?
Even it it were, it would be necessary in order to (ergonomically) provide a compatible ABI from a Rust implementation of libraries expecting its symbols to be looked up by index.