Cargo Features
[dependencies]
ngx = { version = "0.5.0", default-features = false, features = ["async", "alloc", "serde", "std", "vendored"] }
- default = std
-
The
stdfeature is set by default wheneverngxis added withoutsomewhere in the dependency tree.default-features = false - 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
alloccrate.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.