3 unstable releases

new 0.2.0 Oct 19, 2024
0.1.1 May 15, 2024
0.1.0 May 12, 2024

#10 in #depend

Download history 18/week @ 2024-09-23 117/week @ 2024-10-14

135 downloads per month
Used in mfem

MIT license

335KB
9K SLoC

C++ 7.5K SLoC // 0.1% comments GLSL 1K SLoC Rust 290 SLoC // 0.1% comments Shell 18 SLoC

mfem-sys

Part of mfem-rs, a Rust wrapper for MFEM.

⚠️ Work in Progress ⚠️

This crate is currently under heavy development and as such, is likely unstable.
Please file an issue and bear with us while we sort things out! Thanks! :)

About

  • If you just want to use MFEM from Rust, depend on the mfem crate instead.
  • This crate is very low level and thus cumbersom to use.
  • A safe FFI (foreign-function interface) to use MFEM from Rust.
  • Uses the cxx crate to generate safe and correct bindings.
  • Encodes MFEM's ownership rules into Rust's type system.
  • Turns various MFEM int constants into type-safe Rust enums.
  • Depends on mfem-cpp.

Dependencies

~0.5–2.1MB
~33K SLoC