Hello Rust community.
I am using Rust (crate actix web) for backend and a javascript framework for frontend.
I noticed there are no dist folder (frontend files) on the target, the executable has all the files inside.
So how could i separate them?.
My use case: I have a javascript (json) file that i will update often, so that i send it from backend to frontend (via GET request) to update the view on the frontend.
MAP: Update json -> rust takes it and -> sends it to frontend via GET -> view updated.
But this means that rust will have a separate file outside of the executable!.
Is possible to separate the exe?
Notes: I need to update the json file without rebuilding the project. So it will update the frontend via the map shown above.
Questions:
- Is it possible to separate the frontend files from the exe and run them together?
- how could i solve my use case? Updating the file on backend.
Sorry if this is not explained well, i will update it if something is not clear!
Edit: I copied the executable to my desktop and it seems it has all the files inside it, so i want to separate them for updating only one file and not building everything from the beginning!