-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cargo doc doesn't generate documentation for binary crate #1865
Comments
/cc @alexcrichton , who knows the reason. There is one, but I always forget |
This is actually just |
As far as I can tell |
@BartMassey I'm having the same problem; |
@alexcrichton documenting binaries could be useful for open source projects |
@omarabid: This ancient incantation still works for documenting a binary crate, although it gives grim deprecation warnings:
This works without warnings, but included a useless top-level "Re-exports" section which clutters up the front page:
I've added a comment to Rust Issue #44136 to this effect. |
|
- We were running into the issue where if you just run cargo doc --open it would generate just a black html page despite all of our /// comments - We're not sure what is going wrong here but we found a source talking about the visabilty needing to be public but everything we have is public? - we found a work around here rust-lang/cargo#1865 from Bart Massey himself
Hi,
I'm not sure this is expected, though there's a mention in the rust book about cargo test for documentation working only with library crates. I don't see the reason why it wouldn't generate the documentation for a binary crate too.
Am I missing something?
The text was updated successfully, but these errors were encountered: