2 releases

0.1.1 Nov 17, 2023
0.1.0 Nov 17, 2023

#1892 in Procedural macros

Download history 26/week @ 2024-06-07 31/week @ 2024-06-14 21/week @ 2024-06-21 43/week @ 2024-06-28 25/week @ 2024-07-05 7/week @ 2024-07-12 6/week @ 2024-07-19 12/week @ 2024-07-26 19/week @ 2024-08-02 6/week @ 2024-08-09 10/week @ 2024-08-16 14/week @ 2024-08-23 9/week @ 2024-08-30 17/week @ 2024-09-06 24/week @ 2024-09-13 34/week @ 2024-09-20

86 downloads per month

Apache-2.0

8KB
106 lines

Description

This repository contains Rust bindings to Nginx, allowing you to create Nginx modules using the Rust language.

Goals

  • Safety - This repository aims to provide safe abstractions on top of Nginx API. In particular, it aims to provide appropriate lifetimes to abstractions to leverage Rust borrow checker.
  • Ease of use - Abstactions are provided to hide Nginx API complexity.

Build

Prerequisites

  • Rust: Install with rustup: https://rustup.rs/
  • Nginx repository: This project needs the Nginx headers to generate the required Rust bindings to Nginx. At build time the nginx_module crate looks for the nginx folder starting with this module's folder and going upwards up to 4 levels so you can easily have an nginx folder side by side or use this as a submodule for nginx.

Building a module

Please look at the simple example for more details on how to build this.

Dependencies

~280–730KB
~18K SLoC