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

wcgi-host

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

4 releases

0.2.0 Jun 2, 2024
0.1.2 Apr 5, 2023
0.1.1 Apr 1, 2023
0.1.0 Feb 22, 2023

#1054 in WebAssembly

Download history 2712/week @ 2024-07-10 2535/week @ 2024-07-17 4404/week @ 2024-07-24 1122/week @ 2024-07-31 2384/week @ 2024-08-07 1214/week @ 2024-08-14 2110/week @ 2024-08-21 1109/week @ 2024-08-28 1411/week @ 2024-09-04 1627/week @ 2024-09-11 1785/week @ 2024-09-18 819/week @ 2024-09-25 2722/week @ 2024-10-02 1990/week @ 2024-10-09 4931/week @ 2024-10-16 2146/week @ 2024-10-23

11,993 downloads per month
Used in 9 crates (3 directly)

MIT license

29KB
611 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

~6–13MB
~171K SLoC