Skip to content

Commit dcde451

Browse files
committed
Move Cargo changes from "other" to their own section
Leave the two combined in one heading, since they're one paragraph each, but move them from bullets to paragraphs.
1 parent c2ea173 commit dcde451

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

posts/2022-09-22-Rust-1.64.0.md

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,25 @@ extension](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-an
188188
are not affected since it automatically downloads and updates releases in the
189189
background.
190190

191+
### Cargo improvements: workspace inheritance and multi-target builds
192+
193+
When working with collections of related libraries or binary crates in one
194+
Cargo workspace, you can now avoid duplication of common field values between
195+
crates, such as common version numbers, repository URLs, or `rust-version`.
196+
This also helps keep these values in sync between crates when updating them.
197+
For more details, see
198+
[`workspace.package`](https://doc.rust-lang.org/cargo/reference/workspaces.html#the-package-table),
199+
[`workspace.dependencies`](https://doc.rust-lang.org/cargo/reference/workspaces.html#the-dependencies-table),
200+
and ["inheriting a dependency from a
201+
workspace"](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#inheriting-a-dependency-from-a-workspace).
202+
203+
When building for multiple targets, you can now pass multiple `--target`
204+
options to `cargo build`, to build all of those targets at once. You can also
205+
set
206+
[`build.target`](https://doc.rust-lang.org/cargo/reference/config.html#buildtarget)
207+
to an array of multiple targets in `.cargo/config.toml` to build for multiple
208+
targets by default.
209+
191210
### Stabilized APIs
192211

193212
The following methods and trait implementations are now stabilized:
@@ -282,22 +301,6 @@ There are other changes in the Rust 1.64 release, including:
282301
to make it easier to migrate existing code without having to change tuple
283302
indices.
284303

285-
* When working with collections of related libraries or binary crates in one
286-
Cargo workspace, you can now avoid duplication of common field values between
287-
crates, such as common version numbers, repository URLs, or `rust-version`.
288-
This also helps keep these values in sync between crates when updating them.
289-
For more details, see
290-
[`workspace.package`](https://doc.rust-lang.org/cargo/reference/workspaces.html#the-package-table),
291-
[`workspace.dependencies`](https://doc.rust-lang.org/cargo/reference/workspaces.html#the-dependencies-table),
292-
and ["inheriting a dependency from a
293-
workspace"](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#inheriting-a-dependency-from-a-workspace).
294-
295-
* When building for multiple targets, you can now pass multiple `--target`
296-
options to `cargo build`, to build all of those targets at once. You can
297-
also set [`build.target`](https://doc.rust-lang.org/cargo/reference/config.html#buildtarget)
298-
to an array of multiple targets in `.cargo/config.toml` to build for
299-
multiple targets by default.
300-
301304
Check out everything that changed in
302305
[Rust](https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1640-2022-09-22),
303306
[Cargo](https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md#cargo-164-2022-09-22),

0 commit comments

Comments
 (0)