David Tolnay
c0ed70ef5e
Use semver::Version's cmp_precedence for deciding what is downgrade
2023-10-09 16:08:27 -07:00
Ed Page
03a642b1d8
fix: Set MSRV in all published packages
2023-10-06 16:34:42 -05:00
Ed Page
a4928f6584
refactor(gh): Allow tracking multiple MSRVs
2023-10-06 16:34:40 -05:00
renovate[bot]
1b4fbfb20a
chore(deps): update latest msrv to v1.73
2023-10-06 03:09:49 +00:00
renovate[bot]
abcffc2ec9
chore(deps): update rust crate toml to 0.8.2
2023-10-04 16:31:32 +00:00
bors
8ea9c233b0
Auto merge of #12765 - epage:toml, r=Muscraft
...
chore: Specify all of toml_edit's features
This is preventing us from being able to update toml/toml_edit independent of each other since the new versions are both breaing changes, so by updating one, we are getting the features enabled for us by the wrong version.
2023-10-04 15:32:00 +00:00
Weihang Lo
5530d3c3ff
Bump to 0.76.0
2023-10-04 22:39:52 +08:00
Ed Page
d3c47f1f37
chore: Specify all of toml_edit's features
...
This is preventing us from being able to update toml/toml_edit
independent of each other.
2023-10-02 12:05:57 -05:00
bors
ed0a787310
Auto merge of #12759 - rust-lang:renovate/itertools-0.x, r=epage
...
chore(deps): update rust crate itertools to 0.11.0
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [itertools](https://togithub.com/rust-itertools/itertools ) | workspace.dependencies | minor | `0.10.0` -> `0.11.0` |
---
### Release Notes
<details>
<summary>rust-itertools/itertools (itertools)</summary>
### [`v0.11.0`](https://togithub.com/rust-itertools/itertools/blob/HEAD/CHANGELOG.md#0110 )
[Compare Source](https://togithub.com/rust-itertools/itertools/compare/v0.10.5...v0.11.0 )
##### Breaking
- Make `Itertools::merge_join_by` also accept functions returning bool ([#​704](https://togithub.com/rust-itertools/itertools/issues/704 ))
- Implement `PeekingNext` transitively over mutable references ([#​643](https://togithub.com/rust-itertools/itertools/issues/643 ))
- Change `with_position` to yield `(Position, Item)` instead of `Position<Item>` ([#​699](https://togithub.com/rust-itertools/itertools/issues/699 ))
##### Added
- Add `Itertools::take_while_inclusive` ([#​616](https://togithub.com/rust-itertools/itertools/issues/616 ))
- Implement `PeekingNext` for `PeekingTakeWhile` ([#​644](https://togithub.com/rust-itertools/itertools/issues/644 ))
- Add `EitherOrBoth::{just_left, just_right, into_left, into_right, as_deref, as_deref_mut, left_or_insert, right_or_insert, left_or_insert_with, right_or_insert_with, insert_left, insert_right, insert_both}` ([#​629](https://togithub.com/rust-itertools/itertools/issues/629 ))
- Implement `Clone` for `CircularTupleWindows` ([#​686](https://togithub.com/rust-itertools/itertools/issues/686 ))
- Implement `Clone` for `Chunks` ([#​683](https://togithub.com/rust-itertools/itertools/issues/683 ))
- Add `Itertools::process_results` ([#​680](https://togithub.com/rust-itertools/itertools/issues/680 ))
##### Changed
- Use `Cell` instead of `RefCell` in `Format` and `FormatWith` ([#​608](https://togithub.com/rust-itertools/itertools/issues/608 ))
- CI tweaks ([#​674](https://togithub.com/rust-itertools/itertools/issues/674 ), [#​675](https://togithub.com/rust-itertools/itertools/issues/675 ))
- Document and test the difference between stable and unstable sorts ([#​653](https://togithub.com/rust-itertools/itertools/issues/653 ))
- Fix documentation error on `Itertools::max_set_by_key` ([#​692](https://togithub.com/rust-itertools/itertools/issues/692 ))
- Move MSRV metadata to `Cargo.toml` ([#​672](https://togithub.com/rust-itertools/itertools/issues/672 ))
- Implement `equal` with `Iterator::eq` ([#​591](https://togithub.com/rust-itertools/itertools/issues/591 ))
### [`v0.10.5`](https://togithub.com/rust-itertools/itertools/blob/HEAD/CHANGELOG.md#0105 )
[Compare Source](https://togithub.com/rust-itertools/itertools/compare/v0.10.4...v0.10.5 )
- Maintenance
### [`v0.10.4`](https://togithub.com/rust-itertools/itertools/blob/HEAD/CHANGELOG.md#0104 )
[Compare Source](https://togithub.com/rust-itertools/itertools/compare/v0.10.3...v0.10.4 )
- Add `EitherOrBoth::or` and `EitherOrBoth::or_else` ([#​593](https://togithub.com/rust-itertools/itertools/issues/593 ))
- Add `min_set`, `max_set` et al. ([#​613](https://togithub.com/rust-itertools/itertools/issues/613 ), [#​323](https://togithub.com/rust-itertools/itertools/issues/323 ))
- Use `either/use_std` ([#​628](https://togithub.com/rust-itertools/itertools/issues/628 ))
- Documentation fixes ([#​612](https://togithub.com/rust-itertools/itertools/issues/612 ), [#​625](https://togithub.com/rust-itertools/itertools/issues/625 ), [#​632](https://togithub.com/rust-itertools/itertools/issues/632 ), [#​633](https://togithub.com/rust-itertools/itertools/issues/633 ), [#​634](https://togithub.com/rust-itertools/itertools/issues/634 ), [#​638](https://togithub.com/rust-itertools/itertools/issues/638 ))
- Code maintenance ([#​623](https://togithub.com/rust-itertools/itertools/issues/623 ), [#​624](https://togithub.com/rust-itertools/itertools/issues/624 ), [#​627](https://togithub.com/rust-itertools/itertools/issues/627 ), [#​630](https://togithub.com/rust-itertools/itertools/issues/630 ))
### [`v0.10.3`](https://togithub.com/rust-itertools/itertools/blob/HEAD/CHANGELOG.md#0103 )
[Compare Source](https://togithub.com/rust-itertools/itertools/compare/v0.10.1...v0.10.3 )
- Maintenance
### [`v0.10.1`](https://togithub.com/rust-itertools/itertools/blob/HEAD/CHANGELOG.md#0101 )
[Compare Source](https://togithub.com/rust-itertools/itertools/compare/v0.10.0...v0.10.1 )
- Add `Itertools::contains` ([#​514](https://togithub.com/rust-itertools/itertools/issues/514 ))
- Add `Itertools::counts_by` ([#​515](https://togithub.com/rust-itertools/itertools/issues/515 ))
- Add `Itertools::partition_result` ([#​511](https://togithub.com/rust-itertools/itertools/issues/511 ))
- Add `Itertools::all_unique` ([#​241](https://togithub.com/rust-itertools/itertools/issues/241 ))
- Add `Itertools::duplicates` and `Itertools::duplicates_by` ([#​502](https://togithub.com/rust-itertools/itertools/issues/502 ))
- Add `chain!` ([#​525](https://togithub.com/rust-itertools/itertools/issues/525 ))
- Add `Itertools::at_most_one` ([#​523](https://togithub.com/rust-itertools/itertools/issues/523 ))
- Add `Itertools::flatten_ok` ([#​527](https://togithub.com/rust-itertools/itertools/issues/527 ))
- Add `EitherOrBoth::or_default` ([#​583](https://togithub.com/rust-itertools/itertools/issues/583 ))
- Add `Itertools::find_or_last` and `Itertools::find_or_first` ([#​535](https://togithub.com/rust-itertools/itertools/issues/535 ))
- Implement `FusedIterator` for `FilterOk`, `FilterMapOk`, `InterleaveShortest`, `KMergeBy`, `MergeBy`, `PadUsing`, `Positions`, `Product` , `RcIter`, `TupleWindows`, `Unique`, `UniqueBy`, `Update`, `WhileSome`, `Combinations`, `CombinationsWithReplacement`, `Powerset`, `RepeatN`, and `WithPosition` ([#​550](https://togithub.com/rust-itertools/itertools/issues/550 ))
- Implement `FusedIterator` for `Interleave`, `IntersperseWith`, and `ZipLongest` ([#​548](https://togithub.com/rust-itertools/itertools/issues/548 ))
</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.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4wLjMiLCJ1cGRhdGVkSW5WZXIiOiIzNy4wLjMiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIifQ==-->
2023-10-02 17:04:28 +00:00
renovate[bot]
16e168de6a
chore(deps): update compatible
2023-10-01 19:54:31 +00:00
renovate[bot]
3a203b41cf
chore(deps): update rust crate itertools to 0.11.0
2023-10-01 02:36:04 +00:00
renovate[bot]
9ef745b5f1
chore(deps): update rust crate cargo_metadata to 0.18.0
2023-10-01 01:59:05 +00:00
Ed Page
b3353c8772
refactor(shell): Switch termcolor to anstream
2023-09-29 10:16:51 -05:00
Ed Page
796398563a
refactor(test): Switch termcolor to anstream
2023-09-29 10:16:15 -05:00
Ed Page
c0fd3622bd
refactor: Reuse existing anstream dep for stripping
...
We are already getting `anstream` through `clap`, so this is no extra
cost and let's us drop some dependencies.
The `anstream` implementation is also orders of magnitude faster (last I
benchmarked)
2023-09-29 10:15:40 -05:00
Ed Page
ab5ebba867
chore: Upgrade deps to get latest anstream
2023-09-29 10:15:12 -05:00
Sebastian Thiel
3f7d556131
upgrade gitoxide to v0.54
...
This reduces the binary size and fixes an exploitable bug that could allow
code execution by injection arguments into hostnames of ssh URLs.
2023-09-25 13:53:06 +02:00
Henry Chen
277368d8cc
Update target-arch-aware crates to support mips r6 targets
...
This includes libc itself and dependencies that rely on
rustix 0.37.
command used for the update:
```shell
cargo update -p is-terminal
```
2023-09-24 23:18:43 +08:00
Eric Huss
7ada8392d0
Update curl-sys to pull in curl 8.3.0
2023-09-20 11:17:40 -07:00
Ed Page
51e1058379
refactor(shell): Centralize Shell
styling
...
This is a very rough pass at naming the styles with a focus on getting
something in and keeping the colors the same.
2023-09-11 09:51:09 -05:00
Ed Page
2d5354adc9
refactor(cli): Extract CLI style definitions
2023-09-11 09:32:13 -05:00
Ed Page
dbbc5dd6eb
feat(help): Add styling to help output
...
Traditionally, cargo has disabled clap's styled help output. My assumed
reason is that cargo mixes custom help output with auto-generated and
you couldn't previously make it all styled to match. Clap 4.2 allowed
users to pass in strings styled using ANSI escape codes, allowing us to
pass in styled text that matches clap, unblocking this. In clap
4.4.1, clap gained the ability for the user to override the style,
allowing us to choose the styling as we wish.
In this PR, I decided to use the new 4.4.1 feature to style clap's
output to match the rest of cargo's output. Alternatively, we could use
a more subdue style that clap uses by default. That subdued style was
mostly chosen to be app theme neurtral (since we didn't have theming
support yet) and there were problems with our style and no one stepped
up to fix them (cargo has a style we can match to instead).
I decided to *not* style `Arg::help` messages because
- It might be distracting to have the descriptions lit up like a
christmas tree
- It is a lot more work
The one exception I made was for `--list` since it is for a
psuedo-command (`...`) and I wanted to intentionally draw attention to
it.
2023-09-01 09:30:20 -05:00
Arlo Siemsen
e58b84d35e
breaking change(cargo-credential)
...
Changes the JSON format for cache:expires
2023-09-05 15:22:27 -05:00
Jacob Finkelman
16b330bc59
stop using lazy_static
2023-09-01 21:38:03 +00:00
renovate[bot]
b7408c7261
chore(deps): update compatible
2023-09-01 07:44:26 +00:00
renovate[bot]
fd28a0383a
chore(deps): update rust crate cargo_metadata to 0.17.0
2023-09-01 02:16:59 +00:00
Eric Huss
58b5951d9f
Update git2
2023-08-28 13:17:01 -07:00
David Tolnay
3871aecf3e
Improve deserialization errors of untagged enums
2023-08-27 16:27:08 -07:00
Eric Huss
3b6a008f73
Update serde
2023-08-26 11:40:10 -07:00
Weihang Lo
907b9c8ecf
chore: add missing windows-sys
features back
2023-08-26 10:59:04 +01:00
Deadbeef
3d50f47197
Add fields for bindeps on the registry
2023-08-25 01:43:29 +00:00
renovate[bot]
af100af4ff
chore(deps): update latest msrv to v1.72.0
2023-08-24 16:36:51 +00:00
Ed Page
7a65c826a0
fix: Set MSRV for internal packages
...
For now, I'm punting on packages we generally expect others to use
2023-08-22 16:46:47 -05:00
Weihang Lo
c1f7e2bb04
chore: upgrate clap to 4.3.23
2023-08-22 17:24:40 +01:00
Weihang Lo
5ab8a97645
Bump to 0.75.0
2023-08-22 11:54:44 +01:00
Ed Page
4793669b13
chore: Downgrade serde below the binary blob
...
As of serde 1.0.172, `serde_derive` ships a binary blog for Linux x64
for faster build times. This blob is not yet reproducible to ensure
that the safety of it. See serde-rs/serde#2538
This is not a judgement on serde or on dtolnay but just a precaution to
buy us more time as the community works through this since the beta cut
is coming up. rust-1.72 branch is unaffected.
2023-08-18 19:33:32 -05:00
Arlo Siemsen
763edbab09
rename crate to cargo-credential-libsecret
2023-08-17 16:05:31 -05:00
Arlo Siemsen
3d8e8d32cd
credential: make gnome-secret built-in as cargo:libsecret
2023-08-17 13:58:18 -05:00
bors
937b930a77
Auto merge of #12518 - arlosi:cred-dlopen, r=epage
...
cargo-credential-gnome-secret: dynamically load libsecret
Building `cargo-credential-gnome-secret` currently requires the `libsecret` development libraries to be installed and findable via `pkg-config`. This is often an extra step for users and complicates CI builds.
This loads the required functions from `libsecret` dynamically using `libloading` which uses `dlopen` internally.
Closes #12503
Testing this requires manually installing the credential provider on a system with libsecret set up. I tested it on Arch Linux.
2023-08-17 16:56:21 +00:00
Arlo Siemsen
b74e5a0e7e
credential: make 1password no longer built-in
2023-08-17 00:47:30 -05:00
Arlo Siemsen
627936bdf6
cargo-credential-gnome-secret: dynamically load libsecret
2023-08-17 00:18:00 -05:00
Weihang Lo
5691da2b79
chore(cargo-util): bump version to 0.2.6
2023-08-16 20:06:40 +01:00
Weihang Lo
9d707e4b9a
chore: remove log
, env_logger
, and pretty_env_logger
2023-08-07 12:02:19 +01:00
Weihang Lo
23561f36a1
chore: add tracing-subscriber
crate
2023-08-07 11:25:41 +01:00
Weihang Lo
9f0565e985
chore: add tracing
crate
2023-08-07 11:21:55 +01:00
Eric Huss
850ff884e8
Update miow from 0.5.0 to 0.6.0
2023-08-05 14:27:40 -07:00
bors
bfb0d197d2
Auto merge of #12445 - ehuss:update-pretty-env-logger, r=weihanglo
...
Update pretty_env_logger to 0.5
This updates pretty_env_logger from 0.4.0 to 0.5.0. The primary motivation is to drop some dependencies like `atty`.
https://github.com/seanmonstar/pretty-env-logger/compare/v0.4.0...v0.5.0
I think the main change is updating to env_logger 0.7 to 0.10 which syncs with what is normally used by cargo.
2023-08-03 23:13:19 +00:00
Eric Huss
c753612408
Remove build metadata from libgit2-sys dependency
2023-08-03 15:14:50 -07:00
Eric Huss
580bbf90f8
Update pretty_env_logger to 0.5
2023-08-03 15:14:02 -07:00
renovate[bot]
599fe4c9ba
chore(deps): update compatible
2023-08-01 02:18:22 +00:00