Skip to content

Commit

Permalink
chore: add Cargo features
Browse files Browse the repository at this point in the history
  • Loading branch information
JyJyJcr authored and bavshin-f5 committed Jan 3, 2025
1 parent 61a8cde commit 89cf0e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,16 @@ repository.workspace = true
rust-version.workspace = true

[dependencies]
nginx-sys = { path = "nginx-sys", version = "0.5.0"}
nginx-sys = { path = "nginx-sys", default-features=false, version = "0.5.0"}

[features]
default = ["vendored"]
default = ["vendored","std"]
# Enables the components using memory allocation.
# If no `std` flag, `alloc` crate is internally used instead. This flag is mainly for `no_std` build.
alloc = []
# Enables the components using `std` crate.
# Currently the only difference to `alloc` flag is `std::error::Error` implementation.
std = ["alloc"]
# Build our own copy of the NGINX by default.
# This could be disabled with `--no-default-features` to minimize the dependency tree
# when building against an existing copy of the NGINX with the NGX_OBJS variable.
Expand Down
2 changes: 1 addition & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build = "../build.rs"

[dependencies]
nginx-sys = { path = "../nginx-sys/", default-features = false }
ngx = { path = "../", default-features = false }
ngx = { path = "../", default-features = false, features = ["std"] }

[dev-dependencies]
aws-sign-v4 = "0.3.0"
Expand Down

0 comments on commit 89cf0e0

Please sign in to comment.