~repos /rust-embed
git clone https://pyrossh.dev/repos/rust-embed.git
rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.
file:
examples/axum-spa/assets/js/script.js
var elem = document.createElement("div");elem.innerHTML = "I'm the JS script!<br>" + new Date();document.body.appendChild(elem);