Skip to content
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 --lib #2557

Closed
nixpulvis opened this issue Apr 10, 2016 · 2 comments
Closed

cargo doc --lib #2557

nixpulvis opened this issue Apr 10, 2016 · 2 comments
Labels
E-easy Experience: Easy

Comments

@nixpulvis
Copy link

I'd love an option to only build and document the lib portion of a crate. I use rustdocs a lot in planning things out and sometimes during a refactor I'll break the binaries but still want to see the docs. Cargo supports cargo build --lib for this, seems like cargo doc --lib is a natural flag to support.

@alexcrichton
Copy link
Member

Oh oops! I thought I modified all commands to take --lib, --bin, etc. Should be an easy bug to knock out :)

@alexcrichton alexcrichton added the E-easy Experience: Easy label Apr 11, 2016
@nixpulvis
Copy link
Author

Oh and cargo test --doc too.

alexcrichton added a commit to alexcrichton/cargo that referenced this issue Apr 14, 2016
Allows documenting a specific target.

Closes rust-lang#2557
bors added a commit that referenced this issue Apr 20, 2016
Add `cargo doc --lib/--bin`

Allows documenting a specific target.

Closes #2557
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Experience: Easy
Projects
None yet
Development

No branches or pull requests

2 participants