Skip to content

Commit ea283cd

Browse files
committed
Update to v0.18.0
1 parent b624435 commit ea283cd

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lbug"
3-
version = "0.17.0"
3+
version = "0.18.0"
44
description = "An in-process property graph database management system built for query speed and scalability"
55
keywords = ["database", "graph", "ffi"]
66
readme = "lbug-src/README.md"

build.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,21 @@ fn link_libraries(link_bundled_deps: bool) {
4040
println!("cargo:rustc-link-lib=dylib=stdc++");
4141
}
4242

43+
// liblbug.a requires OpenSSL — try pkg-config for the lib path, then emit link directives
44+
if let Ok(output) = std::process::Command::new("pkg-config")
45+
.args(["--variable=libdir", "openssl"])
46+
.output()
47+
{
48+
if output.status.success() {
49+
let lib_dir = String::from_utf8_lossy(&output.stdout).trim().to_string();
50+
if !lib_dir.is_empty() {
51+
println!("cargo:rustc-link-search=native={lib_dir}");
52+
}
53+
}
54+
}
55+
println!("cargo:rustc-link-lib=dylib=ssl");
56+
println!("cargo:rustc-link-lib=dylib=crypto");
57+
4358
if !link_bundled_deps {
4459
return;
4560
}

0 commit comments

Comments
 (0)