The first "similar question" shown to me while posting this is called "How to call C function in Rust". This is the opposite of what I need. Every tutorial I can find that technically does answer my question, only does so by exporting the Rust function in a DLL so a C executable can call it, using extern "C".
But I have a Rust executable that is calling a C DLL function that takes a Rust function pointer as a parameter (I haven't actually written this C function yet). Any basic examples demonstrating how to do this? I've already got Rust calling some of the C DLL functions, but I need to write code for both Rust and C so that C can execute a Rust callback.