Example project embedding Sveltekit application into Rust binary at compile time
This repo is meant to show how to embed a Sveltekit application within a Rust binary using the Rust Embed crate
# Build UI (from project root)
cd ui
npm i
npm run build
# Build binary (from project root)
cargo run
static-adapter
and places its build artifacts in ui/build
axum
as the web application frameworkmain.rs
is taken from the axum
example from the Rust Embed repo