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

#431 in #build

Download history 3/week @ 2024-02-23 7/week @ 2024-03-01 3/week @ 2024-03-08 73/week @ 2024-03-29 25/week @ 2024-04-05

98 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.7MB
~34K SLoC