Embed Web UI in the binary
imclint21 opened this issue · comments
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 (nickel-org/nickel.rs#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: seanmonstar/warp#486