Skip to content

Commit b0c81b7

Browse files
committed
boring-sys v5 backwards-compat
1 parent e2ab93c commit b0c81b7

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

boring-sys/Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ rpk = []
6464
# `BORING_BSSL{,_FIPS}_SOURCE_PATH`.
6565
underscore-wildcards = []
6666

67+
# UNSUPPORTED. Do not use. Fails the build.
68+
fips-link-precompiled = []
69+
70+
# UNSUPPORTED. Do not use. Fails the build.
71+
fips-precompiled = []
72+
73+
# UNSUPPORTED. Do not use. Fails the build.
74+
pq-experimental = []
75+
6776
[build-dependencies]
6877
bindgen = { workspace = true }
6978
cmake = { workspace = true }

boring-sys/build/main.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,3 +723,12 @@ fn ensure_err_lib_enum_is_named(source_code: &mut Vec<u8>) {
723723
.as_bytes(),
724724
);
725725
}
726+
727+
#[cfg(feature = "pq-experimental")]
728+
compile_error!("boring-sys v5 has removed the `pq-experimental` Cargo feature. Unset it.");
729+
730+
#[cfg(feature = "fips-precompiled")]
731+
compile_error!("boring-sys v5 has removed the `fips-precompiled` Cargo feature. Unset it, and use the `fips` feature instead.");
732+
733+
#[cfg(feature = "fips-link-precompiled")]
734+
compile_error!("boring-sys v5 has removed the `fips-link-precompiled` Cargo feature. Unset it, and use the `fips` feature instead.");

0 commit comments

Comments
 (0)