lucid icon indicating copy to clipboard operation
lucid copied to clipboard

Embed Web UI in the binary

Open imclint21 opened this issue 6 years ago • 2 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 (https://github.com/nickel-org/nickel.rs/issues/441), but with warp I don't know how we can do this.

Best regards

imclint21 avatar Nov 30 '19 10:11 imclint21

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.

shuni64 avatar Nov 30 '19 12:11 shuni64

Related issue: https://github.com/seanmonstar/warp/issues/486

imclint21 avatar Mar 20 '20 20:03 imclint21