This crate provides nginx bindings for Rust. Currently, only Linux is supported.
- Add
nginxcrate to Cargo.toml
[dependencies]
nginx = { git = "https://github.com/arvancloud/nginx-rs.git", tag = "0.15.0" }Note: In order to build the crate, clang must be installed.
NGINX_VERSIONDetermines the version of nginx, if it is not set, the default version is used.NGINX_PATHDetermines 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.