Skip to content

Commit bd63bdb

Browse files
committed
Narrow default features to stable core
1 parent 5ab0bc6 commit bd63bdb

5 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
cargo test --no-default-features --features proxy,cache
5454
cargo test --no-default-features --features cache
5555
cargo test --no-default-features --features web
56+
cargo test --no-default-features --features proxy,metrics
57+
cargo test --no-default-features --features proxy,tls-rustls,acme
5658
cargo check --no-default-features --features proxy,tls-rustls
5759
5860
- name: Validate example configs

Cargo.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@ edition = "2024"
55
rust-version = "1.95"
66
license = "EUPL-1.2"
77
publish = false
8-
description = "A modular Pingora-based reverse proxy, static web server, and cache."
8+
description = "A modular Pingora-based reverse proxy and static web server."
99

1010
[features]
1111
default = [
1212
"proxy",
13-
"load-balancer",
14-
"cache",
1513
"web",
16-
"tls",
17-
"acme",
18-
"metrics",
14+
"tls-rustls",
1915
"security",
2016
]
2117
proxy = ["dep:async-trait", "dep:http", "dep:pingora", "dep:tokio"]

docs/release-checklist.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ cargo build --release --no-default-features --features proxy
6767
cargo build --release --no-default-features --features proxy,load-balancer
6868
cargo build --release --no-default-features --features web
6969
cargo build --release --no-default-features --features cache
70+
cargo build --release --no-default-features --features proxy,metrics
71+
cargo build --release --no-default-features --features proxy,tls-rustls,acme
7072
```
7173

7274
For hardware-specific local binaries, use `target-cpu=native` only for the

docs/versioning-plan.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,7 @@ These should not be promised in a stable minor until proven:
345345

346346
## What Changes In Cargo Defaults
347347

348-
Before `1.0`, the default feature set can be broad while development is active.
349-
For `1.0`, default features should be narrowed to stable core only:
348+
The `1.0` default feature set is intentionally narrowed to stable core only:
350349

351350
```toml
352351
default = ["proxy", "web", "tls-rustls", "security"]

scripts/checks.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ cargo test --no-default-features --features proxy,load-balancer
88
cargo test --no-default-features --features proxy,cache
99
cargo test --no-default-features --features cache
1010
cargo test --no-default-features --features web
11+
cargo test --no-default-features --features proxy,metrics
12+
cargo test --no-default-features --features proxy,tls-rustls,acme
1113
cargo check --no-default-features --features proxy,tls-rustls
1214
cargo run --quiet -- --check-config --config examples/fluxheim.toml >/dev/null
1315
cargo run --quiet -- --check-config --config examples/admin.toml >/dev/null

0 commit comments

Comments
 (0)