Debian Codegraph @

CHANGELOG.md

raw
1 # Changelog
2
3 All notable changes to this project will be documented in this file.
4
5 This project adheres to [Semantic Versioning](https://semver.org).
6
7 Releases may yanked if there is a security bug, a soundness bug, or a regression.
8
9 <!--
10 Note: In this file, do not use the hard wrap in the middle of a sentence for compatibility with GitHub comment style markdown rendering.
11 -->
12
13 ## [Unreleased]
14
15 ## [0.1.45] - 2026-07-30
16
17 - Support `cfg(false) / cfg(true) / cfg()` expressions that [supported in Cargo 1.88](https://github.com/rust-lang/cargo/pull/14649). ([#66](https://github.com/taiki-e/cargo-config2/pull/66), thanks @obi1kenobi)
18
19 - Support `target.'cfg(..)'.rustdocflags` that [added in Cargo 1.96](https://github.com/rust-lang/cargo/pull/16846). ([#67](https://github.com/taiki-e/cargo-config2/pull/67), thanks @obi1kenobi)
20
21 - Handle empty target flags to match the Cargo behavior. ([#67](https://github.com/taiki-e/cargo-config2/pull/67), thanks @obi1kenobi)
22
23 - Treat empty encoded flags as a zero-flag override to match the Cargo behavior. ([#68](https://github.com/taiki-e/cargo-config2/pull/68), thanks @obi1kenobi)
24
25 ## [0.1.44] - 2026-03-24
26
27 - Remove dependency on `windows-sys`.
28
29 - Increase the minimum supported Rust version (MSRV) from Rust 1.76 to Rust 1.85.
30
31 ## [0.1.43] - 2026-02-26
32
33 - Fix `unstable_name_collisions` warning.
34
35 ## [0.1.42] - 2026-02-13
36
37 - Update `toml` to 1.
38
39 ## [0.1.41] - 2026-02-08
40
41 - Add `Config::cfg`. ([#40](https://github.com/taiki-e/cargo-config2/pull/40))
42
43 - Fix handling of `cfg(<key> = "")`. ([#40](https://github.com/taiki-e/cargo-config2/pull/40))
44
45 - Implement `From<&'a Box<str>>` for `TargetTripleRef<'a>`, `From<Box<str>>` for `TargetTripleRef<'static>`.
46
47 ## [0.1.40] - 2026-02-06
48
49 - Fix error with custom targets in [recent nightly](https://github.com/rust-lang/rust/pull/150151).
50
51 - Enable [release immutability](https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/immutable-releases).
52
53 ## [0.1.39] - 2025-10-10
54
55 - Fix ["invalid type: .., expected struct TargetConfig" error when a custom field used in `target.<triple>` config](https://github.com/taiki-e/cargo-llvm-cov/issues/454).
56
57 ## [0.1.38] - 2025-10-04
58
59 - Improve support for target names that contain ".". ([#38](https://github.com/taiki-e/cargo-config2/pull/38))
60
61 ## [0.1.37] - 2025-10-03
62
63 - Support `build.build-dir` [that stabilized in Cargo 1.91](https://github.com/rust-lang/cargo/pull/15833). ([#29](https://github.com/taiki-e/cargo-config2/pull/29), thanks @ranger-ross)
64
65 ## [0.1.36] - 2025-09-05
66
67 - Update `windows-sys` to 0.61.
68
69 This increases the minimum supported Rust version (MSRV) from Rust 1.70 to Rust 1.71.
70
71 ## [0.1.35] - 2025-07-11
72
73 - Use `toml` instead of `toml_edit`.
74
75 ## [0.1.34] - 2025-06-22
76
77 - Support the `[sources]` table. ([#31](https://github.com/taiki-e/cargo-config2/pull/31), thanks @Altair-Bueno)
78
79 - Update `windows-sys` to 0.60.
80
81 ## [0.1.33] - 2025-06-07
82
83 - Add structs and fields for credential providers. ([#25](https://github.com/taiki-e/cargo-config2/pull/25), [#27](https://github.com/taiki-e/cargo-config2/pull/27), thanks @nox)
84
85 - Change merge behavior of `PathAndArgs` to align Cargo 1.86's behavior change. ([#26](https://github.com/taiki-e/cargo-config2/issues/26))
86
87 ## [0.1.32] - 2025-01-06
88
89 - Expose `CargoNewConfig` and `HttpConfig`. ([69ecb94](https://github.com/taiki-e/cargo-config2/commit/69ecb94d6eb30702d0150043533146df489723cd))
90
91 ## [0.1.31] - 2024-12-21
92
93 - Remove dependency on `home` to restore the MSRV on Windows.
94
95 - Add `home_dir`, `cargo_home_with_cwd`, and `rustup_home_with_cwd` functions.
96
97 ## [0.1.30] - 2024-12-21
98
99 - Respect [`RUSTC_BOOTSTRAP=-1` recently added in nightly](https://github.com/rust-lang/rust/pull/132993) in rustc version detection.
100
101 ## [0.1.29] - 2024-09-01
102
103 - Support `target.<triple>.rustdocflags` [that added in Cargo 1.78](https://github.com/rust-lang/cargo/pull/13197).
104 `Config::rustdocflags` is a new recommended interface to get rustdocflags.
105
106 ## [0.1.28] - 2024-09-01
107
108 - Support the `[cargo-new]` table. ([#21](https://github.com/taiki-e/cargo-config2/pull/21), thanks @ranger-ross)
109
110 ## [0.1.27] - 2024-08-19
111
112 - Support the `[http]` table. ([#20](https://github.com/taiki-e/cargo-config2/pull/20), thanks @ranger-ross)
113
114 ## [0.1.26] - 2024-04-20
115
116 - Fix regression [when buggy rustc_workspace_wrapper is set](https://github.com/cuviper/autocfg/issues/58#issuecomment-2067625980), introduced in 0.1.25.
117
118 ## [0.1.25] - 2024-04-17
119
120 - Respect rustc_wrapper and rustc_workspace_wrapper in `Config::{rustc_version, host_triple}` to match the [Cargo's new behavior](https://github.com/rust-lang/cargo/pull/13659). (Other APIs such as `Config::rustc` are already respecting wrappers.)
121
122 ## [0.1.24] - 2024-04-09
123
124 - Fix bug when merging array fields in config.
125
126 ## [0.1.23] - 2024-03-29
127
128 - Fix `Config::rustc` when both rustc_wrapper and rustc_workspace_wrapper are set.
129
130 ## [0.1.22] - 2024-03-20
131
132 - Implement `From<&PathAndArgs>` for `std::process::Command`.
133
134 ## [0.1.21] - 2024-03-20
135
136 - Add `{RustcVersion,CargoVersion}::major_minor`.
137
138 ## [0.1.20] - 2024-03-20
139
140 - Add `Config::{rustc_version, cargo_version}`.
141
142 ## [0.1.19] - 2024-02-10
143
144 - Update `toml_edit` to 0.22.
145
146 ## [0.1.18] - 2024-01-25
147
148 - Make `home` dependency Windows-only dependency.
149
150 ## [0.1.17] - 2023-12-16
151
152 - Remove dependency on `once_cell`.
153
154 ## [0.1.16] - 2023-11-17
155
156 - Support `target.'cfg(..)'.linker` [that added in Cargo 1.74](https://github.com/rust-lang/cargo/pull/12535).
157
158 - Update `toml_edit` to 0.21.
159
160 ## [0.1.15] - 2023-10-24
161
162 - Improve compile time.
163
164 ## [0.1.14] - 2023-10-18
165
166 - Improve compile time.
167
168 ## [0.1.13] - 2023-10-17
169
170 - Improve compatibility with old Cargo.
171
172 ## [0.1.12] - 2023-09-14
173
174 - Improve robustness when new cfgs are added in the future.
175
176 - Update `toml` to 0.8.
177
178 ## [0.1.11] - 2023-09-11
179
180 - Remove dependency on `shell-escape`.
181
182 ## [0.1.10] - 2023-09-08
183
184 - Remove dependency on `cfg-expr`.
185
186 ## [0.1.9] - 2023-08-22
187
188 - Recognize unstable `target.cfg(relocation_model = "...")` on nightly.
189
190 ## [0.1.8] - 2023-07-03
191
192 - Fix build error from dependency when built with `-Z minimal-versions`.
193
194 ## [0.1.7] - 2023-04-05
195
196 - Update `cfg-expr` to 0.15.
197
198 ## [0.1.6] - 2023-03-07
199
200 - Support the `[registries]` and `[registry]` tables. ([#8](https://github.com/taiki-e/cargo-config2/pull/8), thanks @yottalogical)
201
202 ## [0.1.5] - 2023-02-23
203
204 - Fix handling of empty string rustc wrapper envs. ([#7](https://github.com/taiki-e/cargo-config2/pull/7), thanks @tofay)
205
206 ## [0.1.4] - 2023-01-28
207
208 - Update `cfg-expr` to 0.14.
209
210 - Update `toml` to 0.7.
211
212 ## [0.1.3] - 2023-01-24
213
214 - Migrate to `toml` 0.6. ([#6](https://github.com/taiki-e/cargo-config2/pull/6))
215
216 ## [0.1.2] - 2023-01-10
217
218 - Improve error messages.
219
220 - Add `Config::cargo` method.
221
222 - Documentation improvements.
223
224 ## [0.1.1] - 2023-01-09
225
226 - Fix `serde::Serialize` impl of `Config` after target resolved.
227
228 ## [0.1.0] - 2023-01-09
229
230 Initial release
231
232 [Unreleased]: https://github.com/taiki-e/cargo-config2/compare/v0.1.45...HEAD
233 [0.1.45]: https://github.com/taiki-e/cargo-config2/compare/v0.1.44...v0.1.45
234 [0.1.44]: https://github.com/taiki-e/cargo-config2/compare/v0.1.43...v0.1.44
235 [0.1.43]: https://github.com/taiki-e/cargo-config2/compare/v0.1.42...v0.1.43
236 [0.1.42]: https://github.com/taiki-e/cargo-config2/compare/v0.1.41...v0.1.42
237 [0.1.41]: https://github.com/taiki-e/cargo-config2/compare/v0.1.40...v0.1.41
238 [0.1.40]: https://github.com/taiki-e/cargo-config2/compare/v0.1.39...v0.1.40
239 [0.1.39]: https://github.com/taiki-e/cargo-config2/compare/v0.1.38...v0.1.39
240 [0.1.38]: https://github.com/taiki-e/cargo-config2/compare/v0.1.37...v0.1.38
241 [0.1.37]: https://github.com/taiki-e/cargo-config2/compare/v0.1.36...v0.1.37
242 [0.1.36]: https://github.com/taiki-e/cargo-config2/compare/v0.1.35...v0.1.36
243 [0.1.35]: https://github.com/taiki-e/cargo-config2/compare/v0.1.34...v0.1.35
244 [0.1.34]: https://github.com/taiki-e/cargo-config2/compare/v0.1.33...v0.1.34
245 [0.1.33]: https://github.com/taiki-e/cargo-config2/compare/v0.1.32...v0.1.33
246 [0.1.32]: https://github.com/taiki-e/cargo-config2/compare/v0.1.31...v0.1.32
247 [0.1.31]: https://github.com/taiki-e/cargo-config2/compare/v0.1.30...v0.1.31
248 [0.1.30]: https://github.com/taiki-e/cargo-config2/compare/v0.1.29...v0.1.30
249 [0.1.29]: https://github.com/taiki-e/cargo-config2/compare/v0.1.28...v0.1.29
250 [0.1.28]: https://github.com/taiki-e/cargo-config2/compare/v0.1.27...v0.1.28
251 [0.1.27]: https://github.com/taiki-e/cargo-config2/compare/v0.1.26...v0.1.27
252 [0.1.26]: https://github.com/taiki-e/cargo-config2/compare/v0.1.25...v0.1.26
253 [0.1.25]: https://github.com/taiki-e/cargo-config2/compare/v0.1.24...v0.1.25
254 [0.1.24]: https://github.com/taiki-e/cargo-config2/compare/v0.1.23...v0.1.24
255 [0.1.23]: https://github.com/taiki-e/cargo-config2/compare/v0.1.22...v0.1.23
256 [0.1.22]: https://github.com/taiki-e/cargo-config2/compare/v0.1.21...v0.1.22
257 [0.1.21]: https://github.com/taiki-e/cargo-config2/compare/v0.1.20...v0.1.21
258 [0.1.20]: https://github.com/taiki-e/cargo-config2/compare/v0.1.19...v0.1.20
259 [0.1.19]: https://github.com/taiki-e/cargo-config2/compare/v0.1.18...v0.1.19
260 [0.1.18]: https://github.com/taiki-e/cargo-config2/compare/v0.1.17...v0.1.18
261 [0.1.17]: https://github.com/taiki-e/cargo-config2/compare/v0.1.16...v0.1.17
262 [0.1.16]: https://github.com/taiki-e/cargo-config2/compare/v0.1.15...v0.1.16
263 [0.1.15]: https://github.com/taiki-e/cargo-config2/compare/v0.1.14...v0.1.15
264 [0.1.14]: https://github.com/taiki-e/cargo-config2/compare/v0.1.13...v0.1.14
265 [0.1.13]: https://github.com/taiki-e/cargo-config2/compare/v0.1.12...v0.1.13
266 [0.1.12]: https://github.com/taiki-e/cargo-config2/compare/v0.1.11...v0.1.12
267 [0.1.11]: https://github.com/taiki-e/cargo-config2/compare/v0.1.10...v0.1.11
268 [0.1.10]: https://github.com/taiki-e/cargo-config2/compare/v0.1.9...v0.1.10
269 [0.1.9]: https://github.com/taiki-e/cargo-config2/compare/v0.1.8...v0.1.9
270 [0.1.8]: https://github.com/taiki-e/cargo-config2/compare/v0.1.7...v0.1.8
271 [0.1.7]: https://github.com/taiki-e/cargo-config2/compare/v0.1.6...v0.1.7
272 [0.1.6]: https://github.com/taiki-e/cargo-config2/compare/v0.1.5...v0.1.6
273 [0.1.5]: https://github.com/taiki-e/cargo-config2/compare/v0.1.4...v0.1.5
274 [0.1.4]: https://github.com/taiki-e/cargo-config2/compare/v0.1.3...v0.1.4
275 [0.1.3]: https://github.com/taiki-e/cargo-config2/compare/v0.1.2...v0.1.3
276 [0.1.2]: https://github.com/taiki-e/cargo-config2/compare/v0.1.1...v0.1.2
277 [0.1.1]: https://github.com/taiki-e/cargo-config2/compare/v0.1.0...v0.1.1
278 [0.1.0]: https://github.com/taiki-e/cargo-config2/releases/tag/v0.1.0