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
- Host: GitHub
- URL: https://github.com/arvancloud/nginx-rs
- Owner: arvancloud
- License: apache-2.0
- Archived: true
- Created: 2018-11-21T20:20:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-31T05:06:06.000Z (about 2 years ago)
- Last Synced: 2024-03-23T01:21:03.796Z (3 months ago)
- Topics: nginx, rust, rust-bindings, rust-crate
- Language: Rust
- Homepage: https://crates.io/crates/nginx
- Size: 17.8 MB
- Stars: 110
- Watchers: 8
- Forks: 18
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Lists
- awesome-rust-zh - arvancloud/nginx-rs - [Nginx](https://www.nginx.com)绑定 [<img src="https://api.travis-ci.org/arvancloud/nginx-rs.svg?branch=master">](https://travis-ci.org/arvancloud/nginx-rs) (库 / 平台特定)
- awesome-rust - arvancloud/nginx-rs - ci.org/arvancloud/nginx-rs.svg?branch=master)](https://travis-ci.org/arvancloud/nginx-rs) (Libraries / Platform specific)
- my-awesome-stars - arvancloud/nginx-rs - nginx bindings for Rust (Rust)
- awesome-rust - arvancloud/nginx-rs - ci.org/arvancloud/nginx-rs.svg?branch=master">](https://travis-ci.org/arvancloud/nginx-rs) (Libraries / Platform specific)
- awesome-rust-cn - arvancloud/nginx-rs - ci.org/arvancloud/nginx-rs.svg?branch=master">](https://travis-ci.org/arvancloud/nginx-rs) (Libraries / Platform specific)
- awesome-rust-cn - arvancloud/nginx-rs
- awesome-rust - arvancloud/nginx-rs - ci.org/arvancloud/nginx-rs.svg?branch=master">](https://travis-ci.org/arvancloud/nginx-rs) (库 Libraries / 平台标准 Platform specific)
- awesome-rust - arvancloud/nginx-rs - ci.org/arvancloud/nginx-rs.svg?branch=master)](https://travis-ci.org/arvancloud/nginx-rs) (Libraries / Platform specific)
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).