Weihang Lo
6072a0897a
chore(bump-check): include rustfix and cargo-util-schemas
2024-02-08 10:45:08 -05:00
bors
0ec197b202
Auto merge of #13419 - weihanglo:jobserver, r=epage
...
chore: update to `jobserver` 0.1.28
2024-02-08 13:54:22 +00:00
Weihang Lo
3dcb66b791
chore: update to jobserver
0.1.28
2024-02-08 08:32:07 -05:00
bors
571edcb733
Auto merge of #13411 - linyihai:hint-for-cargo-new, r=epage
...
feat: Add hint for adding members to workspace
### What does this PR try to resolve?
Fixes https://github.com/rust-lang/cargo/issues/13403
### How should we test and review this PR?
Reviewd commit by commit
### Additional information
2024-02-08 11:35:56 +00:00
bors
d7d48e4598
Auto merge of #13402 - epage:add, r=weihanglo
...
fix: Don't duplicate comments when editing TOML
### What does this PR try to resolve?
`toml_edit` <0.22 has a bug that will cause
```toml
[lints]
rust.unsafe_op_in_unsafe_fn = "deny"
rust.explicit_outlives_requirements = "warn"
# rust.unused_crate_dependencies = "warn"
clippy.cast_lossless = "warn"
clippy.doc_markdown = "warn"
clippy.exhaustive_enums = "warn"
```
to be written out as
```toml
[lints]
rust.unsafe_op_in_unsafe_fn = "deny"
rust.explicit_outlives_requirements = "warn"
# rust.unused_crate_dependencies = "warn"
clippy.cast_lossless = "warn"
# rust.unused_crate_dependencies = "warn"
clippy.doc_markdown = "warn"
# rust.unused_crate_dependencies = "warn"
clippy.exhaustive_enums = "warn"
```
when it is parsed and then saved.
See toml-rs/toml#673
This affects any format-preserving edits we do, including:
- `cargo add`
- `cargo remove`
- `cargo init` / `cargo new` editing the workspace
### How should we test and review this PR?
I didn't add any tests as this is covered by `toml_edit`s tests (we already don't cover a fraction of the edit preserving tests it has)
### Additional information
2024-02-07 16:23:04 +00:00
bors
ccc84ccec4
Auto merge of #13415 - oli-obk:relax_test_for_rustc_changes, r=weihanglo
...
Relax a test to permit warnings to be emitted, too.
This change is necessary to allow rustc to actually start emitting the warning about the unused `mut`
See the test failure in https://github.com/rust-lang/rust/pull/120550#issuecomment-1931802095 for where this happens.
2024-02-07 15:37:49 +00:00
Oli Scherer
e60678fae0
Relax a test to permit warnings to be emitted, too.
...
This change is necessary to allow rustc to actually start emitting the warning about the unused `mut`
2024-02-07 15:16:40 +00:00
bors
9a6bafd956
Auto merge of #13416 - weihanglo:disable-lldb, r=epage
...
test: disable lldb test as it requires privileges to run on macOS
Resolves #13413
2024-02-07 14:53:24 +00:00
Weihang Lo
cd1f08899e
test: disable lldb test as it requires privileges to run on macOS
2024-02-07 09:45:25 -05:00
bors
fbebea2ebb
Auto merge of #13412 - ehuss:update-git2, r=weihanglo
...
Update git2
This updates git2 primarily to pull in the update for libgit2 1.7.2 which fixes three security issues. `@weihanglo` did some investigation, and it looks like cargo may be susceptible to one of them with rev parsing. I am uncertain of the severity, but the CVE seems to imply that it is mainly a denial-of-service with an infinite loop from a well-crafted spec.
See https://github.com/libgit2/libgit2/releases/tag/v1.7.2 for more information.
2024-02-07 04:44:22 +00:00
Eric Huss
c30c13b3f1
Update git2
2024-02-06 20:11:27 -08:00
bors
993418efd7
Auto merge of #13410 - epage:note, r=weihanglo
...
fix: Switch more notes/warnings to lowercase
See https://doc.crates.io/contrib/implementation/console.html#style
By fixing existing cases, we make it more likely people will copy a case they should.
I left out multi-sentence cases because I was unsure how to handle those
2024-02-07 03:07:12 +00:00
Ed Page
69eb49194b
fix: Switch more notes/warnings to lowercase
...
See https://doc.crates.io/contrib/implementation/console.html#style
By fixing existing cases, we make it more likely people will copy a case
they should.
I left out multi-sentance cases because I was unsure how to handle those
r? @weighanglo
2024-02-06 19:52:12 -06:00
bors
bb9b25f213
Auto merge of #13391 - linyihai:non_workspace_add_lib, r=weihanglo
...
Don't add the new package to workspace.members if there is no existing workspace in Cargo.toml.
### What does this PR try to resolve?
Fixed https://github.com/rust-lang/cargo/issues/13345
If the current package has no workspace table in Cargo.toml, then if you run `cargo add foo`, don't create the workspace inline item and don't add `foo` into the workspace.members.
### How should we test and review this PR?
Reviewed by commit by commit.
### Additional information
2024-02-06 13:02:36 +00:00
Lin Yihai
9be95dfb1c
feat: Add hint for adding members to workspace
2024-02-06 13:30:56 +08:00
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
Lin Yihai
0391b14a9b
fix: Don't add the new package to workspace.members if there is no existing workspace in Cargo.toml
2024-02-05 21:12:15 +08: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
Lin Yihai
3a4fdba907
test: Add library package into non-workspace package
2024-02-02 11:32:44 +08: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