|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## Cargo 1.44 (2020-06-04) |
| 4 | +[bda50510...HEAD](https://github.com/rust-lang/cargo/compare/bda50510...HEAD) |
| 5 | + |
| 6 | +### Added |
| 7 | +- Added warnings if a package has Windows-restricted filenames (like `nul`, |
| 8 | + `con`, `aux`, `prn`, etc.). |
| 9 | + [#7959](https://github.com/rust-lang/cargo/pull/7959) |
| 10 | + |
| 11 | +### Changed |
| 12 | +- Valid package names are now restricted to Unicode XID identifiers. This is |
| 13 | + mostly the same as before, except package names cannot start with a number |
| 14 | + or `-`. |
| 15 | + [#7959](https://github.com/rust-lang/cargo/pull/7959) |
| 16 | +- `cargo new` and `init` will warn or reject additional package names |
| 17 | + (reserved Windows names, reserved Cargo directories, non-ASCII names, |
| 18 | + conflicting std names like `core`, etc.). |
| 19 | + [#7959](https://github.com/rust-lang/cargo/pull/7959) |
| 20 | +- Tests are no longer hard-linked into the output directory (`target/debug/`). |
| 21 | + 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 |
| 23 | + to the executable. |
| 24 | + [#7965](https://github.com/rust-lang/cargo/pull/7965) |
| 25 | +- Updating git submodules now displays an "Updating" message for each |
| 26 | + submodule. |
| 27 | + [#7989](https://github.com/rust-lang/cargo/pull/7989) |
| 28 | + |
| 29 | +### Fixed |
| 30 | +- Cargo no longer buffers excessive amounts of compiler output in memory. |
| 31 | + [#7838](https://github.com/rust-lang/cargo/pull/7838) |
| 32 | +- Symbolic links in git repositories now work on Windows. |
| 33 | + [#7996](https://github.com/rust-lang/cargo/pull/7996) |
| 34 | + |
| 35 | +### Nightly only |
| 36 | +- Fixed panic with new feature resolver and required-features. |
| 37 | + [#7962](https://github.com/rust-lang/cargo/pull/7962) |
| 38 | + |
3 | 39 | ## Cargo 1.43 (2020-04-23)
|
4 |
| -[9d32b7b0...HEAD](https://github.com/rust-lang/cargo/compare/9d32b7b0...HEAD) |
| 40 | +[9d32b7b0...rust-1.43.0](https://github.com/rust-lang/cargo/compare/9d32b7b0...rust-1.43.0) |
5 | 41 |
|
6 | 42 | ### Added
|
7 | 43 | - 🔥 Profiles may now be specified in config files (and environment variables).
|
| 44 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/config.html#profile) |
8 | 45 | [#7823](https://github.com/rust-lang/cargo/pull/7823)
|
| 46 | +- ❗ Added `CARGO_BIN_EXE_<name>` environment variable when building |
| 47 | + integration tests. This variable contains the path to any `[[bin]]` targets |
| 48 | + in the package. Integration tests should use the `env!` macro to determine |
| 49 | + the path to a binary to execute. |
| 50 | + [docs](https://doc.rust-lang.org/nightly/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates) |
| 51 | + [#7697](https://github.com/rust-lang/cargo/pull/7697) |
9 | 52 |
|
10 | 53 | ### Changed
|
11 | 54 | - `cargo install --git` now honors workspaces in a git repository. This allows
|
12 | 55 | workspace settings, like `[patch]`, `[replace]`, or `[profile]` to be used.
|
13 | 56 | [#7768](https://github.com/rust-lang/cargo/pull/7768)
|
| 57 | +- `cargo new` will now run `rustfmt` on the new files to pick up rustfmt |
| 58 | + settings like `tab_spaces` so that the new file matches the user's preferred |
| 59 | + indentation settings. |
| 60 | + [#7827](https://github.com/rust-lang/cargo/pull/7827) |
| 61 | +- Environment variables printed with "very verbose" output (`-vv`) are now |
| 62 | + consistently sorted. |
| 63 | + [#7877](https://github.com/rust-lang/cargo/pull/7877) |
| 64 | +- Debug logging for fingerprint rebuild-detection now includes more information. |
| 65 | + [#7888](https://github.com/rust-lang/cargo/pull/7888) |
| 66 | + [#7890](https://github.com/rust-lang/cargo/pull/7890) |
| 67 | + [#7952](https://github.com/rust-lang/cargo/pull/7952) |
| 68 | +- Added warning during publish if the license-file doesn't exist. |
| 69 | + [#7905](https://github.com/rust-lang/cargo/pull/7905) |
| 70 | +- The `license-file` file is automatically included during publish, even if it |
| 71 | + is not explicitly listed in the `include` list or is in a location outside |
| 72 | + of the root of the package. |
| 73 | + [#7905](https://github.com/rust-lang/cargo/pull/7905) |
| 74 | +- `CARGO_CFG_DEBUG_ASSERTIONS` and `CARGO_CFG_PROC_MACRO` are no longer set |
| 75 | + when running a build script. These were inadvertently set in the past, but |
| 76 | + had no meaning as they were always true. Additionally, `cfg(proc-macro)` |
| 77 | + is no longer supported in a `target` expression. |
| 78 | + [#7943](https://github.com/rust-lang/cargo/pull/7943) |
| 79 | + [#7970](https://github.com/rust-lang/cargo/pull/7970) |
14 | 80 |
|
15 | 81 | ### Fixed
|
| 82 | +- Global command-line flags now work with aliases (like `cargo -v b`). |
| 83 | + [#7837](https://github.com/rust-lang/cargo/pull/7837) |
| 84 | +- Required-features using dependency syntax (like `renamed_dep/feat_name`) now |
| 85 | + handle renamed dependencies correctly. |
| 86 | + [#7855](https://github.com/rust-lang/cargo/pull/7855) |
| 87 | +- Fixed a rare situation where if a build script is run multiple times during |
| 88 | + the same build, Cargo will now keep the results separate instead of losing |
| 89 | + the output of the first execution. |
| 90 | + [#7857](https://github.com/rust-lang/cargo/pull/7857) |
| 91 | +- Fixed incorrect interpretation of environment variable |
| 92 | + `CARGO_TARGET_*_RUNNER=true` as a boolean. Also improved related env var |
| 93 | + error messages. |
| 94 | + [#7891](https://github.com/rust-lang/cargo/pull/7891) |
| 95 | +- Updated internal libgit2 library, bringing various fixes to git support. |
| 96 | + [#7939](https://github.com/rust-lang/cargo/pull/7939) |
| 97 | +- `cargo package` / `cargo publish` should no longer buffer the entire |
| 98 | + contents of each file in memory. |
| 99 | + [#7946](https://github.com/rust-lang/cargo/pull/7946) |
| 100 | +- Ignore more invalid `Cargo.toml` files in a git dependency. Cargo currently |
| 101 | + walks the entire repo to find the requested package. Certain invalid |
| 102 | + manifests were already skipped, and now it should skip all of them. |
| 103 | + [#7947](https://github.com/rust-lang/cargo/pull/7947) |
16 | 104 |
|
17 | 105 | ### Nightly only
|
18 | 106 | - Added `build.out-dir` config variable to set the output directory.
|
19 | 107 | [#7810](https://github.com/rust-lang/cargo/pull/7810)
|
20 | 108 | - Added `-Zjobserver-per-rustc` feature to support improved performance for
|
21 | 109 | parallel rustc.
|
22 | 110 | [#7731](https://github.com/rust-lang/cargo/pull/7731)
|
23 |
| - |
24 |
| - |
| 111 | +- Fixed filename collision with `build-std` and crates like `cc`. |
| 112 | + [#7860](https://github.com/rust-lang/cargo/pull/7860) |
| 113 | +- `-Ztimings` will now save its report even if there is an error. |
| 114 | + [#7872](https://github.com/rust-lang/cargo/pull/7872) |
| 115 | +- Updated `--config` command-line flag to support taking a path to a config |
| 116 | + file to load. |
| 117 | + [#7901](https://github.com/rust-lang/cargo/pull/7901) |
| 118 | +- Added new feature resolver. |
| 119 | + [#7820](https://github.com/rust-lang/cargo/pull/7820) |
| 120 | +- Rustdoc docs now automatically include the version of the package in the |
| 121 | + side bar. |
| 122 | + [#7903](https://github.com/rust-lang/cargo/pull/7903) |
25 | 123 |
|
26 | 124 | ## Cargo 1.42 (2020-03-12)
|
27 | 125 | [0bf7aafe...rust-1.42.0](https://github.com/rust-lang/cargo/compare/0bf7aafe...rust-1.42.0)
|
|
0 commit comments