• All Packages
  • Criteria
    • All Packages
    • Criteria
  • Readme
  • Versions (1)

argumentcomputerRustFFI.lean

Template for Lean<->Rust FFI

METADATA

  • 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
  • 52 more

REPOSITORY

argumentcomputer/RustFFI.lean

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.

Get Started

  • Install
  • Learn
  • Community
  • Reservoir

Documentation

  • Language reference
  • Lean API
  • Use cases
  • Cite Lean

Resources

  • Lean playground
  • VS Code extension
  • Loogle
  • Mathlib

FRO

  • Mission
  • Team
  • Roadmap
  • Contact

Policies

  • Privacy Policy
  • Terms of Use
© 2025 Lean FRO. All rights reserved.