-
Notifications
You must be signed in to change notification settings - Fork 49
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: split crates into libceed-sys and libceed #766
Conversation
Co-authored-by: Jeremy L. Thompson <jeremy@jeremylt.org>
This issue indicates that packaging with symlinks should maybe work, but currently it does not actually work for us. The entire
|
Should be fixed now. The issue seems to have been discovering a |
Ah. Annoying. |
The CI failure is with detection of Valgrind
Investigating |
Ok, CI should be happy now and |
Anyone know off-hand how to make a README.md be used by docs.rs? |
[package]
readme = "/path/to/readme/README.md" ? |
Well, we currently use rST and even if we switch to md, it'll likely be the MyST dialect. But we currently have crate docs in src/lib.rs and I mildly prefer it there because we can test code snippets, while as far as I know, code snippets in README.md are not tested. So I was thinking if docs.rs could put the README.md at the top, followed by the more detailed docs in src/lib.rs, we'd have an okay solution that didn't duplicate text. Is that what your suggestion does, or use it just being explicit about where crates.io should get its readme? |
This preserves the development mode in which you can put flags in c-src/config.mk and have them used in your build.
Closest I've found seems to be cargo-readme, which writes |
The explicit lib section without explicit path was breaking cargo-readme.
#![feature(external_doc)]
#[doc(include = "../README.md")]
#[cfg(doctest)]
pub struct ReadmeDoctests;
What about this? |
Here we go, found the page on it |
Good find, and it works for module documentation, but from what I can tell, not for crate-level docs. |
This might also be an option |
I got it working, though I had to read this section a half-dozen times to catch the distinction between |
🎉 https://crates.io/crates/libceed This PR is ready from my perspective. It's published as 0.8.0 (nominally distinct from libCEED C library version) and we can iron out any quirks before cutting 0.8.1 (and encouraging external users of the Rust interace). I will add notes on release procedure to #725 . Cc: @ZackJorquera |
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.
Looks ready to me
cargo package