Skip to content

Commit

Permalink
Allow service account feature without hyper-rustls
Browse files Browse the repository at this point in the history
  • Loading branch information
threema-donat committed Jun 17, 2024
1 parent 0cc820e commit 2561770
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
matrix:
features: ["service_account,hyper-rustls,ring",
"service_account,hyper-rustls,aws-lc-rs",
"service_account,hyper-tls,ring", "service_account,hyper-tls,aws-lc-rs"
"service_account,ring", "hyper-rustls,ring"]
"service_account,hyper-tls,ring", "service_account,hyper-tls,aws-lc-rs",
"hyper-rustls,ring"]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ name = "tests"
required-features = ["hyper-rustls", "service-account", "ring"]

[features]
default = ["hyper-rustls", "rustls", "service-account", "ring"]
default = ["hyper-rustls", "service-account", "ring"]
service_account = ["service-account"]
service-account = ["hyper-rustls", "rustls", "rustls-pemfile"]
hyper-rustls = ["dep:hyper-rustls", "rustls"]
service-account = ["rustls-pemfile"]
hyper-rustls = ["dep:hyper-rustls", "dep:rustls"]
ring = ["rustls/ring", "hyper-rustls?/ring"]
aws-lc-rs = ["rustls/aws_lc_rs", "hyper-rustls?/aws-lc-rs"]
hyper-tls = ["dep:hyper-tls"]
hyper-tls = ["dep:hyper-tls", "dep:rustls"]

[dependencies]
anyhow = "1.0.38"
Expand Down
1 change: 1 addition & 0 deletions src/service_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ mod tests {
const TEST_PRIVATE_KEY_PATH: &str = "examples/Sanguine-69411a0c0eea.json";

// Uncomment this test to verify that we can successfully obtain tokens.
#[cfg(feature = "hyper-rustls")]
// #[tokio::test]
#[allow(dead_code)]
async fn test_service_account_e2e() {
Expand Down

0 comments on commit 2561770

Please sign in to comment.