Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/arvancloud/nginx-rs

nginx bindings for Rust
https://github.com/arvancloud/nginx-rs

nginx rust rust-bindings rust-crate

Last synced: 3 months ago
JSON representation

nginx bindings for Rust

Lists

README

        

# nginx-rs

[![crates.io](https://img.shields.io/crates/v/nginx.svg)](https://crates.io/crates/nginx) [![Documentation](https://img.shields.io/badge/Docs-nginx-blue.svg)](https://arvancloud.github.io/nginx-rs) [![Build Status](https://travis-ci.org/arvancloud/nginx-rs.svg?branch=master)](https://travis-ci.org/arvancloud/nginx-rs) ![Crates.io](https://img.shields.io/crates/l/rustc-serialize.svg) ![Nginx](https://img.shields.io/badge/nginx-1.19.3-orange.svg)

This crate provides [nginx](https://nginx.org/) bindings for Rust. Currently, only Linux is supported.

## How to Use

1. Add `nginx` crate to Cargo.toml

```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.

## 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](https://github.com/nginxinc/ngx-rust).