Skip to content

Commit

Permalink
Add explicit feature requirements for examples and tests
Browse files Browse the repository at this point in the history
This allow us to build 'actix-web' without default features and run all
tests.

Signed-off-by: Otavio Salvador <[email protected]>
  • Loading branch information
otavio committed Mar 26, 2020
1 parent 2067331 commit 7b7daa7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ openssl = ["actix-tls/openssl", "awc/openssl", "open-ssl"]
# rustls
rustls = ["actix-tls/rustls", "awc/rustls", "rust-tls"]

[[example]]
name = "basic"
required-features = ["compress"]

[[example]]
name = "uds"
required-features = ["compress"]

[[test]]
name = "test_server"
required-features = ["compress"]

[dependencies]
actix-codec = "0.2.0"
actix-service = "1.0.2"
Expand Down

0 comments on commit 7b7daa7

Please sign in to comment.