nginx-rs

crates.io Documentation Build Status Crates.io Nginx

This crate provides nginx bindings for Rust. Currently, only Linux is supported.

How to Use

  1. Add nginx crate to Cargo.toml

toml [dependencies] nginx = "0.5"

Note: In order to build the crate, clang must be installed and the following command must be executed on the host:

sh sed -i 's:# define IPPORT_RESERVED:// #define IPPORT_RESERVED:' /usr/include/netdb.h

Build

It is recommended to use Docker to build the crate:

sh make build-image make build

Environment Variables

Some code were copied (and refactored) from nginxinc/ngx-rust.