-
Notifications
You must be signed in to change notification settings - Fork 15
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 #175
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,2295 @@ | |||
/* This file was generated from the templator_front.org org-mode file. |
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.
Do we need the trexio.h
in our git tree if the goal of this PR is to discover it at build time on the user machine?
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.
The problem is that a trexio.h file needs to be found to build the rust code. If the code can't be built, the documentation can't be built either.
On the doc.rs website (which hosts the documentation of all rust crates), all the files needed to build the code have to be in the repo. So I added this file as a fallback to be able to build the documentation. Otherwise, the documentation on doc.rs is empty, but the users can build it locally.
It still doesn't work though, because I need to make tests on a machine where trexio is not installed....
Do you know how I could generate the documentation on doc.rs easily?
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.
@scemama No, sorry, my Rust is still at the very basics. Is there a way to tell doc.rs to go and download the release tarball from Github before building the documentation? We have trexio.h there..
Now, the rust interface finds the trexio.h file on the system and extracts the JSON from it. It avoids downloading and compiling a trexio special for rust.