Enable building Rust API docs#951
Conversation
|
Regarding using the This works, but has 2 downsides:
My feeling on this is that we're dealing with such a weird situation with uniffi and all, and the oddity of what it means to be public/private in this context (even worse the fact that uniffi completely disregards all of this), that I'm ok with a pretty unconventional approach. I suggest (for now at least, and we can switch when a better solution appears) that we could just build the docs locally (in a matter similar to how it's done in this PR) and push them to the GitHub pages for this repo. Nothing committed, no change in the public/private visibility modifiers. They cannot be hosted on the normally discoverable docs.rs website for Rust libraries, but honestly that's fine by me because they're not for Rust devs anyway (as is reflected by our policy on making all code in the lib private) and that was never my intention. Edit: I have done just that and pushed to I think we could transform this PR into just adding a line in the docs/readme/release workflow maybe, that would remind the publishing dev to build and push whenever we push a tag. |
|
Yeah I agree with not using |
253e251 to
f43a001
Compare
|
@reez ready for final review, let me know if this matches what you have in mind. Once it's in I'll run it for the 2.3.1 tag. |
| 20. - [ ] Build API docs for Android locally and PR the website to the bitcoindevkit.org repo. | ||
| 21. - [ ] Post in the announcement channel. | ||
| 22. - [ ] Tweet about the new release! | ||
| 16. - [ ] Build the Rust API docs and publish them to the repo's GitHub Pages. |
f43a001 to
4144aab
Compare
|
ok I think im on the same page with you, if |
4144aab to
db10ef7
Compare

I'm not sure of the best way to do this, because we need the modules to be public for the docs to build correctly, but so far they've been private (you can't use the lib from another Rust project).
This is open mainly for discussion purposes. I could also just build locally and publish. See #941
Checklists
All Submissions:
cargo fmtandcargo clippybefore committing