chapter four

4 Advanced FFI

 

This chapter covers:

4.1 Download the NGINX source code

4.2 Create the NGINX module

4.3 Link C to Rust

4.3.1 Build Scripts

4.3.2 Bindgen

4.4 Read the NGINX request

4.4.1 Lifetime Annotations

4.4.2 Lifetime annotations in our NGINX plugin

4.5 Use our calculator library

4.6 Writing the HTTP response

4.7 Summary