I have a work-in-progress GUI library that uses the platform's webview in a window, but unfortunately I can't send any Web Assembly or media to it without a static file server, opened at 127.0.0.1:0
. Is there a simple, easy-to-use, small (compiled size) library that I can use for this purpose?
Also, I'm trying to make this library as easy-to-use as possible, so would it be better to just point people to this server, or wrap the server in the library itself, maybe as a trait method fn resource(&self, path: &str) -> Response { code: u16, mime: &str, data: &[u8] }
?
Edit: Fixed the IP address thanks to @SergejJurecko.