dobecad / rust-sveltekit

Example project embedding Sveltekit application into rust binary at compile time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rust-sveltekit

Example project embedding Sveltekit application into Rust binary at compile time

Description

This repo is meant to show how to embed a Sveltekit application within a Rust binary using the Rust Embed crate

Install

# Build UI (from project root)
cd ui
npm i
npm run build

# Build binary (from project root)
cargo run

Notes

  • The Sveltekit application uses the static-adapter and places its build artifacts in ui/build
  • This repo uses axum as the web application framework

About

Example project embedding Sveltekit application into rust binary at compile time


Languages

Language:JavaScript 36.9%Language:Rust 35.7%Language:Svelte 13.2%Language:HTML 8.3%Language:TypeScript 4.0%Language:CSS 1.7%