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
- The Sveltekit application uses the
static-adapter
and places its build artifacts inui/build
- This repo uses
axum
as the web application framework- The code for the
main.rs
is taken from theaxum
example from the Rust Embed repo
- The code for the