|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.45 (2020-07-16) |
| 4 | +[ebda5065e...HEAD](https://github.com/rust-lang/cargo/compare/ebda5065e...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | + |
| 8 | +### Changed |
| 9 | +- Changed official documentation to recommend `.cargo/config.toml` filenames |
| 10 | + (with the `.toml` extension). `.toml` extension support was added in 1.39. |
| 11 | + [#8121](https://github.com/rust-lang/cargo/pull/8121) |
| 12 | +- The `registry.index` config value is no longer allowed (it has been |
| 13 | + deprecated for 4 years). |
| 14 | + [#7973](https://github.com/rust-lang/cargo/pull/7973) |
| 15 | +- An error is generated if both `--index` and `--registry` are passed |
| 16 | + (previously `--index` was silently ignored). |
| 17 | + [#7973](https://github.com/rust-lang/cargo/pull/7973) |
| 18 | +- The `registry.token` config value is no longer used with the `--index` flag. |
| 19 | + This is intended to avoid potentially leaking the crates.io token to another |
| 20 | + registry. |
| 21 | + [#7973](https://github.com/rust-lang/cargo/pull/7973) |
| 22 | +- Added a warning if `registry.token` is used with source replacement. It is |
| 23 | + intended this will be an error in future versions. |
| 24 | + [#7973](https://github.com/rust-lang/cargo/pull/7973) |
| 25 | +- Windows GNU targets now copy `.dll.a` import library files for DLL crate |
| 26 | + types to the output directory. |
| 27 | + [#8141](https://github.com/rust-lang/cargo/pull/8141) |
| 28 | + |
| 29 | +### Fixed |
| 30 | +- Fixed copying Windows `.pdb` files to the output directory when the filename |
| 31 | + contained dashes. |
| 32 | + [#8123](https://github.com/rust-lang/cargo/pull/8123) |
| 33 | + |
| 34 | +### Nightly only |
| 35 | +- Fixed passing the full path for `--target` to `rustdoc` when using JSON spec |
| 36 | + targets. |
| 37 | + [#8094](https://github.com/rust-lang/cargo/pull/8094) |
| 38 | +- `-Cembed-bitcode=no` renamed to `-Cbitcode-in-rlib=no` |
| 39 | + [#8134](https://github.com/rust-lang/cargo/pull/8134) |
| 40 | +- Added new `resolver` field to `Cargo.toml` to opt-in to the new feature |
| 41 | + resolver. |
| 42 | + [#8129](https://github.com/rust-lang/cargo/pull/8129) |
| 43 | + |
3 | 44 | ## Cargo 1.44 (2020-06-04)
|
4 |
| -[bda50510...HEAD](https://github.com/rust-lang/cargo/compare/bda50510...HEAD) |
| 45 | +[bda50510...ebda5065e](https://github.com/rust-lang/cargo/compare/bda50510...ebda5065e) |
5 | 46 |
|
6 | 47 | ### Added
|
| 48 | +- 🔥 Added the `cargo tree` command. |
| 49 | + [docs](https://doc.rust-lang.org/nightly/cargo/commands/cargo-tree.html) |
| 50 | + [#8062](https://github.com/rust-lang/cargo/pull/8062) |
7 | 51 | - Added warnings if a package has Windows-restricted filenames (like `nul`,
|
8 | 52 | `con`, `aux`, `prn`, etc.).
|
9 | 53 | [#7959](https://github.com/rust-lang/cargo/pull/7959)
|
| 54 | +- Added a `"build-finished"` JSON message when compilation is complete so that |
| 55 | + tools can detect when they can stop listening for JSON messages with |
| 56 | + commands like `cargo run` or `cargo test`. |
| 57 | + [#8069](https://github.com/rust-lang/cargo/pull/8069) |
10 | 58 |
|
11 | 59 | ### Changed
|
12 | 60 | - Valid package names are now restricted to Unicode XID identifiers. This is
|
|
19 | 67 | [#7959](https://github.com/rust-lang/cargo/pull/7959)
|
20 | 68 | - Tests are no longer hard-linked into the output directory (`target/debug/`).
|
21 | 69 | This ensures tools will have access to debug symbols and execute tests in
|
22 |
| - the same was as Cargo. Tools should use JSON messages to discover the path |
| 70 | + the same way as Cargo. Tools should use JSON messages to discover the path |
23 | 71 | to the executable.
|
24 | 72 | [#7965](https://github.com/rust-lang/cargo/pull/7965)
|
25 | 73 | - Updating git submodules now displays an "Updating" message for each
|
26 | 74 | submodule.
|
27 | 75 | [#7989](https://github.com/rust-lang/cargo/pull/7989)
|
| 76 | +- File modification times are now preserved when extracting a `.crate` file. |
| 77 | + This reverses the change made in 1.40 where the mtime was not preserved. |
| 78 | + [#7935](https://github.com/rust-lang/cargo/pull/7935) |
| 79 | +- Build script warnings are now displayed separately when the build script |
| 80 | + fails. |
| 81 | + [#8017](https://github.com/rust-lang/cargo/pull/8017) |
| 82 | +- Removed the `git-checkout` subcommand. |
| 83 | + [#8040](https://github.com/rust-lang/cargo/pull/8040) |
| 84 | +- The progress bar is now enabled for all unix platforms. Previously it was |
| 85 | + only Linux, macOS, and FreeBSD. |
| 86 | + [#8054](https://github.com/rust-lang/cargo/pull/8054) |
| 87 | +- Artifacts generated by pre-release versions of `rustc` now share the same |
| 88 | + filenames. This means that changing nightly versions will not leave stale |
| 89 | + files in the build directory. |
| 90 | + [#8073](https://github.com/rust-lang/cargo/pull/8073) |
| 91 | +- Invalid package names are rejected when using renamed dependencies. |
| 92 | + [#8090](https://github.com/rust-lang/cargo/pull/8090) |
| 93 | +- Added a certain class of HTTP2 errors as "spurious" that will get retried. |
| 94 | + [#8102](https://github.com/rust-lang/cargo/pull/8102) |
28 | 95 |
|
29 | 96 | ### Fixed
|
30 | 97 | - Cargo no longer buffers excessive amounts of compiler output in memory.
|
31 | 98 | [#7838](https://github.com/rust-lang/cargo/pull/7838)
|
32 | 99 | - Symbolic links in git repositories now work on Windows.
|
33 | 100 | [#7996](https://github.com/rust-lang/cargo/pull/7996)
|
| 101 | +- Fixed an issue where `profile.dev` was not loaded from a config file with |
| 102 | + `cargo test` when the `dev` profile was not defined in `Cargo.toml`. |
| 103 | + [#8012](https://github.com/rust-lang/cargo/pull/8012) |
| 104 | +- When a binary is built as an implicit dependency of an integration test, |
| 105 | + it now checks `dep_name/feature_name` syntax in `required-features` correctly. |
| 106 | + [#8020](https://github.com/rust-lang/cargo/pull/8020) |
| 107 | +- Fixed an issue where Cargo would not detect that an executable (such as an |
| 108 | + integration test) needs to be rebuilt when the previous build was |
| 109 | + interrupted with Ctrl-C. |
| 110 | + [#8087](https://github.com/rust-lang/cargo/pull/8087) |
| 111 | +- Protect against some (unknown) situations where Cargo could panic when the |
| 112 | + system monotonic clock doesn't appear to be monotonic. |
| 113 | + [#8114](https://github.com/rust-lang/cargo/pull/8114) |
34 | 114 |
|
35 | 115 | ### Nightly only
|
36 | 116 | - Fixed panic with new feature resolver and required-features.
|
37 | 117 | [#7962](https://github.com/rust-lang/cargo/pull/7962)
|
| 118 | +- Added `RUSTC_WORKSPACE_WRAPPER` environment variable, which provides a way |
| 119 | + to wrap `rustc` for workspace members only, and affects the filename hash so |
| 120 | + that artifacts produced by the wrapper are cached separately. This usage can |
| 121 | + be seen on nightly clippy with `cargo clippy -Zunstable-options`. |
| 122 | + [#7533](https://github.com/rust-lang/cargo/pull/7533) |
| 123 | +- Added `--unit-graph` CLI option to display Cargo's internal dependency graph |
| 124 | + as JSON. |
| 125 | + [#7977](https://github.com/rust-lang/cargo/pull/7977) |
| 126 | +- Changed `-Zbuild_dep` to `-Zhost_dep`, and added proc-macros to the feature |
| 127 | + decoupling logic. |
| 128 | + [#8003](https://github.com/rust-lang/cargo/pull/8003) |
| 129 | + [#8028](https://github.com/rust-lang/cargo/pull/8028) |
| 130 | +- Fixed so that `--crate-version` is not automatically passed when the flag |
| 131 | + is found in `RUSTDOCFLAGS`. |
| 132 | + [#8014](https://github.com/rust-lang/cargo/pull/8014) |
| 133 | +- Fixed panic with `-Zfeatures=dev_dep` and `check --profile=test`. |
| 134 | + [#8027](https://github.com/rust-lang/cargo/pull/8027) |
| 135 | +- Fixed panic with `-Zfeatures=itarget` with certain host dependencies. |
| 136 | + [#8048](https://github.com/rust-lang/cargo/pull/8048) |
| 137 | +- Added support for `-Cembed-bitcode=no`, which provides a performance boost |
| 138 | + and disk-space usage reduction for non-LTO builds. |
| 139 | + [#8066](https://github.com/rust-lang/cargo/pull/8066) |
| 140 | +- `-Zpackage-features` has been extended with several changes intended to make |
| 141 | + it easier to select features on the command-line in a workspace. |
| 142 | + [#8074](https://github.com/rust-lang/cargo/pull/8074) |
38 | 143 |
|
39 | 144 | ## Cargo 1.43 (2020-04-23)
|
40 | 145 | [9d32b7b0...rust-1.43.0](https://github.com/rust-lang/cargo/compare/9d32b7b0...rust-1.43.0)
|
|
0 commit comments