bazelbuild / bazelbuild/rules_rust

Rules to run rustdoc on multiple crates

Open
#1,837 13 comments 0 reactions 0 assignees View on GitHub
enhancement needs-triage rustdoc
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

I would like to take multiple crates and build docs for all of them in a similar fashion to [Cargo](https://doc.rust-lang.org/cargo/commands/cargo-doc.html).

With Cargo, I'm able to take the following workspace with packages, `foo`, `bar`, and `baz`, where `foo` depends on `bar` and `baz` is an isolated library and generate all docs in one place.

Screenshot 2023-02-13 at 2 07 17 PM

[rustdoc_workspace.zip](https://github.com/bazelbuild/rules_rust/files/10726671/rustdoc_workspace.zip)
```
├── Cargo.lock
├── Cargo.toml
├── bar
│   ├── Cargo.toml
│   └── src
│   └── lib.rs
├── baz
│   ├── Cargo.toml
│   └── src
│   └── lib.rs
└── foo
├── Cargo.toml
└── src
├── lib.rs
└── main.rs

6 directories, 9 files
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.