# ArvanNginx-rs [![crates.io](https://img.shields.io/crates/v/arvannginx.svg)](https://crates.io/crates/arvannginx) [![Documentation](https://img.shields.io/badge/Docs-arvannginx-blue.svg)](https://docs.rs/arvannginx) [![Build Status](https://travis-ci.org/arvancloud/arvannginx-rs.svg?branch=master)](https://travis-ci.org/arvancloud/arvannginx-rs) ![Crates.io](https://img.shields.io/crates/l/rustc-serialize.svg) ![Nginx](https://img.shields.io/badge/ArvanNginx-1.17.0.1-orange.svg) This crate provides [ArvanNginx](https://github.com/arvancloud/arvannginx) bindings for Rust. Currently, only Linux is supported. If you are looking for Nginx bindings for Rust, please check [nginx](https://crates.io/crates/nginx) crate. ## How to Use 1. Add `arvannginx` crate to Cargo.toml ```toml [dependencies] arvannginx = "0.1" ``` **Note:** In order to build the crate, `clang` ang `git` must be installed and the following command must be executed on the host: ```sh sed -i 's:# define IPPORT_RESERVED:// #define IPPORT_RESERVED:' /usr/include/netdb.h ``` ## Build It is recommended to use [Docker](https://docs.docker.com/) to build the crate: ```sh make build-image make build ``` **Note:** The version (tag) of ArvanNginx could be set using `ARVANNGINX_VERSION` environment variable, if it is not set, the default version is used: ```sh ARVANNGINX_VERSION=1.17.0.1 cargo build ```