Skip to content

Commit d007dd7

Browse files
committed
docs: move feature explanation
1 parent 51c17f8 commit d007dd7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ nginx-sys = { path = "nginx-sys", default-features=false, version = "0.5.0"}
2929

3030
[features]
3131
default = ["vendored","std"]
32-
# use allocation
32+
# Enables the components using memory allocation.
33+
# If no `std` flag, `alloc` crate is internally used instead. This flag is mainly for `no_std` build.
3334
alloc = []
34-
# use std
35+
# Enables the components using `std` crate.
36+
# Currently the only difference to `alloc` flag is `std::error::Error` implementation.
3537
std = ["alloc"]
3638
# Build our own copy of the NGINX by default.
3739
# This could be disabled with `--no-default-features` to minimize the dependency tree

nginx-sys/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ nginx-sys = "0.5.0"
1616

1717
- `vendored`: Enables the build scripts to download and build a copy of nginx source and link against it.
1818
This feature is enabled by default.
19-
- `alloc`: Enables the components using memory allocation. If no `std` flag, `alloc` crate is internally used instead. This flag is mainly for `no_std` build.
20-
- `std`: Enables the components using `std` crate. Currently the available components are same to when specifying `alloc` only.
21-
This feature is enabled by default.
2219

2320
## Output variables
2421

0 commit comments

Comments
 (0)