#host #interface #gateway #running #server #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

#877 in WebAssembly

Download history 1501/week @ 2024-03-14 1347/week @ 2024-03-21 1198/week @ 2024-03-28 1823/week @ 2024-04-04 1951/week @ 2024-04-11 1907/week @ 2024-04-18 2748/week @ 2024-04-25 1933/week @ 2024-05-02 5245/week @ 2024-05-09 6991/week @ 2024-05-16 8479/week @ 2024-05-23 7851/week @ 2024-05-30 3609/week @ 2024-06-06 2005/week @ 2024-06-13 2085/week @ 2024-06-20 676/week @ 2024-06-27

8,907 downloads per month
Used in 10 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.5–8.5MB
~177K SLoC