rust-web-server 18.10.0

Single-binary web server and reverse proxy: automatic HTTPS (Let's Encrypt), HTTP/1.1, HTTP/2 and HTTP/3, load balancing, auth and rate limiting, configured in one TOML file. Also a Rust library: routing, middleware, MCP server, ORM, background jobs. No hyper, no Tower; HTTP/2 and HTTP/3 framing via h2 and quinn.
Documentation
import { defineConfig } from "vite";

// One script and one stylesheet with fixed names, written straight into
// src/admin/ui/ (embedded by src/admin/ui.rs). Fonts are inlined into the
// stylesheet, so there is nothing else to serve.
export default defineConfig({
  publicDir: false,
  base: "/admin/",
  build: {
    outDir: "../src/admin/ui",
    emptyOutDir: true,
    assetsInlineLimit: 200_000,
    cssCodeSplit: false,
    modulePreload: false,
    rollupOptions: {
      output: {
        entryFileNames: "admin.js",
        chunkFileNames: "admin-[name].js",
        assetFileNames: (info) => (info.names?.[0]?.endsWith(".css") ? "admin.css" : "[name][extname]"),
      },
    },
  },
});