File tree Expand file tree Collapse file tree 3 files changed +37
-9
lines changed Expand file tree Collapse file tree 3 files changed +37
-9
lines changed Original file line number Diff line number Diff line change @@ -45,24 +45,24 @@ pin-project-lite = { version = "0.2.16", optional = true }
45
45
46
46
[features ]
47
47
default = [" std" ]
48
+ # Enables a minimal async runtime built on top of the NGINX event loop.
48
49
async = [
49
50
" alloc" ,
50
51
" dep:async-task" ,
51
52
" dep:pin-project-lite" ,
52
53
]
53
- # Enables the components using memory allocation.
54
- # If no `std` flag, `alloc` crate is internally used instead. This flag is mainly for `no_std` build.
54
+ # Provides APIs that require allocations via the `alloc` crate.
55
55
alloc = [" allocator-api2/alloc" ]
56
- # Enables serde support for some of the provided types.
56
+ # Enables serialization support for some of the provided and re-exported types.
57
57
serde = [
58
58
" allocator-api2/serde" ,
59
59
]
60
- # Enables the components using `std` crate .
60
+ # Provides APIs that require the standard library .
61
61
std = [
62
62
" alloc" ,
63
63
" allocator-api2/std"
64
64
]
65
- # Build our own copy of the NGINX from `nginx-src` crate .
65
+ # Enables the build scripts to build a copy of nginx source and link against it .
66
66
vendored = [" nginx-sys/vendored" ]
67
67
68
68
[badges ]
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ By default, this will use the latest stable release of NGINX and require
60
60
system-wide installation of build dependencies (OpenSSL, PCRE2, Zlib).
61
61
62
62
The behavior of vendored builds can be customized with environment variables,
63
- as documented in the [ nginx-src] ( ./nginx-src/ ) crate README.
63
+ as documented in the [ nginx-src] crate README.
64
64
65
65
** NOTE** : We recommend to build the module binaries against the exact source and
66
66
configuration of the NGINX build that you are planning to use in production,
@@ -70,7 +70,21 @@ and that is unlikely to be possible with the vendored source.
70
70
and some OS distributions are known to ship nginx packages with API-breaking
71
71
patches applied.
72
72
73
- ### Dependencies
73
+ [ nginx-src ] : https://docs.rs/nginx-src/
74
+
75
+ ## Cargo features
76
+
77
+ - ` alloc ` - ** Enabled** by default. This provides APIs that require allocations
78
+ via the ` alloc ` crate.
79
+ - ` async ` - Enables a minimal async runtime built on top of the NGINX event loop.
80
+ - ` serde ` - Enables serialization support for some of the provided and
81
+ re-exported types.
82
+ - ` std ` - ** Enabled** by default. This provides APIs that require the standard
83
+ library.
84
+ - ` vendored ` : Enables the build scripts to build a copy of nginx source and link
85
+ against it. See the [ nginx-src] crate documentation for additional details.
86
+
87
+ ## Dependencies
74
88
75
89
The following dependencies are required to build a Rust NGINX module on Linux
76
90
or BSD platform:
Original file line number Diff line number Diff line change 53
53
//! system-wide installation of build dependencies (OpenSSL, PCRE2, Zlib).
54
54
//!
55
55
//! The behavior of vendored builds can be customized with environment variables,
56
- //! as documented in the [nginx-src](./nginx-src/) crate README.
56
+ //! as documented in the [nginx-src] crate README.
57
57
//!
58
58
//! **NOTE**: We recommend to build the module binaries against the exact source and
59
59
//! configuration of the NGINX build that you are planning to use in production,
63
63
//! and some OS distributions are known to ship nginx packages with API-breaking
64
64
//! patches applied.
65
65
//!
66
- //! ### Dependencies
66
+ //! [nginx-src]: https://docs.rs/nginx-src/
67
+ //!
68
+ //! ## Cargo features
69
+ //!
70
+ //! - `alloc` - **Enabled** by default. This provides APIs that require allocations
71
+ //! via the `alloc` crate.
72
+ //! - `async` - Enables a minimal async runtime built on top of the NGINX event loop.
73
+ //! - `serde` - Enables serialization support for some of the provided and
74
+ //! re-exported types.
75
+ //! - `std` - **Enabled** by default. This provides APIs that require the standard
76
+ //! library.
77
+ //! - `vendored`: Enables the build scripts to build a copy of nginx source and link
78
+ //! against it. See the [nginx-src] crate documentation for additional details.
79
+ //!
80
+ //! ## Dependencies
67
81
//!
68
82
//! The following dependencies are required to build a Rust NGINX module on Linux
69
83
//! or BSD platform:
You can’t perform that action at this time.
0 commit comments