Skip to content

Commit c8e1751

Browse files
authored
Merge pull request #2092 from rust-lang/docs-add-workspace-tip-for-trusted-publishing
docs: add workspace tip for trusted publishing
2 parents c1a12ad + 63dd4fb commit c8e1751

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/toml-schema.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,3 +443,7 @@ workflow-filename = "ci.yml"
443443
# GitHub Actions environment that has to be used for the publishing (required)
444444
environment = "deploy"
445445
```
446+
447+
> [!TIP]
448+
> To list the public crates of a workspace, run:
449+
> `cargo metadata --no-deps --format-version 1 | jq -r '.packages[] | select(.publish == null or .publish != false) | .name'`

0 commit comments

Comments
 (0)