#web-server #gateway #host #interface #running #wcgi

wcgi-host

Utilities for implementing WCGI (Webassembly Common Gateway Interface) support in hosts

5 unstable releases

new 0.3.0 Nov 16, 2024
0.2.0 Jun 2, 2024
0.1.2 Apr 5, 2023
0.1.1 Apr 1, 2023
0.1.0 Feb 22, 2023

#289 in WebAssembly

Download history 2749/week @ 2024-07-29 2114/week @ 2024-08-05 1208/week @ 2024-08-12 2394/week @ 2024-08-19 742/week @ 2024-08-26 1444/week @ 2024-09-02 1211/week @ 2024-09-09 1612/week @ 2024-09-16 1648/week @ 2024-09-23 2485/week @ 2024-09-30 1384/week @ 2024-10-07 4766/week @ 2024-10-14 2518/week @ 2024-10-21 1767/week @ 2024-10-28 1708/week @ 2024-11-04 1160/week @ 2024-11-11

7,385 downloads per month
Used in 9 crates (3 directly)

MIT license

28KB
585 lines

wcgi

Tooling for running web servers on Wasmer Deploy.

Check out the Tutorial to get started.

Repository layout

  • crates: Contains wcgi tooling for the Rust language, including a client library wcgi, a local wcgi runner and Rust examples.
    • wcgi wcgi client library for easily writing wcgi handlers in Rust.
    • wcgi_runner wcgi runner for running a wcgi server locally.
    • xtask CLI with utility commands for managing this repository.
  • examples Collection of example wcgi handlers written in Rust.

Develop

xtask

The cargo xtask command provides various management commands, like running tests, publishing all examples, ...

Execute cargo xtask in your shell to see available commands.

NOTE: can only be run when in the root directory.


lib.rs:

Common abstractions for implementing a WCGI host.

Cargo Features

  • schemars - will enable JSON Schema generation for certain types using the schemars crate

Dependencies

~5–12MB
~126K SLoC