Skip to content

Commit 3b661a9

Browse files
committed
Update changelog for 1.46.
1 parent d750198 commit 3b661a9

File tree

1 file changed

+105
-2
lines changed

1 file changed

+105
-2
lines changed

CHANGELOG.md

Lines changed: 105 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,95 @@
11
# Changelog
22

3+
## Cargo 1.47 (2020-10-08)
4+
[4f74d9b2...HEAD](https://github.com/rust-lang/cargo/compare/4f74d9b2...HEAD)
5+
6+
### Added
7+
8+
### Changed
9+
- The comments added to `.gitignore` when it is modified have been tweaked to
10+
add some spacing.
11+
[#8476](https://github.com/rust-lang/cargo/pull/8476)
12+
- `cargo metadata` output should now be sorted to be deterministic.
13+
[#8489](https://github.com/rust-lang/cargo/pull/8489)
14+
- By default, build scripts and proc-macros are now built with `opt-level=0`
15+
and the default codegen units, even in release mode.
16+
[#8500](https://github.com/rust-lang/cargo/pull/8500)
17+
18+
### Fixed
19+
- Fixed issue where if a project directory was moved, and one of the
20+
build scripts did not use the `rerun-if-changed` directive, then that
21+
build script was being rebuilt when it shouldn't.
22+
[#8497](https://github.com/rust-lang/cargo/pull/8497)
23+
24+
### Nightly only
25+
- Added support for `-Z terminal-width` which tells `rustc` the width of the
26+
terminal so that it can format diagnostics better.
27+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#terminal-width)
28+
[#8427](https://github.com/rust-lang/cargo/pull/8427)
29+
- Added ability to configure `-Z` unstable flags in config files via the
30+
`[unstable]` table.
31+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html)
32+
[#8393](https://github.com/rust-lang/cargo/pull/8393)
33+
- Added [`-Z build-std-features`] flag to set features for the standard library.
34+
[#8490](https://github.com/rust-lang/cargo/pull/8490)
35+
336
## Cargo 1.46 (2020-08-27)
4-
[9fcb8c1d...HEAD](https://github.com/rust-lang/cargo/compare/9fcb8c1d...HEAD)
37+
[9fcb8c1d...rust-1.46.0](https://github.com/rust-lang/cargo/compare/9fcb8c1d...rust-1.46.0)
538

639
### Added
40+
- The `dl` key in `config.json` of a registry index now supports the
41+
replacement markers `{prefix}` and `{lowerprefix}` to allow spreading crates
42+
across directories similar to how the index itself is structured.
43+
[docs](https://doc.rust-lang.org/nightly/cargo/reference/registries.html#index-format)
44+
[#8267](https://github.com/rust-lang/cargo/pull/8267)
45+
- Added new environment variables that are set during compilation:
46+
- `CARGO_CRATE_NAME`: The name of the crate being built.
47+
- `CARGO_BIN_NAME`: The name of the executable binary (if this is a binary crate).
48+
- `CARGO_PKG_LICENSE`: The `license` field from the manifest.
49+
- `CARGO_PKG_LICENSE_FILE`: The `license-file` field from the manifest.
50+
[#8270](https://github.com/rust-lang/cargo/pull/8270)
51+
[#8325](https://github.com/rust-lang/cargo/pull/8325)
52+
[#8387](https://github.com/rust-lang/cargo/pull/8387)
53+
- If the value for `readme` is not specified in `Cargo.toml`, it is now
54+
automatically inferred from the existence of a file named `README`,
55+
`README.md`, or `README.txt`. This can be suppressed by setting
56+
`readme = false`.
57+
[#8277](https://github.com/rust-lang/cargo/pull/8277)
58+
- `cargo install` now supports the `--index` flag to install directly from an index.
59+
[#8344](https://github.com/rust-lang/cargo/pull/8344)
60+
- Added the `metadata` table to the `workspace` definition in `Cargo.toml`.
61+
This can be used for arbitrary data similar to the `package.metadata` table.
62+
[#8323](https://github.com/rust-lang/cargo/pull/8323)
63+
- Added the `--target-dir` flag to `cargo install` to set the target directory.
64+
[#8391](https://github.com/rust-lang/cargo/pull/8391)
65+
- Changes to environment variables used by the
66+
[`env!`](https://doc.rust-lang.org/std/macro.env.html) or
67+
[`option_env!`](https://doc.rust-lang.org/std/macro.option_env.html) macros
68+
are now automatically detected to trigger a rebuild.
69+
[#8421](https://github.com/rust-lang/cargo/pull/8421)
70+
- The `target` directory now includes the `CACHEDIR.TAG` file which is used by
71+
some tools to exclude the directory from backups.
72+
[#8378](https://github.com/rust-lang/cargo/pull/8378)
73+
- Added docs about rustup's `+toolchain` syntax.
74+
[#8455](https://github.com/rust-lang/cargo/pull/8455)
775

876
### Changed
977
- A warning is now displayed if a git dependency includes a `#` fragment in
1078
the URL. This was potentially confusing because Cargo itself displays git
1179
URLs with this syntax, but it does not have any meaning outside of the
1280
`Cargo.lock` file, and would not work properly.
1381
[#8297](https://github.com/rust-lang/cargo/pull/8297)
82+
- Various optimizations and fixes for bitcode embedding and LTO.
83+
[#8349](https://github.com/rust-lang/cargo/pull/8349)
84+
- Reduced the amount of data fetched for git dependencies. If Cargo knows the
85+
branch or tag to fetch, it will now only fetch that branch or tag instead of
86+
all branches and tags.
87+
[#8363](https://github.com/rust-lang/cargo/pull/8363)
88+
- Enhanced git fetch error messages.
89+
[#8409](https://github.com/rust-lang/cargo/pull/8409)
90+
- `.crate` files are now generated with GNU tar format instead of UStar, which
91+
supports longer file names.
92+
[#8453](https://github.com/rust-lang/cargo/pull/8453)
1493

1594
### Fixed
1695
- Fixed a rare situation where an update to `Cargo.lock` failed once, but then
@@ -22,6 +101,27 @@
22101
- Updated libgit2, which brings in a fix for zlib errors for some remote
23102
git servers like googlesource.com.
24103
[#8320](https://github.com/rust-lang/cargo/pull/8320)
104+
- Fixed the GitHub fast-path check for up-to-date git dependencies on
105+
non-master branches.
106+
[#8363](https://github.com/rust-lang/cargo/pull/8363)
107+
- Fixed issue when enabling a feature with `pkg/feature` syntax, and `pkg` is
108+
an optional dependency, but also a dev-dependency, and the dev-dependency
109+
appears before the optional normal dependency in the registry summary, then
110+
the optional dependency would not get activated.
111+
[#8395](https://github.com/rust-lang/cargo/pull/8395)
112+
- Fixed `clean -p` deleting the build directory if there is a test named
113+
`build`.
114+
[#8398](https://github.com/rust-lang/cargo/pull/8398)
115+
- Fixed indentation of multi-line Cargo error messages.
116+
[#8409](https://github.com/rust-lang/cargo/pull/8409)
117+
- Fixed issue where the automatic inclusion of the `--document-private-items`
118+
flag for rustdoc would override any flags passed to the `cargo rustdoc`
119+
command.
120+
[#8449](https://github.com/rust-lang/cargo/pull/8449)
121+
- Cargo will now include a version in the hash of the fingerprint directories
122+
to support backwards-incompatible changes to the fingerprint structure.
123+
[#8473](https://github.com/rust-lang/cargo/pull/8473)
124+
[#8488](https://github.com/rust-lang/cargo/pull/8488)
25125

26126
### Nightly only
27127
- Added `-Zrustdoc-map` feature which provides external mappings for rustdoc
@@ -31,7 +131,10 @@
31131
- Fixed feature calculation when a proc-macro is declared in `Cargo.toml` with
32132
an underscore (like `proc_macro = true`).
33133
[#8319](https://github.com/rust-lang/cargo/pull/8319)
34-
134+
- Added support for setting `-Clinker` with `-Zdoctest-xcompile`.
135+
[#8359](https://github.com/rust-lang/cargo/pull/8359)
136+
- Fixed setting the `strip` profile field in config files.
137+
[#8454](https://github.com/rust-lang/cargo/pull/8454)
35138

36139
## Cargo 1.45 (2020-07-16)
37140
[ebda5065e...rust-1.45.0](https://github.com/rust-lang/cargo/compare/ebda5065...rust-1.45.0)

0 commit comments

Comments
 (0)