I'm needing the ability to import a user-defined JS file at runtime (for app configuration via a JS file... a JSON file won't work).
I think the only way to do this currently via a custom Rust function (since the runtime JS doesn't have access to the file system). Is this correct?
If so, could anyone point me to some example code (https://www.secondstate.io/articles/embed-javascript-in-rust/ is the only thing that I've found which seems close but I'm new to Rust so may be missing something obvious)?