Skip to content

Commit e1a2eb9

Browse files
committed
ci: test more feature flag combinations
1 parent 0b6c759 commit e1a2eb9

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,12 @@ jobs:
110110
matrix:
111111
features:
112112
- # Default
113-
- --features=alloc
114113
- --all-features
115114
- --no-default-features
115+
- --no-default-features --features aws-lc-rs
116+
- --no-default-features --features ring
117+
- --no-default-features --features alloc,aws-lc-rs
118+
- --no-default-features --features alloc,ring
116119
- --no-default-features --features alloc,std,aws_lc_rs
117120
- --no-default-features --features alloc,std,ring
118121

tests/amazon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: ISC
2-
#![cfg(any(feature = "ring", feature = "aws-lc-rs"))]
2+
#![cfg(all(feature = "alloc", any(feature = "ring", feature = "aws-lc-rs")))]
33

44
use core::time::Duration;
55

tests/integration.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ fn netflix() {
4949
}
5050

5151
/// See also https://github.com/rustls/rustls/issues/2448
52+
#[cfg(feature = "alloc")]
5253
#[test]
5354
fn sanofi_rsa_signature_with_absent_algorithm_params() {
5455
let ee: &[u8] = include_bytes!("sanofi/ee.der");

tests/signatures.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1313
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1414

15-
#![cfg(any(feature = "ring", feature = "aws-lc-rs"))]
15+
#![cfg(all(feature = "alloc", any(feature = "ring", feature = "aws-lc-rs")))]
1616

1717
use pki_types::{CertificateDer, SignatureVerificationAlgorithm};
1818
#[cfg(feature = "ring")]
@@ -35,7 +35,6 @@ use webpki::aws_lc_rs::{
3535
RSA_PSS_2048_8192_SHA512_LEGACY_KEY,
3636
};
3737

38-
#[cfg(feature = "alloc")]
3938
fn check_sig(
4039
ee: &[u8],
4140
alg: &dyn SignatureVerificationAlgorithm,
@@ -47,7 +46,6 @@ fn check_sig(
4746
cert.verify_signature(alg, message, signature)
4847
}
4948

50-
#[cfg(feature = "alloc")]
5149
fn check_sig_rpk(
5250
spki: &[u8],
5351
alg: &dyn SignatureVerificationAlgorithm,

0 commit comments

Comments
 (0)