#host #interface #gateway #running #server #wcgi

wcgi-host

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

3 releases

0.1.2 Apr 5, 2023
0.1.1 Apr 1, 2023
0.1.0 Feb 22, 2023

#1399 in WebAssembly

Download history 996/week @ 2023-12-07 1078/week @ 2023-12-14 1872/week @ 2023-12-21 812/week @ 2023-12-28 2466/week @ 2024-01-04 1368/week @ 2024-01-11 718/week @ 2024-01-18 1940/week @ 2024-01-25 1489/week @ 2024-02-01 739/week @ 2024-02-08 1401/week @ 2024-02-15 2034/week @ 2024-02-22 1504/week @ 2024-02-29 1672/week @ 2024-03-07 1501/week @ 2024-03-14 1207/week @ 2024-03-21

6,182 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–9MB
~185K SLoC