@@ -1785,48 +1785,6 @@ Example:
17851785cargo +nightly metadata --lockfile-path=$LOCKFILES_ROOT /my-project/Cargo.lock -Z unstable-options
17861786```
17871787
1788- ## package-workspace
1789- * Tracking Issue: [ #10948 ] ( https://github.com/rust-lang/cargo/issues/10948 )
1790-
1791- This allows cargo to package (or publish) multiple crates in a workspace, even
1792- if they have inter-dependencies. For example, consider a workspace containing
1793- packages ` foo ` and ` dep ` , where ` foo ` depends on ` dep ` . Then
1794-
1795- ``` sh
1796- cargo +nightly -Zpackage-workspace package -p foo -p dep
1797- ```
1798-
1799- will package both ` foo ` and ` dep ` , while
1800-
1801- ``` sh
1802- cargo +nightly -Zpackage-workspace publish -p foo -p dep
1803- ```
1804-
1805- will publish both ` foo ` and ` dep ` .
1806- If ` foo ` and ` dep ` are the only crates in the workspace, you can use the ` --workspace `
1807- flag instead of specifying the crates individually:
1808-
1809- ``` sh
1810- cargo +nightly -Zpackage-workspace package --workspace
1811- cargo +nightly -Zpackage-workspace publish --workspace
1812- ```
1813-
1814- #### Lock-file behavior
1815-
1816- When packaging a binary at the same time as one of its dependencies, the binary
1817- will be packaged with a lock-file pointing at the dependency's registry entry
1818- * as though the dependency were already published* , even though it has not yet
1819- been. In this case, ` cargo ` needs to know the registry that the dependency
1820- will eventually be published on. ` cargo ` will attempt to infer this registry
1821- by examining the [ the ` publish ` field] ( manifest.md#the-publish-field ) , falling back
1822- to ` crates.io ` if no ` publish ` field is set. To explicitly set the registry,
1823- pass a ` --registry ` or ` --index ` flag.
1824-
1825- ``` sh
1826- cargo +nightly -Zpackage-workspace --registry=my-registry package -p foo -p dep
1827- cargo +nightly -Zpackage-workspace --index=https://example.com package -p foo -p dep
1828- ```
1829-
18301788## native-completions
18311789* Original Issue: [ #6645 ] ( https://github.com/rust-lang/cargo/issues/6645 )
18321790* Tracking Issue: [ #14520 ] ( https://github.com/rust-lang/cargo/issues/14520 )
@@ -2242,6 +2200,10 @@ More information can be found in the [config chapter](config.md#cache).
22422200
22432201Doctest cross-compiling is now unconditionally enabled starting in Rust 1.89. Running doctests with ` cargo test ` will now honor the ` --target ` flag.
22442202
2203+ ## package-workspace
2204+
2205+ Multi-package publishing has been stabilized in Rust 1.90.0.
2206+
22452207## compile-time-deps
22462208
22472209This permanently-unstable flag to only build proc-macros and build scripts (and their required dependencies),
0 commit comments