lucid-kv / lucid

High performance and distributed KV store w/ REST API. 🦀

Home Page:https://clintnetwork.gitbook.io/lucid/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

commented

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.