Skip to content

Commit 2960a9b

Browse files
authored
Improve error messages for feature flags
1 parent 655abeb commit 2960a9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
#[cfg(all(feature = "rust_crypto", feature = "aws_lc_rs"))]
99
compile_error!(
10-
"feature \"rust_crypto\" and feature \"aws_lc_rs\" cannot be enabled at the same time"
10+
"Feature \"rust_crypto\" and \"aws_lc_rs\" are mutually exclusive and cannot be enabled at the same time"
1111
);
1212

1313
#[cfg(not(any(feature = "rust_crypto", feature = "aws_lc_rs")))]
14-
compile_error!("at least one of the features \"rust_crypto\" or \"aws_lc_rs\" must be enabled");
14+
compile_error!("Exactly one of the \"rust_crypto\" or \"aws_lc_rs\" features must be enabled");
1515

1616
pub use algorithms::Algorithm;
1717
pub use decoding::{DecodingKey, TokenData, decode, decode_header};

0 commit comments

Comments
 (0)