lucid
lucid copied to clipboard
Embed Web UI in the binary
Hi,
@CephalonRho now you have migrated to warp, do you know how we can serve webui/dist but packed into the binary and not from the folder?
I had spoken with @jolhoeft in the past to do this with Nickel in the past (https://github.com/nickel-org/nickel.rs/issues/441), but with warp I don't know how we can do this.
Best regards
It should be almost the same as with Nickel, after embedding the files into the binary we'll have to write a Filter to serve files from the RustEmbed struct instead of from the actual filesystem.
Related issue: https://github.com/seanmonstar/warp/issues/486