Skip to content

Commit b2d1e7b

Browse files
chore: prevent concurrent fips and default features
1 parent fe224ab commit b2d1e7b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

bottlecap/src/bin/bottlecap/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ use tokio_util::sync::CancellationToken;
7474
use tracing::{debug, error};
7575
use tracing_subscriber::EnvFilter;
7676

77+
#[cfg(all(feature = "default", feature = "fips"))]
78+
compile_error!("When building in fips mode, the default feature must be disabled");
79+
7780
#[cfg(feature = "fips")]
7881
fn log_fips_status() {
7982
debug!("FIPS mode is enabled");

0 commit comments

Comments
 (0)