Skip to content

Commit f02cb50

Browse files
committed
feat!: disable ngx/vendored by default
1 parent c7f7089 commit f02cb50

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- name: rustdoc
8383
# always run if build succeeds
8484
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
85-
run: cargo doc --no-deps
85+
run: cargo doc --all-features --no-deps
8686

8787
examples-linux:
8888
name: Examples (Linux)
@@ -156,9 +156,9 @@ jobs:
156156
- name: disable ipv6 for gpg
157157
run: echo "disable-ipv6" > .cache/.gnupg/dirmngr.conf
158158
- name: build
159-
run: cargo build
159+
run: cargo build --workspace --all-targets --features "async,vendored"
160160
- name: run tests
161-
run: cargo test --workspace
161+
run: cargo test --workspace --features "async,vendored"
162162

163163
fmt:
164164
name: Rustfmt

Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ nginx-sys = { path = "nginx-sys", default-features=false, version = "0.5.0"}
3737
pin-project-lite = { version = "0.2.16", optional = true }
3838

3939
[features]
40-
default = ["std", "vendored"]
40+
default = ["std"]
4141
async = [
4242
"alloc",
4343
"dep:async-task",
@@ -55,10 +55,7 @@ std = [
5555
"alloc",
5656
"allocator-api2/std"
5757
]
58-
# Build our own copy of the NGINX by default.
59-
# This could be disabled with `--no-default-features` to minimize the dependency
60-
# tree when building against an existing copy of the NGINX with the
61-
# NGINX_SOURCE_DIR/NGINX_BUILD_DIR variables.
58+
# Build our own copy of the NGINX from `nginx-src` crate.
6259
vendored = ["nginx-sys/vendored"]
6360

6461
[badges]

0 commit comments

Comments
 (0)