[Gmsh] Rust bindings experiment
Christophe Geuzaine
cgeuzaine at uliege.be
Sat Jul 27 20:30:20 CEST 2019
Hi Max,
Sounds cool - we've never used Rust... The simplest is indeed probably to just wrap our official C bindings.
Christophe
> On 26 Jul 2019, at 21:59, Max Orok <morok at mevex.com> wrote:
>
> Hello everyone,
>
> I was thinking about a set of Rust bindings for the Gmsh C API (v4.4) and made a very raw set using the bindgen tool:
> https://github.com/mxxo/gmsh-sys
>
> For a more idiomatic Rust API, I'll be following the re-implementation of the C++ API in C (gmsh.h_cwrap) as a guide.
>
> The naming for Rust's package manager is first come first serve (and undeleteable), so I thought I'd see if there were any objections to registering a "gmsh-sys" low-level C binding crate and a "gmsh" idiomatic Rust API crate.
>
> On the one hand, bindgen automatically generated Rust wrappers for Gmsh's C header, so it could theoretically be part of the build pipeline and included in the main repo. On the other hand, there may not be a huge appetite for Rust support among Gmsh's users, especially compared to C++ and Python. My impression is using Rust for scientific codes is a bit of an ongoing experiment.
>
> On the maintenance side, packaging up an unofficial library crate for distribution might be an interesting possibility without Gmsh having to explicitly support yet another language API using the generator, especially with the semantic differences for things like error handling.
>
> Please let me know if you have any comments or suggestions.
>
> Have a nice weekend!
>
> Max
> --
> Max Orok
> Contractor
> www.mevex.com
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
—
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine
More information about the gmsh
mailing list