From af084e092eae18efa616fee8128c328de4af9cc6 Mon Sep 17 00:00:00 2001 From: tottoto Date: Fri, 1 Dec 2023 02:26:05 +0900 Subject: [PATCH 1/3] Bump alpha dependency versions --- Cargo.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 68f4e01..73966cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,16 +15,16 @@ http = "0.2" hyper = { version = "0.14", default-features = false, features = ["client"] } log = { version = "0.4.4", optional = true } pki-types = { package = "rustls-pki-types", version = "0.2" } -rustls-native-certs = { version = "=0.7.0-alpha.2", optional = true } -rustls = { version = "=0.22.0-alpha.5", default-features = false } +rustls-native-certs = { version = "=0.7.0-alpha.3", optional = true } +rustls = { version = "=0.22.0-alpha.6", default-features = false } tokio = "1.0" -tokio-rustls = { version = "=0.25.0-alpha.3", default-features = false } +tokio-rustls = { version = "=0.25.0-alpha.4", default-features = false } webpki-roots = { version = "=0.26.0-alpha.2", optional = true } futures-util = { version = "0.3", default-features = false } [dev-dependencies] hyper = { version = "0.14", features = ["full"] } -rustls = { version = "=0.22.0-alpha.5", default-features = false, features = ["tls12"] } +rustls = { version = "=0.22.0-alpha.6", default-features = false, features = ["tls12"] } rustls-pemfile = "=2.0.0-alpha.2" tokio = { version = "1.0", features = ["io-std", "macros", "net", "rt-multi-thread"] } From feeb9957ab653d38194eb48fb10e1d72f34c7980 Mon Sep 17 00:00:00 2001 From: tottoto Date: Fri, 1 Dec 2023 02:27:08 +0900 Subject: [PATCH 2/3] Enable required ring feature on acceptor feature --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 73966cd..80126d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ tokio = { version = "1.0", features = ["io-std", "macros", "net", "rt-multi-thre [features] default = ["native-tokio", "http1", "tls12", "logging", "acceptor", "ring"] -acceptor = ["hyper/server", "tokio-runtime"] +acceptor = ["hyper/server", "ring", "tokio-runtime"] http1 = ["hyper/http1"] http2 = ["hyper/http2"] webpki-tokio = ["tokio-runtime", "webpki-roots"] From 154294078d37af388f8f4f2dacdd6ba951aeec1c Mon Sep 17 00:00:00 2001 From: tottoto Date: Fri, 1 Dec 2023 02:30:26 +0900 Subject: [PATCH 3/3] Add ci to check feature powerset --- .github/workflows/build.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c67250..7f94b76 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -145,3 +145,17 @@ jobs: with: components: clippy - run: cargo clippy --all-features -- --deny warnings + + features: + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + with: + persist-credentials: false + - name: Install rust toolchain + uses: dtolnay/rust-toolchain@stable + - name: Install cargo-hack + uses: taiki-e/install-action@cargo-hack + - name: Check feature powerset + run: cargo hack --no-dev-deps check --feature-powerset --depth 2