You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many workspace packages do not need manual intervention and can be built simply by executing the commands listed in the main [Readme.md](../Readme.md) file.
4
+
However, some workspaces require an additional step.
5
+
This is the case when values such as
6
+
```toml
7
+
version.workspace = true
8
+
```
9
+
are inherited from the workspaces `Cargo.toml` configuration file.
10
+
11
+
## Fix
12
+
To build documentation, rustdoc requires a fully specified package but rustdoc does not understand workspaces which are only defined in cargo.
13
+
Thus our crate needs to be packaged by cargo before running the documentation.
14
+
This step will replace all of the `value.workspace = true` statements with their respective values.
15
+
```
16
+
cargo package
17
+
```
18
+
This will emit a packaged crate into the `target/package/your_crate_name-version` folder.
19
+
Now the commands specified in [Readme.md](../Readme.md) can be executed targeting this folder.
20
+
```
21
+
cargo run -- build crate --local /path/to/source/target/package/your_crate_name-version/
0 commit comments