serve-wasm

Crates.ioserve-wasm
lib.rsserve-wasm
version0.1.1
created_at2026-01-07 10:44:56.775766+00
updated_at2026-01-07 10:47:12.582386+00
descriptionA simple, lightweight HTTP server for serving WebAssembly applications with the correct security headers.
homepage
repositoryhttps://github.com/yguenduez/serve-wasm
max_upload_size
id2028022
size26,520
Yasin Gündüz (yguenduez)

documentation

README

serve-wasm

A simple, lightweight HTTP server specifically designed for serving WebAssembly applications with the correct security headers.

Features

  • Serves static files from the current directory
  • Automatically adds required WASM headers:
    • Cross-Origin-Opener-Policy: same-origin
    • Cross-Origin-Embedder-Policy: require-corp
    • Cross-Origin-Resource-Policy: cross-origin
  • Serves index.html at the root path

Installation

cargo install serve-wasm

Usage

serve-wasm 8080
Commit count: 3

cargo fmt