Reservoir

No results found
All Packages

RustFFI.lean

Template for Lean<->Rust FFI
  • Readme
  • Versions (1)

RustFFI.lean

A template for calling Rust functions in Lean using Lean's C FFI.

Based on the Lake FFI example and Rust's FFI docs.

Running

Build/run Main.lean with lake exe ffi

It should print the result of 1 + 2.

Troubleshooting

Run lake clean and/or cargo clean after making changes.

  • MIT
  • 3 months ago
    Last updated on April 2, 2025 at 12:20:19PM
  • 12 stars

Lean

  • Commit af3a8f6 (latest) builds on its old leanprover/lean4:nightly-2022-12-08
    nightly-2022-12-08
  • 51 more

Repository

argumentcomputer/RustFFI.lean

About

  • lean-lang.org
  • The Lean FRO
  • Terms of Use
  • Privacy Policy

Explore

  • Games
  • Playground
  • Community
  • Moogle
  • Loogle

Learn

  • The Lean Manual
  • Theorem Proving in Lean
  • Functional Programming in Lean
  • Mathematics in Lean
  • The Mechanics of Proof
  • How To Prove It With Lean

Social

  • leanprover
  • @leanprover
  • Lean FRO
  • leanprover