Ed Page
12cf56abf1
fix: Don't duplicate comments when editing TOML
...
`toml_edit` <0.22 has a bug that will cause
```toml
[lints]
rust.unsafe_op_in_unsafe_fn = "deny"
rust.explicit_outlives_requirements = "warn"
clippy.cast_lossless = "warn"
clippy.doc_markdown = "warn"
clippy.exhaustive_enums = "warn"
```
to be written out as
[lints]
rust.unsafe_op_in_unsafe_fn = "deny"
rust.explicit_outlives_requirements = "warn"
clippy.cast_lossless = "warn"
clippy.doc_markdown = "warn"
clippy.exhaustive_enums = "warn"
```
when it is parsed and then saved.
See toml-rs/toml#675
This affects any format-preserving edits we do, including:
- `cargo add`
- `cargo remove`
- `cargo init` / `cargo new` editing the workspace
2024-02-05 16:50:59 -06:00
bors
e3de3bfea1
Auto merge of #13401 - ehuss:fix-curl-version, r=epage
...
Remove build metadata from curl-sys version.
#13379 added the build metadata to the curl-sys version, but cargo spits a warning that you shouldn't do that. It also didn't add the metadata correctly, as the version is `+curl-8.6.0`. This removes that, since it isn't needed.
2024-02-05 22:10:19 +00:00
bors
a03a7f6ecf
Auto merge of #13400 - ehuss:cargo-add-md, r=weihanglo
...
Fix markdown line break in cargo-add
This fixes a backslash line break in the cargo-add documentation. A future version of mdbook will adhere to the commonmark spec more closely, and this will end up showing as a literal backslash.
2024-02-05 21:35:18 +00:00
Eric Huss
29ee35a9b3
Remove build metadata from curl-sys version.
2024-02-05 13:17:42 -08:00
Eric Huss
4abbe3b052
Fix markdown line break in cargo-add
2024-02-05 13:15:40 -08:00
bors
9d3f4e4290
Auto merge of #13398 - kpreid:patch-1, r=epage
...
Remove `package.documentation` from the “before publishing” list.
`crates.io` currently automatically links to `docs.rs` if `documentation` is not specified, which is usually a good choice.
2024-02-05 19:49:44 +00:00
Kevin Reid
6ce0efb1a7
Remove package.documentation
from the “before publishing” list.
...
crates.io currently automatically links to `docs.rs` if `documentation` is not specified, which is usually a good choice.
2024-02-05 11:42:03 -08:00
bors
fe60f0e561
Auto merge of #13380 - rust-lang:renovate/gix, r=epage
...
chore(deps): update gix
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [gix](https://togithub.com/Byron/gitoxide ) | workspace.dependencies | minor | `0.57.1` -> `0.58.0` |
| [gix-features-for-configuration-only](https://togithub.com/Byron/gitoxide ) | workspace.dependencies | minor | `0.37.1` -> `0.38.0` |
---
### Release Notes
<details>
<summary>Byron/gitoxide (gix)</summary>
### [`v0.58.0`](https://togithub.com/Byron/gitoxide/releases/tag/gix-v0.58.0 ): gix v0.58.0
[Compare Source](https://togithub.com/Byron/gitoxide/compare/gix-v0.57.1...gix-v0.58.0 )
##### New Features
- add `max-control` feature for fine-grained performance control.
This also adds the following performance features:
- `zlib-ng`
- `zlib-ng-compat`
- `zlib-stock`
- `parallel-walkdir`
##### Bug Fixes
- `object::tree::diff::Platform::for_each_to_obtain_tree(callback)` errors are more convenient to use.
Due to a change in how the generic error type is declared it should now be possible to
use `anyhow` with it as well.
##### Commit Statistics
- 13 commits contributed to the release over the course of 18 calendar days.
- 20 days passed between releases.
- 4 commits were understood as [conventional](https://www.conventionalcommits.org ).
- 1 unique issue was worked on: [#​670](https://togithub.com/Byron/gitoxide/issues/670 )
##### Commit Details
<csr-read-only-do-not-edit/>
<details><summary>view details</summary>
- **[#​670](https://togithub.com/Byron/gitoxide/issues/670 )**
- `object::tree::diff::Platform::for_each_to_obtain_tree(callback)` errors are more convenient to use. ([`e3c5a0f`](https://togithub.com/Byron/gitoxide/commit/e3c5a0f ))
- **Uncategorized**
- Prepare changelogs prior to release ([`6a2e0be`](https://togithub.com/Byron/gitoxide/commit/6a2e0be ))
- Merge branch 'finegrained-features' ([`d8570d0`](https://togithub.com/Byron/gitoxide/commit/d8570d0 ))
- Add `max-control` feature for fine-grained performance control. ([`8847676`](https://togithub.com/Byron/gitoxide/commit/8847676 ))
- Merge branch 'dirwalk' ([`5d176fc`](https://togithub.com/Byron/gitoxide/commit/5d176fc ))
- Use `gix_fs::current_dir(precompose_unicode)`. ([`7d8d167`](https://togithub.com/Byron/gitoxide/commit/7d8d167 ))
- Adapt to changes in `gix-features` ([`eacb5a4`](https://togithub.com/Byron/gitoxide/commit/eacb5a4 ))
- Add `env::args_os_opt()` which takes an argument to determine input unicode-decomposition ([`a7e606b`](https://togithub.com/Byron/gitoxide/commit/a7e606b ))
- Release gix-trace v0.1.7, gix-features v0.37.2, gix-commitgraph v0.23.2, gix-traverse v0.36.2, gix-index v0.28.2 ([`b6c04c8`](https://togithub.com/Byron/gitoxide/commit/b6c04c8 ))
- Merge pull request [#​1248](https://togithub.com/Byron/gitoxide/issues/1248 ) from joshtriplett/tyop ([`39f35da`](https://togithub.com/Byron/gitoxide/commit/39f35da ))
- Typo fixes ([`3ef3bc2`](https://togithub.com/Byron/gitoxide/commit/3ef3bc2 ))
- `max-performance-zlib-ng-compat` flag ([`1ba9488`](https://togithub.com/Byron/gitoxide/commit/1ba9488 ))
- Add a max-performance-zlib-ng-compat flag ([`cfb06ec`](https://togithub.com/Byron/gitoxide/commit/cfb06ec ))
</details>
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 5am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions ) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View repository job log [here](https://developer.mend.io/github/rust-lang/cargo ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE1My4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
2024-02-05 19:06:21 +00:00
bors
25008a00bb
Auto merge of #13379 - rust-lang:renovate/compatible, r=epage
...
chore(deps): update compatible
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [anstream](https://togithub.com/rust-cli/anstyle ) | workspace.dependencies | patch | `0.6.5` -> `0.6.11` |
| [anstyle](https://togithub.com/rust-cli/anstyle ) | workspace.dependencies | patch | `1.0.4` -> `1.0.6` |
| [base64](https://togithub.com/marshallpierce/rust-base64 ) | workspace.dependencies | patch | `0.21.5` -> `0.21.7` |
| [clap](https://togithub.com/clap-rs/clap ) | workspace.dependencies | patch | `4.4.12` -> `4.4.18` |
| [curl-sys](https://togithub.com/alexcrichton/curl-rust ) | workspace.dependencies | patch | `0.4.70` -> `0.4.71+curl-8` |
| [handlebars](https://togithub.com/sunng87/handlebars-rust ) | workspace.dependencies | minor | `5.0.0` -> `5.1.0` |
| [ignore](https://togithub.com/BurntSushi/ripgrep/tree/master/crates/ignore ) ([source](https://togithub.com/BurntSushi/ripgrep/tree/HEAD/crates/ignore )) | workspace.dependencies | patch | `0.4.21` -> `0.4.22` |
| [itertools](https://togithub.com/rust-itertools/itertools ) | workspace.dependencies | patch | `0.12.0` -> `0.12.1` |
| [libc](https://togithub.com/rust-lang/libc ) | workspace.dependencies | patch | `0.2.151` -> `0.2.153` |
| [pkg-config](https://togithub.com/rust-lang/pkg-config-rs ) | workspace.dependencies | patch | `0.3.28` -> `0.3.29` |
| [regex](https://togithub.com/rust-lang/regex ) | workspace.dependencies | patch | `1.10.2` -> `1.10.3` |
| [semver](https://togithub.com/dtolnay/semver ) | workspace.dependencies | patch | `1.0.20` -> `1.0.21` |
| [serde](https://serde.rs ) ([source](https://togithub.com/serde-rs/serde )) | workspace.dependencies | patch | `1.0.194` -> `1.0.196` |
| [serde-untagged](https://togithub.com/dtolnay/serde-untagged ) | workspace.dependencies | patch | `0.1.4` -> `0.1.5` |
| [serde_ignored](https://togithub.com/dtolnay/serde-ignored ) | workspace.dependencies | patch | `0.1.9` -> `0.1.10` |
| [serde_json](https://togithub.com/serde-rs/json ) | workspace.dependencies | patch | `1.0.110` -> `1.0.113` |
| [snapbox](https://togithub.com/assert-rs/trycmd/tree/main/crates/snapbox ) ([source](https://togithub.com/assert-rs/trycmd )) | workspace.dependencies | patch | `0.4.15` -> `0.4.16` |
| [tracing](https://tokio.rs ) ([source](https://togithub.com/tokio-rs/tracing )) | workspace.dependencies | patch | `0.1.37` -> `0.1.40` |
---
### Release Notes
<details>
<summary>rust-cli/anstyle (anstream)</summary>
### [`v0.6.11`](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.10...anstream-v0.6.11 )
[Compare Source](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.10...anstream-v0.6.11 )
### [`v0.6.10`](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.9...anstream-v0.6.10 )
[Compare Source](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.9...anstream-v0.6.10 )
### [`v0.6.9`](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.8...anstream-v0.6.9 )
[Compare Source](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.8...anstream-v0.6.9 )
### [`v0.6.8`](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.7...anstream-v0.6.8 )
[Compare Source](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.7...anstream-v0.6.8 )
### [`v0.6.7`](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.6...anstream-v0.6.7 )
[Compare Source](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.6...anstream-v0.6.7 )
### [`v0.6.6`](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.5...anstream-v0.6.6 )
[Compare Source](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.5...anstream-v0.6.6 )
</details>
<details>
<summary>marshallpierce/rust-base64 (base64)</summary>
### [`v0.21.7`](https://togithub.com/marshallpierce/rust-base64/blob/HEAD/RELEASE-NOTES.md#0217 )
[Compare Source](https://togithub.com/marshallpierce/rust-base64/compare/v0.21.6...v0.21.7 )
- Support getting an alphabet's contents as a str via `Alphabet::as_str()`
### [`v0.21.6`](https://togithub.com/marshallpierce/rust-base64/blob/HEAD/RELEASE-NOTES.md#0216 )
[Compare Source](https://togithub.com/marshallpierce/rust-base64/compare/v0.21.5...v0.21.6 )
- Improved introductory documentation and example
</details>
<details>
<summary>clap-rs/clap (clap)</summary>
### [`v4.4.18`](https://togithub.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#4418---2024-01-16 )
[Compare Source](https://togithub.com/clap-rs/clap/compare/v4.4.17...v4.4.18 )
##### Fixes
- *(error)* When lacking `usage` feature, ensure the list of required arguments is unique
### [`v4.4.17`](https://togithub.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#4417---2024-01-15 )
[Compare Source](https://togithub.com/clap-rs/clap/compare/v4.4.16...v4.4.17 )
##### Fixes
- Fix `panic!` when mixing `args_conflicts_with_subcommands` with `ArgGroup` (which is implicit with `derive`) introduced in 4.4.15
### [`v4.4.16`](https://togithub.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#4416---2024-01-12 )
[Compare Source](https://togithub.com/clap-rs/clap/compare/v4.4.15...v4.4.16 )
##### Fixes
- Ensure invalid escape sequences in user-defined strings are correctly stripped when terminal doesn't support color
### [`v4.4.15`](https://togithub.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#4415---2024-01-11 )
[Compare Source](https://togithub.com/clap-rs/clap/compare/v4.4.14...v4.4.15 )
##### Fixes
- Improve error for `args_conflicts_with_subcommands`
- Ensure we error for `args_conflicts_with_subcommands` when using subcommand short and long flags
### [`v4.4.14`](https://togithub.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#4414---2024-01-08 )
[Compare Source](https://togithub.com/clap-rs/clap/compare/v4.4.13...v4.4.14 )
##### Documentation
- Fix `find` cookbook entry to allow repeats of flags/options
##### Features
- Allow `num_args(0)` on options which allows making them emulate being a flag for position-tracking flags
### [`v4.4.13`](https://togithub.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#4413---2024-01-04 )
[Compare Source](https://togithub.com/clap-rs/clap/compare/v4.4.12...v4.4.13 )
##### Documentation
- Fix link to structopt migration guide
</details>
<details>
<summary>alexcrichton/curl-rust (curl-sys)</summary>
### [`v0.4.71+curl-8.6.0`](https://togithub.com/alexcrichton/curl-rust/compare/curl-sys-0.4.70...curl-sys-0.4.71 )
[Compare Source](https://togithub.com/alexcrichton/curl-rust/compare/curl-sys-0.4.70...curl-sys-0.4.71 )
</details>
<details>
<summary>sunng87/handlebars-rust (handlebars)</summary>
### [`v5.1.0`](https://togithub.com/sunng87/handlebars-rust/blob/HEAD/CHANGELOG.md#510---2024-01-17 )
[Compare Source](https://togithub.com/sunng87/handlebars-rust/compare/v5.0.0...v5.1.0 )
- \[Added] Chained `else if` block support \[[#​629](https://togithub.com/sunng87/handlebars-rust/issues/629 )]
</details>
<details>
<summary>BurntSushi/ripgrep (ignore)</summary>
### [`v0.4.22`](https://togithub.com/BurntSushi/ripgrep/compare/ignore-0.4.21...ignore-0.4.22 )
[Compare Source](https://togithub.com/BurntSushi/ripgrep/compare/ignore-0.4.21...ignore-0.4.22 )
</details>
<details>
<summary>rust-itertools/itertools (itertools)</summary>
### [`v0.12.1`](https://togithub.com/rust-itertools/itertools/blob/HEAD/CHANGELOG.md#0121 )
[Compare Source](https://togithub.com/rust-itertools/itertools/compare/v0.12.0...v0.12.1 )
##### Added
- Documented iteration order guarantee for `Itertools::[tuple_]combinations` ([#​822](https://togithub.com/rust-itertools/itertools/issues/822 ))
- Documented possible panic in `iterate` ([#​842](https://togithub.com/rust-itertools/itertools/issues/842 ))
- Implemented `Clone` and `Debug` for `Diff` ([#​845](https://togithub.com/rust-itertools/itertools/issues/845 ))
- Implemented `Debug` for `WithPosition` ([#​859](https://togithub.com/rust-itertools/itertools/issues/859 ))
- Implemented `Eq` for `MinMaxResult` ([#​838](https://togithub.com/rust-itertools/itertools/issues/838 ))
- Implemented `From<EitherOrBoth<A, B>>` for `Option<Either<A, B>>` ([#​843](https://togithub.com/rust-itertools/itertools/issues/843 ))
- Implemented `PeekingNext` for `RepeatN` ([#​855](https://togithub.com/rust-itertools/itertools/issues/855 ))
##### Changed
- Made `CoalesceBy` lazy ([#​801](https://togithub.com/rust-itertools/itertools/issues/801 ))
- Optimized `Filter[Map]Ok::next`, `Itertools::partition`, `Unique[By]::next[_back]` ([#​818](https://togithub.com/rust-itertools/itertools/issues/818 ))
- Optimized `Itertools::find_position` ([#​837](https://togithub.com/rust-itertools/itertools/issues/837 ))
- Optimized `Positions::next[_back]` ([#​816](https://togithub.com/rust-itertools/itertools/issues/816 ))
- Optimized `ZipLongest::fold` ([#​854](https://togithub.com/rust-itertools/itertools/issues/854 ))
- Relaxed `Debug` bounds for `GroupingMapBy` ([#​860](https://togithub.com/rust-itertools/itertools/issues/860 ))
- Specialized `ExactlyOneError::fold` ([#​826](https://togithub.com/rust-itertools/itertools/issues/826 ))
- Specialized `Interleave[Shortest]::fold` ([#​849](https://togithub.com/rust-itertools/itertools/issues/849 ))
- Specialized `MultiPeek::fold` ([#​820](https://togithub.com/rust-itertools/itertools/issues/820 ))
- Specialized `PadUsing::[r]fold` ([#​825](https://togithub.com/rust-itertools/itertools/issues/825 ))
- Specialized `PeekNth::fold` ([#​824](https://togithub.com/rust-itertools/itertools/issues/824 ))
- Specialized `Positions::[r]fold` ([#​813](https://togithub.com/rust-itertools/itertools/issues/813 ))
- Specialized `PutBackN::fold` ([#​823](https://togithub.com/rust-itertools/itertools/issues/823 ))
- Specialized `RepeatN::[r]fold` ([#​821](https://togithub.com/rust-itertools/itertools/issues/821 ))
- Specialized `TakeWhileInclusive::fold` ([#​851](https://togithub.com/rust-itertools/itertools/issues/851 ))
- Specialized `ZipLongest::rfold` ([#​848](https://togithub.com/rust-itertools/itertools/issues/848 ))
##### Notable Internal Changes
- Added test coverage in CI ([#​847](https://togithub.com/rust-itertools/itertools/issues/847 ), [#​856](https://togithub.com/rust-itertools/itertools/issues/856 ))
- Added semver check in CI ([#​784](https://togithub.com/rust-itertools/itertools/issues/784 ))
- Enforced `clippy` in CI ([#​740](https://togithub.com/rust-itertools/itertools/issues/740 ))
- Enforced `rustdoc` in CI ([#​840](https://togithub.com/rust-itertools/itertools/issues/840 ))
- Improved specialization tests ([#​807](https://togithub.com/rust-itertools/itertools/issues/807 ))
- More specialization benchmarks ([#​806](https://togithub.com/rust-itertools/itertools/issues/806 ))
</details>
<details>
<summary>rust-lang/libc (libc)</summary>
### [`v0.2.153`](https://togithub.com/rust-lang/libc/releases/tag/0.2.153 )
[Compare Source](https://togithub.com/rust-lang/libc/compare/0.2.152...0.2.153 )
#### What's Changed
- Add SOMAXCONN to vita on 0.2 (to fix std) by [`@​pheki](https://togithub.com/pheki )` in [https://github.com/rust-lang/libc/pull/3552 ](https://togithub.com/rust-lang/libc/pull/3552 )
- Fix CI for v0.2 by [`@​JohnTitor](https://togithub.com/JohnTitor )` in [https://github.com/rust-lang/libc/pull/3557 ](https://togithub.com/rust-lang/libc/pull/3557 )
- \[Backport [#​3548](https://togithub.com/rust-lang/libc/issues/3548 )] Add ioctl FS_IOC\_{G,S}{ETVERSION,ETFLAGS} for LoongArch64 by [`@​heiher](https://togithub.com/heiher )` in [https://github.com/rust-lang/libc/pull/3570 ](https://togithub.com/rust-lang/libc/pull/3570 )
- Add MFD_NOEXEC_SEAL and MFD_EXEC by [`@​rusty-snake](https://togithub.com/rusty-snake )` in [https://github.com/rust-lang/libc/pull/3553 ](https://togithub.com/rust-lang/libc/pull/3553 )
- Backport of [#​3546](https://togithub.com/rust-lang/libc/issues/3546 ) and update crate version to 0.2.153 by [`@​GuillaumeGomez](https://togithub.com/GuillaumeGomez )` in [https://github.com/rust-lang/libc/pull/3554 ](https://togithub.com/rust-lang/libc/pull/3554 )
#### New Contributors
- [`@​rusty-snake](https://togithub.com/rusty-snake )` made their first contribution in [https://github.com/rust-lang/libc/pull/3553 ](https://togithub.com/rust-lang/libc/pull/3553 )
**Full Changelog**: https://github.com/rust-lang/libc/compare/0.2.152...0.2.153
### [`v0.2.152`](https://togithub.com/rust-lang/libc/releases/tag/0.2.152 )
[Compare Source](https://togithub.com/rust-lang/libc/compare/0.2.151...0.2.152 )
#### What's Changed
- openbsd: syscall() has been removed in upcoming OpenBSD 7.5 by [`@​semarie](https://togithub.com/semarie )` in [https://github.com/rust-lang/libc/pull/3479 ](https://togithub.com/rust-lang/libc/pull/3479 )
- adding tcp_info to openbsd by [`@​devnexen](https://togithub.com/devnexen )` in [https://github.com/rust-lang/libc/pull/3481 ](https://togithub.com/rust-lang/libc/pull/3481 )
- iadding yser_fpxregs_struct data to linux/musl i686. by [`@​devnexen](https://togithub.com/devnexen )` in [https://github.com/rust-lang/libc/pull/3477 ](https://togithub.com/rust-lang/libc/pull/3477 )
- strftime\* api for \*BSD by [`@​devnexen](https://togithub.com/devnexen )` in [https://github.com/rust-lang/libc/pull/3483 ](https://togithub.com/rust-lang/libc/pull/3483 )
- strftime_l for Linux glibc/musl by [`@​devnexen](https://togithub.com/devnexen )` in [https://github.com/rust-lang/libc/pull/3484 ](https://togithub.com/rust-lang/libc/pull/3484 )
- adding iocb data for io_submit syscall for linux/glibc. by [`@​devnexen](https://togithub.com/devnexen )` in [https://github.com/rust-lang/libc/pull/3486 ](https://togithub.com/rust-lang/libc/pull/3486 )
- Re-enable `i686-pc-windows-gnu` CI by [`@​JohnTitor](https://togithub.com/JohnTitor )` in [https://github.com/rust-lang/libc/pull/3489 ](https://togithub.com/rust-lang/libc/pull/3489 )
- Stop testing on FreeBSD 12 by [`@​asomers](https://togithub.com/asomers )` in [https://github.com/rust-lang/libc/pull/3475 ](https://togithub.com/rust-lang/libc/pull/3475 )
- Add `ifreq`, `ifconf` and related constants to Android by [`@​arctic-alpaca](https://togithub.com/arctic-alpaca )` in [https://github.com/rust-lang/libc/pull/3487 ](https://togithub.com/rust-lang/libc/pull/3487 )
- Add waitid function for OpenBSD by [`@​lcheylus](https://togithub.com/lcheylus )` in [https://github.com/rust-lang/libc/pull/3490 ](https://togithub.com/rust-lang/libc/pull/3490 )
- adding SOMAXCONN to redox by [`@​devnexen](https://togithub.com/devnexen )` in [https://github.com/rust-lang/libc/pull/3491 ](https://togithub.com/rust-lang/libc/pull/3491 )
- Fix typos in comments by [`@​asomers](https://togithub.com/asomers )` in [https://github.com/rust-lang/libc/pull/3492 ](https://togithub.com/rust-lang/libc/pull/3492 )
- fix typos in libc by [`@​Takashiidobe](https://togithub.com/Takashiidobe )` in [https://github.com/rust-lang/libc/pull/3496 ](https://togithub.com/rust-lang/libc/pull/3496 )
- apple adding tcp_connection_info struct by [`@​devnexen](https://togithub.com/devnexen )` in [https://github.com/rust-lang/libc/pull/3482 ](https://togithub.com/rust-lang/libc/pull/3482 )
- Improve the version parser of Emscripten by [`@​kleisauke](https://togithub.com/kleisauke )` in [https://github.com/rust-lang/libc/pull/3498 ](https://togithub.com/rust-lang/libc/pull/3498 )
- Add constants from \<include/linux/sched.h> by [`@​GuillaumeGomez](https://togithub.com/GuillaumeGomez )` in [https://github.com/rust-lang/libc/pull/3505 ](https://togithub.com/rust-lang/libc/pull/3505 )
- Define `TFD_TIMER_*` constants on FreeBSD. by [`@​sunfishcode](https://togithub.com/sunfishcode )` in [https://github.com/rust-lang/libc/pull/3506 ](https://togithub.com/rust-lang/libc/pull/3506 )
- Add support for posix_spawn on OpenBSD by [`@​nuudlman](https://togithub.com/nuudlman )` in [https://github.com/rust-lang/libc/pull/3502 ](https://togithub.com/rust-lang/libc/pull/3502 )
- clock_nanosleep for dragonflybsd, moving constants freebsd only too. by [`@​devnexen](https://togithub.com/devnexen )` in [https://github.com/rust-lang/libc/pull/3509 ](https://togithub.com/rust-lang/libc/pull/3509 )
- solarish add fcntl's O_DIRECT constant. by [`@​devnexen](https://togithub.com/devnexen )` in [https://github.com/rust-lang/libc/pull/3503 ](https://togithub.com/rust-lang/libc/pull/3503 )
- Unpin cc dependency version by [`@​JohnTitor](https://togithub.com/JohnTitor )` in [https://github.com/rust-lang/libc/pull/3511 ](https://togithub.com/rust-lang/libc/pull/3511 )
- redox: add openpty, login_tty, TIOCSCTTY, and organize functions by [`@​jackpot51](https://togithub.com/jackpot51 )` in [https://github.com/rust-lang/libc/pull/3512 ](https://togithub.com/rust-lang/libc/pull/3512 )
- Move all seccomp consts and structs into top-level mod by [`@​boustrophedon](https://togithub.com/boustrophedon )` in [https://github.com/rust-lang/libc/pull/3343 ](https://togithub.com/rust-lang/libc/pull/3343 )
- freebsd 15 support proposal. by [`@​devnexen](https://togithub.com/devnexen )` in [https://github.com/rust-lang/libc/pull/3508 ](https://togithub.com/rust-lang/libc/pull/3508 )
- Prepare workflow for merge queue by [`@​JohnTitor](https://togithub.com/JohnTitor )` in [https://github.com/rust-lang/libc/pull/3514 ](https://togithub.com/rust-lang/libc/pull/3514 )
- Allow dead_code on `clockid_t` by [`@​JohnTitor](https://togithub.com/JohnTitor )` in [https://github.com/rust-lang/libc/pull/3516 ](https://togithub.com/rust-lang/libc/pull/3516 )
- Add more items from `include/linux/sched.h` header by [`@​GuillaumeGomez](https://togithub.com/GuillaumeGomez )` in [https://github.com/rust-lang/libc/pull/3515 ](https://togithub.com/rust-lang/libc/pull/3515 )
- fix typo by [`@​shuoer86](https://togithub.com/shuoer86 )` in [https://github.com/rust-lang/libc/pull/3517 ](https://togithub.com/rust-lang/libc/pull/3517 )
- Add sigsuspend to more targets: bsd, haiku, and solarish by [`@​asomers](https://togithub.com/asomers )` in [https://github.com/rust-lang/libc/pull/3518 ](https://togithub.com/rust-lang/libc/pull/3518 )
- Tweak libc-0.2 CI by [`@​JohnTitor](https://togithub.com/JohnTitor )` in [https://github.com/rust-lang/libc/pull/3519 ](https://togithub.com/rust-lang/libc/pull/3519 )
- fuchsia adding pthread_set/getname_np by [`@​devnexen](https://togithub.com/devnexen )` in [https://github.com/rust-lang/libc/pull/3520 ](https://togithub.com/rust-lang/libc/pull/3520 )
- Prepare docs for libc v0.3 by [`@​JohnTitor](https://togithub.com/JohnTitor )` in [https://github.com/rust-lang/libc/pull/3510 ](https://togithub.com/rust-lang/libc/pull/3510 )
- Merge main into libc-0.2 by [`@​JohnTitor](https://togithub.com/JohnTitor )` in [https://github.com/rust-lang/libc/pull/3521 ](https://togithub.com/rust-lang/libc/pull/3521 )
- Prepare release for v0.2.152 by [`@​JohnTitor](https://togithub.com/JohnTitor )` in [https://github.com/rust-lang/libc/pull/3522 ](https://togithub.com/rust-lang/libc/pull/3522 )
#### New Contributors
- [`@​Takashiidobe](https://togithub.com/Takashiidobe )` made their first contribution in [https://github.com/rust-lang/libc/pull/3496 ](https://togithub.com/rust-lang/libc/pull/3496 )
- [`@​nuudlman](https://togithub.com/nuudlman )` made their first contribution in [https://github.com/rust-lang/libc/pull/3502 ](https://togithub.com/rust-lang/libc/pull/3502 )
- [`@​boustrophedon](https://togithub.com/boustrophedon )` made their first contribution in [https://github.com/rust-lang/libc/pull/3343 ](https://togithub.com/rust-lang/libc/pull/3343 )
- [`@​shuoer86](https://togithub.com/shuoer86 )` made their first contribution in [https://github.com/rust-lang/libc/pull/3517 ](https://togithub.com/rust-lang/libc/pull/3517 )
**Full Changelog**: https://github.com/rust-lang/libc/compare/0.2.151...0.2.152
</details>
<details>
<summary>rust-lang/pkg-config-rs (pkg-config)</summary>
### [`v0.3.29`](https://togithub.com/rust-lang/pkg-config-rs/blob/HEAD/CHANGELOG.md#0329---2024-01-17 )
[Compare Source](https://togithub.com/rust-lang/pkg-config-rs/compare/0.3.28...0.3.29 )
##### Fixed
- Detection and usage of Windows static libraries ([#​154](https://togithub.com/rust-lang/pkg-config-rs/issues/154 )).
- Passing `-Wl,-u` to the linker if specified in the pkg-config file ([#​154](https://togithub.com/rust-lang/pkg-config-rs/issues/154 )).
</details>
<details>
<summary>rust-lang/regex (regex)</summary>
### [`v1.10.3`](https://togithub.com/rust-lang/regex/blob/HEAD/CHANGELOG.md#1103-2024-01-21 )
[Compare Source](https://togithub.com/rust-lang/regex/compare/1.10.2...1.10.3 )
\===================
This is a new patch release that fixes the feature configuration of optional
dependencies, and fixes an unsound use of bounds check elision.
Bug fixes:
- [BUG #​1147](https://togithub.com/rust-lang/regex/issues/1147 ):
Set `default-features=false` for the `memchr` and `aho-corasick` dependencies.
- [BUG #​1154](https://togithub.com/rust-lang/regex/pull/1154 ):
Fix unsound bounds check elision.
</details>
<details>
<summary>dtolnay/semver (semver)</summary>
### [`v1.0.21`](https://togithub.com/dtolnay/semver/releases/tag/1.0.21 )
[Compare Source](https://togithub.com/dtolnay/semver/compare/1.0.20...1.0.21 )
- Update proc-macro2 to fix caching issue when using a rustc-wrapper such as sccache
</details>
<details>
<summary>serde-rs/serde (serde)</summary>
### [`v1.0.196`](https://togithub.com/serde-rs/serde/releases/tag/v1.0.196 )
[Compare Source](https://togithub.com/serde-rs/serde/compare/v1.0.195...v1.0.196 )
- Improve formatting of "invalid type" error messages involving floats ([#​2682](https://togithub.com/serde-rs/serde/issues/2682 ))
### [`v1.0.195`](https://togithub.com/serde-rs/serde/releases/tag/v1.0.195 )
[Compare Source](https://togithub.com/serde-rs/serde/compare/v1.0.194...v1.0.195 )
- Prevent remote definitions of tuple struct or tuple variant from triggering dead_code warning ([#​2671](https://togithub.com/serde-rs/serde/issues/2671 ))
</details>
<details>
<summary>dtolnay/serde-untagged (serde-untagged)</summary>
### [`v0.1.5`](https://togithub.com/dtolnay/serde-untagged/releases/tag/0.1.5 )
[Compare Source](https://togithub.com/dtolnay/serde-untagged/compare/0.1.4...0.1.5 )
- Update proc-macro2 to fix caching issue when using a rustc-wrapper such as sccache
</details>
<details>
<summary>dtolnay/serde-ignored (serde_ignored)</summary>
### [`v0.1.10`](https://togithub.com/dtolnay/serde-ignored/releases/tag/0.1.10 )
[Compare Source](https://togithub.com/dtolnay/serde-ignored/compare/0.1.9...0.1.10 )
- Update proc-macro2 to fix caching issue when using a rustc-wrapper such as sccache
</details>
<details>
<summary>serde-rs/json (serde_json)</summary>
### [`v1.0.113`](https://togithub.com/serde-rs/json/releases/tag/v1.0.113 )
[Compare Source](https://togithub.com/serde-rs/json/compare/v1.0.112...v1.0.113 )
- Add `swap_remove` and `shift_remove` methods on Map ([#​1109](https://togithub.com/serde-rs/json/issues/1109 ))
### [`v1.0.112`](https://togithub.com/serde-rs/json/releases/tag/v1.0.112 )
[Compare Source](https://togithub.com/serde-rs/json/compare/v1.0.111...v1.0.112 )
- Improve formatting of "invalid type" error messages involving floats ([#​1107](https://togithub.com/serde-rs/json/issues/1107 ))
### [`v1.0.111`](https://togithub.com/serde-rs/json/releases/tag/v1.0.111 )
[Compare Source](https://togithub.com/serde-rs/json/compare/v1.0.110...v1.0.111 )
- Improve floating point parsing performance on loongarch64 ([#​1100](https://togithub.com/serde-rs/json/issues/1100 ), thanks [`@​heiher](https://togithub.com/heiher ))`
</details>
<details>
<summary>assert-rs/trycmd (snapbox)</summary>
### [`v0.4.16`](https://togithub.com/assert-rs/trycmd/compare/snapbox-v0.4.15...snapbox-v0.4.16 )
[Compare Source](https://togithub.com/assert-rs/trycmd/compare/snapbox-v0.4.15...snapbox-v0.4.16 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 5am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions ) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View repository job log [here](https://developer.mend.io/github/rust-lang/cargo ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
2024-02-05 18:28:14 +00:00
renovate[bot]
eb3a343512
chore(deps): update compatible
2024-02-05 18:07:44 +00:00
bors
b0df26562d
Auto merge of #13372 - epage:update-report, r=weihanglo
...
feat(update): Tell users when they are still behind
### What does this PR try to resolve?
Part of this is an offshoot of #12425 which is about pulling some of `cargo upgrade`s behavior into `cargo update`. One of the "'Potential related `cargo update` improvements" is informing the user when they are behind.
Part of this is to help close the gap of users being behind on their dependencies unaware. This is commonly raised when discussing an MSRV-aware resolver (see rust-lang/rfcs#3537 ) but breaking changes are just as big of a deal so I'm starting this now.
See also #7167 , #4309
Compared to `cargo upgrade` / `cargo outdated`, I'm taking a fairly conservative approach and tweaking the existing output as a starting point / MVP. We can experiment with a richer or easier-to-consume way of expressing this over time.
I view us telling people they aren't on the latest as a warning, so I made that text yellow.
`clap $ cargo update --dry-run`
![image](https://github.com/rust-lang/cargo/assets/60961/4bf151e3-6b57-4073-8822-9140dd731d5e )
`clap $ cargo update --dry-run --verbose`
![image](https://github.com/rust-lang/cargo/assets/60961/fbf802fb-3a6a-4e8b-a6ec-4ce49fb505f6 )
### How should we test and review this PR?
This sets up the minimal implementation and slowly adds bits at a time, with a test first that demonstrates it.
### Additional information
I'm expecting that the `cargo upgrade` integration will extend the notes to say something like "X dependencies may be updated with `--breaking`"
2024-02-05 17:41:47 +00:00
Ed Page
93e369a2ae
refactor(update): Clarify return type
2024-02-05 11:03:55 -06:00
Ed Page
012ca52bcc
fix(update): Start note/warn with lowercase
2024-02-05 10:55:01 -06:00
bors
7bc317b451
Auto merge of #13396 - epage:changelog, r=weihanglo
...
docs(changelog): Slight cleanup
### What does this PR try to resolve?
For strip, I felt the nuance of where this change applies isn't as obvious and might give people the wrong impression, so I tried to make that front and center.
For the panic, the fix was backported to 1.77 (#13393 ) which is when it got introduced (#13172 ).
### How should we test and review this PR?
### Additional information
2024-02-05 16:03:33 +00:00
Ed Page
0d2ebbb5b8
docs(changelog): Remove panic entry
...
The fix was backported to 1.77 (#13393 ) which is when it got introduced
(#13172 ).
2024-02-05 09:47:57 -06:00
Ed Page
8471513455
docs(changelog): Tweak debuginfo stripping
2024-02-05 09:36:39 -06:00
bors
be230be8f7
Auto merge of #13392 - weihanglo:version-bump, r=ehuss
...
Bump to 0.79.0; update changelog
2024-02-04 20:03:20 +00:00
Weihang Lo
b14c5feeba
changelog: move backported PRs to corresponding versions
2024-02-04 11:58:26 -05:00
Weihang Lo
ed34dd845f
Update changelog for 1.78.0
2024-02-04 11:44:00 -05:00
Weihang Lo
5046f25d05
Update changelog for 1.77.0
2024-02-04 11:44:00 -05:00
Weihang Lo
708e23369e
Bump to 0.79.0
2024-02-04 11:44:00 -05:00
bors
8c96a1a748
Auto merge of #13390 - stevenengler:doc-version, r=weihanglo
...
doc: `[package]` doesn't require `version` field
Since #12786 (in 1.75) cargo doesn't require the version field as it defaults to 0.0.0. A bin crate with the following toml builds successfully with `cargo build`:
```toml
[package]
name = "foo"
```
This PR slightly rewords the `[package]` section of `src/doc/src/reference/manifest.md` to reflect this.
2024-02-04 00:52:33 +00:00
Steven Engler
1a2e4f2d1f
doc: [package]
doesn't require version
field
2024-02-03 19:39:56 -05:00
bors
cdf84b69d0
Auto merge of #13388 - Nemo157:panic-abort-doc-tests, r=epage
...
Apply `-Zpanic-abort-tests` to doctests too
### What does this PR try to resolve?
`cranelift` doesn't support unwinding, which causes issues with `should_panic` tests. Attempting to use `-Zpanic-abort-tests` to fix that still fails with doctests because they attempt to use unwinding. `rustdoc` already supports specifying `-Cpanic=abort` and correctly handles ` ```should_panic` tests with it enabled, so we can just start passing it when `-Zpanic-abort-tests` is set.
Fixes https://github.com/rust-lang/rust/issues/120578 (when using `-Zbuild-std=std,panic_abort` too)
2024-02-02 19:39:16 +00:00
bors
258fa84f55
Auto merge of #13387 - alexcrichton:hide-rustdoc-cli-on-failure, r=epage
...
Don't print rustdoc command lines on failure by default
This commit lifts a helper function from invoking rustc to additionally being used for invoking rustdoc. This enables hiding the command line invocation of `rustdoc` by default when it fails, although it's still available to see with `--verbose`. The intention here is to match the behavior of `cargo build` for rustc failures here and was inspired by recently running `cargo doc` and not being able to see the actual failure as the command line ended up taking the whole screen (afterwards I made the screen bigger and that helped too).
Fixes #13386
2024-02-02 18:56:30 +00:00
Wim Looman
255914696a
Apply -Zpanic-abort-tests
to doctests too
2024-02-02 19:45:15 +01:00
Alex Crichton
1439b3fbe9
Don't print rustdoc command lines on failure by default
...
This commit lifts a helper function from invoking rustc to additionally
being used for invoking rustdoc. This enables hiding the command line
invocation of `rustdoc` by default when it fails, although it's still
available to see with `--verbose`. The intention here is to match the
behavior of `cargo build` for rustc failures here and was inspired by
recently running `cargo doc` and not being able to see the actual
failure as the command line ended up taking the whole screen (afterwards
I made the screen bigger and that helped too).
2024-02-02 10:33:07 -08:00
bors
4b22dcf25a
Auto merge of #13385 - Nemo157:test-system-decouple, r=epage
...
Ensure `nonzero_exit_code` test isn't affected by developers `RUST_BACKTRACE` setting
### What does this PR try to resolve?
If testing while having `RUST_BACKTRACE=1` set this test fails as it doesn't contain the expected note about setting it.
2024-02-02 15:10:49 +00:00
Wim Looman
4ebbda15e1
Ensure nonzero_exit_code
test isn't affected by developers RUST_BACKTRACE
setting
2024-02-02 16:04:21 +01:00
Ed Page
dce58dc76d
fix(update): Show updates for all relevant packages
2024-02-01 14:01:07 -06:00
Ed Page
90b10cd2a2
refactor(update): Simplify Upgrade/Downgrade display logic
2024-02-01 13:14:48 -06:00
Ed Page
de15651fa8
refactor(update): Pull out is_latest check
2024-02-01 13:06:46 -06:00
Ed Page
b7a0d9b94c
refactor(update): Pull out latest formatting logic
2024-02-01 13:01:24 -06:00
Ed Page
0034ea3bbf
test(update): Show lack of message on old
2024-02-01 12:59:30 -06:00
bors
a4fe27a4ba
Auto merge of #13383 - Urgau:check-cfg-docsrs, r=epage
...
Add `docsrs` cfg as a well known `--check-cfg`
Now that https://github.com/rust-lang/docs.rs/pull/2390 has been merged we can add the `docsrs` cfg in Cargo well known --check-cfg "list". The `docsrs` cfg used by at least [3k project on GitHub](https://github.com/search?q=lang%3Atoml+%2Frustdoc-args+%3D+%5C%5B%22--cfg%22%2C+%22docsrs%22%5C%5D%2F+NOT+is%3Afork&type=code&repo=&langOverride=&start_value=1 ) alone; including the cfg will help reduce the impact of enabling by default this feature.
> We include it here (in Cargo) instead of rustc, since there is a much closer relationship between Cargo and docs.rs than rustc and docs.rs. In particular, all users of docs.rs use Cargo, but not all users of rustc (like Rust-for-Linux) use docs.rs.
This is part of the last remaining bits of the `--check-cfg` feature.
r? `@epage`
2024-02-01 18:07:25 +00:00
Urgau
dfc40a0ca6
Add docsrs cfg as a well known --check-cfg
2024-02-01 18:53:51 +01:00
bors
b1bd44da10
Auto merge of #13371 - epage:new-comment, r=weihanglo
...
fix(new): Print a note, rather than a comment, for more information
### What does this PR try to resolve?
For myself, I find it frustrating when tools add boilerplate that I have to remove after every use. A `note:` on the command-line is more ephemeral, helping people who need it while not interfering with those that don't.
Fixes #12210
### How should we test and review this PR?
### Additional information
2024-02-01 17:06:08 +00:00
bors
8e5e648816
Auto merge of #13382 - estebank:issue-54196, r=weihanglo
...
Change tests to support changes to suggestion
`rustc` will start marking the suggestions for prefacing unused bindings with underscores as "maybe incorrect", which makes them no longer auto applicable by `rustfix`.
Change done at https://github.com/rust-lang/rust/pull/120470 .
2024-02-01 05:16:16 +00:00
Esteban Küber
88bafd161e
Change tests to support changes to suggestion
...
`rustc` will start marking the suggestions for prefacing unused bindings
with underscores as "maybe incorrect", which makes them no longer auto
applicable by `rustfix`.
Change done at https://github.com/rust-lang/rust/pull/120470 .
2024-02-01 03:47:27 +00:00
renovate[bot]
fcd533a913
chore(deps): update gix
2024-02-01 01:08:02 +00:00
bors
aa18926059
Auto merge of #13377 - weihanglo:m1-runner, r=Muscraft
...
chore(ci): enable m1 runner
2024-01-31 18:24:37 +00:00
bors
54281b804b
Auto merge of #13376 - epage:error, r=Muscraft
...
fix(toml): Improve map/sequence error message
This is a follow up to #13375
2024-01-31 16:55:38 +00:00
Weihang Lo
b3ac10f08a
chore(ci): enable m1 runner
2024-01-31 11:43:03 -05:00
Ed Page
bd6b4a9b14
fix(toml): Improve map/sequence error message
...
This is a follow up to #13375
2024-01-31 10:42:58 -06:00
bors
0f37cfb1f5
Auto merge of #13375 - epage:panic, r=Muscraft
...
fix(diagnostic): Don't panic on empty spans
### What does this PR try to resolve?
There is another level to this bug where we better point to where the
error occurs, see toml-rs/toml#669.
Fixes #13374
### How should we test and review this PR?
### Additional information
2024-01-31 15:57:07 +00:00
Ed Page
1c05d412af
fix(diagnostic): Don't panic on empty spans
...
There is another level to this bug where we better point to where the
error occurs.
2024-01-31 09:11:12 -06:00
Ed Page
f2a4a3e88b
test(diagnostic): Show panic
2024-01-31 08:48:53 -06:00
Ed Page
b05dc26a08
fix(update): Help people discover how they pull in a stale dep
...
I put this behind `--verbose`
- To keep the output down in the standard case
- Because its assuming most people's "behind" dependencies will be
"Unchanged" and so that is when knowing how to look up how its pulled
in is useful
2024-01-30 20:49:32 -06:00
Ed Page
967e199be7
test(update): Remove unnecesary verbose
2024-01-30 20:49:32 -06:00
Ed Page
21dfe88079
fix(update): Call out pre-releases when relevant
2024-01-30 20:16:32 -06:00