21 releases (9 breaking)

Uses old Rust 2015

0.10.0 Oct 27, 2020
0.9.6 Jul 13, 2020
0.9.0 Jun 30, 2020
0.7.1 Mar 3, 2020
0.1.2 Nov 27, 2018

#471 in #build

Download history 2/week @ 2024-03-10 98/week @ 2024-03-31

51 downloads per month

MIT/Apache

10KB
230 lines

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.10"

Note: In order to build the crate, clang must be installed.

Environment Variables

  • NGINX_VERSION Determines the version of nginx, if it is not set, the default version is used.
  • NGINX_PATH Determines the local absolute path of pre-cloned nginx, if it is not set, nginx is downloaded.

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

No runtime deps

~0–1.8MB
~34K SLoC