Skip to content

Commit

Permalink
only enable actix-http's http2 feature when TLS features are enabled
Browse files Browse the repository at this point in the history
closes #3071
  • Loading branch information
robjtede committed Jul 17, 2023
1 parent c34a18f commit e4e839f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actix-web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ cookies = ["cookie"]
secure-cookies = ["cookies", "cookie/secure"]

# TLS via OpenSSL
openssl = ["actix-http/openssl", "actix-tls/accept", "actix-tls/openssl"]
openssl = ["actix-http/http2", "actix-http/openssl", "actix-tls/accept", "actix-tls/openssl"]

# TLS via Rustls
rustls = ["actix-http/rustls", "actix-tls/accept", "actix-tls/rustls"]
rustls = ["actix-http/http2", "actix-http/rustls", "actix-tls/accept", "actix-tls/rustls"]

# Internal (PRIVATE!) features used to aid testing and checking feature status.
# Don't rely on these whatsoever. They may disappear at anytime.
Expand All @@ -68,7 +68,7 @@ actix-service = "2"
actix-utils = "3"
actix-tls = { version = "3", default-features = false, optional = true }

actix-http = { version = "3.3", features = ["http2", "ws"] }
actix-http = { version = "3.3", features = ["ws"] }
actix-router = "0.5"
actix-web-codegen = { version = "4.2", optional = true }

Expand Down

0 comments on commit e4e839f

Please sign in to comment.