Zulip Chat Archive
Stream: lean4
Topic: Finding leanshared.so
Jad Ghalayini (Jul 25 2022 at 20:36):
So I've been working on my Rust wrapper for lean.h
, which is basically complete at this point, and now I need to write a functioning build.rs
. Currently, I just point at the .elan
in my home directory to find leanshared.so
, which is no good. Does anyone know a good and portable way to find the appropriate leanshared.so
to link to, assuming it's been installed by elan
?
Mac (Jul 25 2022 at 21:32):
For given lean
, libleanshared
is located at:
$(lean --print-prefix)/lib/lean/libleanshared.<so|dylib>
on Unix (it is an so
on Linux, and adylib
on MacOS). On Windows, it is located at:
$(lean --print-prefix)/bin/libleanshared.dll
Jad Ghalayini (Jul 25 2022 at 21:54):
@Mac convenient. Ok I'll write it up as a script and probably publish the crate today after some testing and polish
Jad Ghalayini (Jul 26 2022 at 02:13):
Alright all done
Jad Ghalayini (Jul 26 2022 at 02:14):
Gonna write some tests and maybe clean up those bitfields, but other than that, anything else I should do before pushing gitlab.com/tekne/lean-sys to crates.io?
Jad Ghalayini (Jul 26 2022 at 02:14):
Other than ofc README, license, etc
Jad Ghalayini (Jul 26 2022 at 04:08):
Also update, version 0.0.1 is out: https://crates.io/crates/lean-sys
Last updated: Dec 20 2023 at 11:08 UTC