nginx 0.4.1

Rust bindings for Nginx
docs.rs failed to build nginx-0.4.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

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
[dependencies]
nginx = "0.4"

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

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

Build

It is recommended to use Docker to build the crate:

make build-image
make build

Note: The version of Nginx could be set using NGINX_VERSION environment variable, if it is not set, the default version is used:

NGINX_VERSION=1.15.8 cargo build

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