-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust interface #129
Rust interface #129
Conversation
Amazing, thanks! Could you add installation instructions to the I am a bit concerned about adding this huge string with I see that Rust interface is released as 2.4.1 but there is no corresponding release of the TREXIO C API. I think it's important to keep them aligned. If you want, I can add Rust testing to the CI. |
OK, now the rust interface installs HDF5 and compiles trexio. We can merge :-) |
…ion_memo.txt to remember changes ;-)
Cool, thanks! So you want to keep the TREXIO JSON string in the C header for now? |
We can remove it if you don't like it, as i added it in the tar.gz release. Or we can also leave it as a comment in trexio.h
25 oct. 2023 12:34:34 Evgeny Posenitskiy ***@***.***>:
…
Cool, thanks! So you want to keep the TREXIO JSON string in the C header for now?
—
Reply to this email directly, view it on GitHub[#129 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ABNRVYRKUJPXO5OQOMFK54LYBDTK7AVCNFSM6AAAAAA6NJ4WK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZYHE3TMMBUHE].
You are receiving this because you authored the thread.
[Image de pistage][https://github.com/notifications/beacon/ABNRVYTKXDYNL5VDJH3N5ATYBDTK7A5CNFSM6AAAAAA6NJ4WK6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTKBECTC.gif]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, I can add CI test for Rust in a separate PR
In the
rust
directory I have put everything to build the Rust interface. I have uploaded it to Crates.io, so that when you docargo add trexio
, you get trexio in your current working project:https://crates.io/crates/trexio
This package assumes that the C TREXIO library is installed on the system. I will also need to build a Rust crate that installs the TREXIO C library to make it fully functional.
To simplify building interfaces, I added to
trexio.h
the JSON config that produced it as astatic const char*
variable. It avoids needing the trexio C source when building the interface.