2 releases

0.1.1 May 15, 2024
0.1.0 May 12, 2024

#30 in #depend

Download history 217/week @ 2024-05-10 54/week @ 2024-05-17 11/week @ 2024-05-24

282 downloads per month
Used in mfem

MIT license

335KB
9K SLoC

C++ 7.5K SLoC // 0.1% comments GLSL 1K SLoC Rust 289 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.6–2MB
~31K SLoC