Cargo Features

[dependencies]
ngx = { version = "0.5.0", default-features = false, features = ["async", "alloc", "serde", "std", "vendored"] }
default = std

The std feature is set by default whenever ngx is added without default-features = false somewhere in the dependency tree.

async = alloc

Enables a minimal async runtime built on top of the NGINX event loop.

Enables async-task and pin-project-lite

Affects ngx::async_

alloc async? std

Provides APIs that require allocations via the alloc crate.

Enables alloc of allocator-api2

serde

Enables serialization support for some of the provided and re-exported types.

Enables serde of allocator-api2

std default = alloc

Provides APIs that require the standard library.

Enables std of allocator-api2

vendored

Enables the build scripts to build a copy of nginx source and link against it.

Enables vendored of nginx-sys