|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.65 (2022-11-03) |
| 4 | +[4fd148c4...HEAD](https://github.com/rust-lang/cargo/compare/4fd148c4...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +### Changed |
| 9 | + |
| 10 | +- Cargo now uses the standard library's `available_parallelism` instead of the |
| 11 | + `num_cpus` crate for determining the default parallelism. |
| 12 | + [#10969](https://github.com/rust-lang/cargo/pull/10969) |
| 13 | + |
| 14 | +### Fixed |
| 15 | + |
| 16 | +### Nightly only |
| 17 | + |
| 18 | + |
3 | 19 | ## Cargo 1.64 (2022-09-22)
|
4 |
| -[a5e08c47...HEAD](https://github.com/rust-lang/cargo/compare/a5e08c47...HEAD) |
| 20 | +[a5e08c47...rust-1.64.0](https://github.com/rust-lang/cargo/compare/a5e08c47...rust-1.64.0) |
5 | 21 |
|
6 | 22 | ### Added
|
7 | 23 |
|
| 24 | +- 🎉 Packages can now inherit settings from the workspace so that the settings |
| 25 | + can be centralized in one place. See |
| 26 | + [`workspace.package`](https://doc.rust-lang.org/nightly/cargo/reference/workspaces.html#the-workspacepackage-table) |
| 27 | + and |
| 28 | + [`workspace.dependencies`](https://doc.rust-lang.org/nightly/cargo/reference/workspaces.html#the-workspacedependencies-table) |
| 29 | + for more details on how to define these common settings. |
| 30 | + [#10859](https://github.com/rust-lang/cargo/pull/10859) |
| 31 | +- Added the |
| 32 | + [`--crate-type`](https://doc.rust-lang.org/nightly/cargo/commands/cargo-rustc.html#option-cargo-rustc---crate-type) |
| 33 | + flag to `cargo rustc` to override the crate type. |
| 34 | + [#10838](https://github.com/rust-lang/cargo/pull/10838) |
| 35 | +- Cargo commands can now accept multiple `--target` flags to build for |
| 36 | + multiple targets at once, and the |
| 37 | + [`build.target`](https://doc.rust-lang.org/nightly/cargo/reference/config.html#buildtarget) |
| 38 | + config option may now take an array of multiple targets. |
| 39 | + [#10766](https://github.com/rust-lang/cargo/pull/10766) |
| 40 | +- The `--jobs` argument can now take a negative number to count backwards from |
| 41 | + the max CPUs. |
| 42 | + [#10844](https://github.com/rust-lang/cargo/pull/10844) |
| 43 | + |
8 | 44 | ### Changed
|
9 | 45 | - Bash completion of `cargo install --path` now supports path completion.
|
10 | 46 | [#10798](https://github.com/rust-lang/cargo/pull/10798)
|
11 | 47 | - Significantly improved the performance fetching git dependencies from GitHub
|
12 | 48 | when using a hash in the `rev` field.
|
13 | 49 | [#10079](https://github.com/rust-lang/cargo/pull/10079)
|
| 50 | +- Published packages will now include the resolver setting from the workspace |
| 51 | + to ensure that they use the same resolver when used in isolation. |
| 52 | + [#10911](https://github.com/rust-lang/cargo/pull/10911) |
| 53 | + [#10961](https://github.com/rust-lang/cargo/pull/10961) |
| 54 | + [#10970](https://github.com/rust-lang/cargo/pull/10970) |
| 55 | +- `cargo add` will now update `Cargo.lock`. |
| 56 | + [#10902](https://github.com/rust-lang/cargo/pull/10902) |
| 57 | +- The path in the config output of `cargo vendor` now translates backslashes |
| 58 | + to forward slashes so that the settings should work across platforms. |
| 59 | + [#10668](https://github.com/rust-lang/cargo/pull/10668) |
| 60 | +- The |
| 61 | + [`workspace.default-members`](https://doc.rust-lang.org/nightly/cargo/reference/workspaces.html#package-selection) |
| 62 | + setting now allows a value of `"."` in a non-virtual workspace to refer to |
| 63 | + the root package. |
| 64 | + [#10784](https://github.com/rust-lang/cargo/pull/10784) |
14 | 65 |
|
15 | 66 | ### Fixed
|
16 | 67 | - The `os` output in `cargo --version --verbose` now supports more platforms.
|
17 | 68 | [#10802](https://github.com/rust-lang/cargo/pull/10802)
|
| 69 | +- Cached git checkouts will now be rebuilt if they are corrupted. This may |
| 70 | + happen when using `net.git-fetch-with-cli` and interrupting the clone |
| 71 | + process. |
| 72 | + [#10829](https://github.com/rust-lang/cargo/pull/10829) |
| 73 | +- Fixed panic in `cargo add --offline`. |
| 74 | + [#10817](https://github.com/rust-lang/cargo/pull/10817) |
18 | 75 |
|
19 | 76 |
|
20 | 77 | ### Nightly only
|
|
0 commit comments