Crates.io | nginx-rs |
lib.rs | nginx-rs |
version | 0.1.0 |
source | src |
created_at | 2021-06-07 19:34:49.361107 |
updated_at | 2021-06-07 19:34:49.361107 |
description | Nginx modules in Rust |
homepage | https://github.com/dcoles/nginx-rs |
repository | https://github.com/dcoles/nginx-rs |
max_upload_size | |
id | 407447 |
size | 22,547 |
A framework for writing Nginx modules in pure Rust.
This module is in early stages. It lacks documentation and the API is still quite unstable. But it can be used to write simple request handlers for content or access control.
Building modules requires a checkout of the Nginx sources configured for building dynamic modules:
export NGINX_DIR=/path/to/nginx
cd "${NGINX_DIR}"
auto/configure --with-compat
Once Nginx is configured, you can then build your module:
cd /path/to/module
cargo build --release
The resulting .so
in target/release
can then be loaded using the
load_module
directive.
This project is licensed under the terms of the MIT license.