2024-03-04 21:08:55 -08:00
|
|
|
# Rust Call Lean
|
|
|
|
|
|
|
|
A tiny example of calling Lean's FFI from Rust with Nix.
|
|
|
|
|
|
|
|
This is based on:
|
|
|
|
* [Lean4 Reverse FFI](https://github.com/leanprover/lean4/tree/master/src/lake/examples/reverse-ffi)
|
|
|
|
* [Lean4 FFI](https://lean-lang.org/lean4/doc/dev/ffi.html#initialization)
|
|
|
|
* [Rustonomicon FFI](https://doc.rust-lang.org/nomicon/ffi.html)
|
|
|
|
* [Rust Bindgen](https://rust-lang.github.io/rust-bindgen/introduction.html)
|
2024-03-05 15:57:48 -08:00
|
|
|
* [Rust Bindgen Static Functions](https://github.com/rust-lang/rust-bindgen/discussions/2405)
|