Skip to content

Commit efdc6ec

Browse files
Add a warning when static-link-z3 is used.
1 parent cfe3dd6 commit efdc6ec

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

z3-sys/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ bundled = ["dep:cmake"] # Build Z3 via our bundled submodule.
2525
vcpkg = ["dep:vcpkg"] # Build Z3 via vcpkg.
2626

2727
# Legacy feature for short term compatibility
28-
static-link-z3 = ["bundled"]
28+
static-link-z3 = ["bundled", "deprecated-static-link-z3"]
29+
deprecated-static-link-z3 = []

z3-sys/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ fn main() {
44
#[cfg(feature = "bundled")]
55
build_bundled_z3();
66

7+
#[cfg(feature = "deprecated-static-link-z3")]
8+
println!("cargo:warning=The 'static-link-z3' feature is deprecated. Please use the 'bundled' feature.");
9+
710
println!("cargo:rerun-if-changed=build.rs");
811

912
#[cfg(not(feature = "vcpkg"))]

z3/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ bundled = ["z3-sys/bundled"]
2020
vcpkg = ["z3-sys/vcpkg"]
2121

2222
# This is a legacy feature here for short term compatibility.
23-
static-link-z3 = ["z3-sys/bundled"]
23+
static-link-z3 = ["z3-sys/bundled", "z3-sys/deprecated-static-link-z3"]
2424

2525
[dependencies]
2626
log = "0.4"

0 commit comments

Comments
 (0)