File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,16 @@ repository.workspace = true
25
25
rust-version.workspace = true
26
26
27
27
[dependencies ]
28
- nginx-sys = { path = " nginx-sys" , version = " 0.5.0" }
28
+ nginx-sys = { path = " nginx-sys" , default-features = false , version = " 0.5.0" }
29
29
30
30
[features ]
31
- default = [" vendored" ]
31
+ default = [" vendored" ," std" ]
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.
34
+ alloc = []
35
+ # Enables the components using `std` crate.
36
+ # Currently the only difference to `alloc` flag is `std::error::Error` implementation.
37
+ std = [" alloc" ]
32
38
# Build our own copy of the NGINX by default.
33
39
# This could be disabled with `--no-default-features` to minimize the dependency tree
34
40
# when building against an existing copy of the NGINX with the NGX_OBJS variable.
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ build = "../build.rs"
12
12
13
13
[dependencies ]
14
14
nginx-sys = { path = " ../nginx-sys/" , default-features = false }
15
- ngx = { path = " ../" , default-features = false }
15
+ ngx = { path = " ../" , default-features = false , features = [ " std " ] }
16
16
17
17
[dev-dependencies ]
18
18
aws-sign-v4 = " 0.3.0"
You can’t perform that action at this time.
0 commit comments