How do I get cargo doc to just generate documentation for my own stuff, not every standard crate in use?
cargo doc by default does everything public pulled into the project, but not my own private items.
cargo doc --workspace does the same thing.
cargo doc --package MYPACKAGE --document -private-items includes everything pulled into MYPACKAGE from crates.io
Ideally, I'd like it to handle crates from crates.io by linking to their public documentation, rather than generating a local copy of it. But that doesn't seem to be an option. For now, I'd be content to have it stop re-documenting standard crates. Thanks.
Use --no-deps option, ie. cargo doc --no-deps. This is the most used subcommand of cargo doc for me.
Sometimes I'll use cargo doc --all --no-deps --document-private-items --all-features to generate additional docs of private items with all features under the workspace.