Commit Graph

758 Commits

Author SHA1 Message Date
renovate[bot] 40d85adcb9
chore(deps): update rust crate toml_edit to 0.21.0 2023-12-01 03:29:23 +00:00
renovate[bot] 7025627162
chore(deps): update rust crate rusqlite to 0.30.0 2023-12-01 02:06:50 +00:00
renovate[bot] 48e3d6c330
chore(deps): update rust crate itertools to 0.12.0 2023-12-01 02:06:25 +00:00
renovate[bot] 0998ad3090
chore(deps): update rust crate openssl to 0.10.60 [security] 2023-11-28 21:44:54 +00:00
Weihang Lo 21274da65b
chore: bump `rustfix` to 0.7.0 2023-11-27 10:50:10 -05:00
bors eed300d5e8 Auto merge of #13005 - ehuss:rustfix, r=weihanglo
Migrate rustfix to the cargo repo

This migrates the `rustfix` crate from https://github.com/rust-lang/rustfix/ to the cargo repo. The cargo team has been responsible for the client-side of `cargo fix`, and it can make it easier to maintain with all our tooling and tracking here. This crate is used by some external parties (like the compiler), so it will need to be maintained like an "ecosystem" package, but hopefully there shouldn't be any outside requirements (I haven't seen any in several years).

After merging, I'll follow up with some things to address in the future, such as:
- Migrating issues from the other repo.
- Opening new issues for some cleanup tasks, such as adding documentation, fixing the `#[ignore]` annotations, fixing testing on windows, maybe migrating the test code to use different dependencies, various code cleanup.
- Archiving the repo.
2023-11-21 18:36:36 +00:00
Weihang Lo 36ce6cf0f5
chore: bump cargo-credential-* crates as e58b84d broke stuff
e58b84d changed the shape of response of cargo credential protocol trait,
so credential plugins crates effectively depend on `cargo-credential@0.4.0`.
However, `cargo@0.74.0` still depends on`cargo-credential@0.3.0`.
They must depends on the same major version of `cargo-credential`
otherwise incompatible.

This PR

* bumps the version to `cargo-credential-wincred@0.4.2`
* bumps the version to `cargo-credential-macos-keychain@0.4.2`
* bumps the version to `cargo-credential-li@0.4.2`

See rust-lang#13004 for more.
2023-11-19 11:22:37 -05:00
Eric Huss b8ba6cd333 Bump the rustfix version. 2023-11-18 18:46:34 -08:00
Eric Huss 3ca00ad8cd Integrate rustfix's manifest into the workspace. 2023-11-18 17:40:20 -08:00
Weihang Lo 1539b3dfc1
lint: dogfood ourselves `lints` table in manifest
These lint rules are from src/lib.rs. We aim to remove
them in the source code once `Zlints` hit stable.
2023-11-16 11:35:21 -05:00
Weihang Lo 12d9d753ab
Bump to 0.77.0 2023-11-13 01:05:03 -05:00
Eric Huss da3ca05677 Add a global cache garbage collector.
This adds a garbage collector which will remove old files from cargo's
global cache.

A general overview of the changes here:

- `cargo::core::global_cache_tracker` contains the `GlobalCacheTracker`
  which handles the interface to a sqlite database which stores
  timestamps of the last time a file was used.
- `DeferredGlobalLastUse` is a type that implements an optimization for
  collecting last-use timestamps so that they can be flushed to disk all
  at once.
- `cargo::core::gc` contains the `Gc` type which is the interface for
  performing garbage collection. It coordinates with the
  `GlobalCacheTracker` for determining what to delete.
- Garbage collection can either be automatic or manual. The automatic
  garbage collection supports some config options for defining when
  it runs and how much it deletes.
- Manual garbage collection can be performed via options to `cargo
  clean`.
- `cargo clean` uses the new package cache locking system to coordinate
  access to the package cache to prevent interference with other cargo
  commands running concurrently.
2023-11-11 10:56:58 -08:00
Eric Huss 34fdf5fb03 Add a module with sqlite utilities.
This adds a module as a home for general sqlite support.
Initially this contains a very simple schema migration support system.
2023-11-11 10:56:58 -08:00
Josh Stone 1ee96328c3 Filter `cargo-credential-*` dependencies by OS 2023-11-09 10:09:00 -08:00
Ed Page 2130a0faf0 feat: Make browser links out of HTML file paths
This provides an alternative to `--open`, where supported.

Fixes #12888
2023-11-01 09:01:57 -05:00
bors 23eb492cf9 Auto merge of #12906 - rust-lang:renovate/gix-0.x, r=epage
chore(deps): update rust crate gix to 0.55.2

[![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.54.1` -> `0.55.2` |

---

### Release Notes

<details>
<summary>Byron/gitoxide (gix)</summary>

### [`v0.55.2`](https://togithub.com/Byron/gitoxide/releases/tag/gix-v0.55.2): gix v0.55.2

[Compare Source](https://togithub.com/Byron/gitoxide/compare/gix-v0.55.1...gix-v0.55.2)

##### Bug Fixes

-   bump `gix-transport` version to prevent it from being picked up.
    `gix-transport` v0.37.1 could accidentally be picked up by older, incompatible,
    `gix` versions which now fail to build.

    Thus v0.37.1 is now yanked and replaced with v0.38.0 along with a new
    release of `gix` to go with it.

##### Commit Statistics

-   2 commits contributed to the release.
-   1 commit was understood as [conventional](https://www.conventionalcommits.org).
-   0 issues like '(#ID)' were seen in commit messages

##### Commit Details

<csr-read-only-do-not-edit/>

<details><summary>view details</summary>

-   **Uncategorized**
    -   Prepare changelogs prior to release ([`12b5caf`](https://togithub.com/Byron/gitoxide/commit/12b5caf))
    -   Bump `gix-transport` version to prevent it from being picked up. ([`8011c73`](https://togithub.com/Byron/gitoxide/commit/8011c73))

</details>

### [`v0.55.1`](https://togithub.com/Byron/gitoxide/releases/tag/gix-v0.55.1): gix v0.55.1

[Compare Source](https://togithub.com/Byron/gitoxide/compare/gix-v0.55.0...gix-v0.55.1)

##### New Features

-   Add `take_data()` to all primitive object types.
    That is the new, most direct way to obtain its data which otherwise
    is immovable.
-   Add `detach()` and `detached()` too all object types.
    That way, the detachment API is symmetric.
    It's required to overcome the `Drop` implementation of each of these types
    which prevents moving data out of the object (easily).

##### Commit Statistics

-   2 commits contributed to the release.
-   2 commits were understood as [conventional](https://www.conventionalcommits.org).
-   0 issues like '(#ID)' were seen in commit messages

##### Commit Details

<csr-read-only-do-not-edit/>

<details><summary>view details</summary>

-   **Uncategorized**
    -   Add `take_data()` to all primitive object types. ([`5732303`](https://togithub.com/Byron/gitoxide/commit/5732303))
    -   Add `detach()` and `detached()` too all object types. ([`88f2e6c`](https://togithub.com/Byron/gitoxide/commit/88f2e6c))

</details>

### [`v0.55.0`](https://togithub.com/Byron/gitoxide/releases/tag/gix-v0.55.0): gix v0.55.0

[Compare Source](https://togithub.com/Byron/gitoxide/compare/gix-v0.54.1...gix-v0.55.0)

This release contains a complete rewrite of the internal url parsing logic, the public interface stays mostly the same however. Gitoxide will now be
more correct, interpreting more urls the same way Git does. Improvements include the added support for ssh aliases (`github:byron/gitoxide` has previously
been parsed as local path), adjustments around the interpretation of colons in file names (previously we disallowed colons that were not followed up
with a slash character) and some smaller changes that bring the interpretation of file urls more in line with Git's implementation. Additionally, the
error types have been adjusted to print a more comprehensive message by default, making sure they stay helpful even when bubbled up through multiple abstraction
layers.

There are still many (edge) cases in Git's url parsing implementation which are not handled correctly by Gitoxide. If you notice any such deviation please
open a new issue to help us making Gitoxide even more correct.

##### Other

-   <csr-id-f478a3722f0be35c109ea60b79cd4ac6e607480b/> inform about the absence of strict hash verification and strict object creation.
    Those are present in `git2` and enabled by default, and `gitoxde` definitely
    wants to do the same at some point.

##### New Features

-   add `Repository::head_tree()` to more easily obtain the current tree.
-   Add `Repository::has_object()` as a high-level alternative.
    Previously, one would have to call `repo.objects.contains()`, which
    is fine, but this method is necessary for symmetry of the API
    and one shouldn't have to drop down a level to do this.

    This method also knows empty trees as special case.
-   add `Object::try_into_blob()` and `into_blob()` and `Repository::empty_blob()`
    This way it's easier to assert that an object is actually a blob.
-   add `Repository::index_or_empty()`.
    This is useful if a missing index should mean it's empty.

##### Commit Statistics

-   14 commits contributed to the release over the course of 16 calendar days.
-   17 days passed between releases.
-   5 commits were understood as [conventional](https://www.conventionalcommits.org).
-   0 issues like '(#ID)' were seen in commit messages

##### Thanks Clippy

[Clippy](https://togithub.com/rust-lang/rust-clippy) helped 1 time to make code idiomatic.

##### Commit Details

<csr-read-only-do-not-edit/>

<details><summary>view details</summary>

-   **Uncategorized**
    -   Release gix-hash v0.13.1, gix-features v0.36.0, gix-actor v0.28.0, gix-object v0.38.0, gix-glob v0.14.0, gix-attributes v0.20.0, gix-command v0.2.10, gix-filter v0.6.0, gix-fs v0.8.0, gix-commitgraph v0.22.0, gix-revwalk v0.9.0, gix-traverse v0.34.0, gix-worktree-stream v0.6.0, gix-archive v0.6.0, gix-tempfile v11.0.0, gix-lock v11.0.0, gix-ref v0.38.0, gix-config v0.31.0, gix-url v0.25.0, gix-credentials v0.21.0, gix-diff v0.37.0, gix-discover v0.26.0, gix-ignore v0.9.0, gix-index v0.26.0, gix-mailmap v0.20.0, gix-negotiate v0.9.0, gix-pack v0.44.0, gix-odb v0.54.0, gix-pathspec v0.4.0, gix-packetline v0.16.7, gix-transport v0.37.0, gix-protocol v0.41.0, gix-revision v0.23.0, gix-refspec v0.19.0, gix-worktree v0.27.0, gix-status v0.2.0, gix-submodule v0.5.0, gix-worktree-state v0.4.0, gix v0.55.0, safety bump 37 crates ([`68e5432`](https://togithub.com/Byron/gitoxide/commit/68e5432))
    -   Prepare changelogs prior to release ([`1347a54`](https://togithub.com/Byron/gitoxide/commit/1347a54))
    -   Merge branch 'improvements' ([`429e7b2`](https://togithub.com/Byron/gitoxide/commit/429e7b2))
    -   Inform about the absence of strict hash verification and strict object creation. ([`f478a37`](https://togithub.com/Byron/gitoxide/commit/f478a37))
    -   Add `Repository::head_tree()` to more easily obtain the current tree. ([`c79a7da`](https://togithub.com/Byron/gitoxide/commit/c79a7da))
    -   Add `Repository::has_object()` as a high-level alternative. ([`787a9aa`](https://togithub.com/Byron/gitoxide/commit/787a9aa))
    -   Add `Object::try_into_blob()` and `into_blob()` and `Repository::empty_blob()` ([`3cec935`](https://togithub.com/Byron/gitoxide/commit/3cec935))
    -   Thanks clippy ([`345712d`](https://togithub.com/Byron/gitoxide/commit/345712d))
    -   Merge branch 'reset' ([`b842691`](https://togithub.com/Byron/gitoxide/commit/b842691))
    -   Trust Ctime again ([`f929d42`](https://togithub.com/Byron/gitoxide/commit/f929d42))
    -   Add `Repository::index_or_empty()`. ([`7d9ecdd`](https://togithub.com/Byron/gitoxide/commit/7d9ecdd))
    -   Adapt to changes in `gix-status` ([`54fb7c2`](https://togithub.com/Byron/gitoxide/commit/54fb7c2))
    -   Merge branch 'gix-url-parse-rewrite' ([`a12e4a8`](https://togithub.com/Byron/gitoxide/commit/a12e4a8))
    -   Update changelogs ([`4349353`](https://togithub.com/Byron/gitoxide/commit/4349353))

</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.

🔕 **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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMS41IiwidXBkYXRlZEluVmVyIjoiMzcuMzEuNSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
2023-11-01 14:06:02 +00:00
renovate[bot] b4efcdbf32 chore(deps): update rust crate gix to 0.55.2 2023-11-01 00:12:37 +00:00
renovate[bot] 777ec44616
chore(deps): update compatible 2023-11-01 00:12:16 +00:00
David Calavera c2167e2f28 Update `toml_edit` dependency to version 0.20.7.
This new version incorporates utilities to sort Array elements.

Signed-off-by: David Calavera <david.calavera@gmail.com>
2023-10-28 07:42:23 -07:00
renovate[bot] b22d31672c
chore(deps): update rust crate toml_edit to 0.20.2 2023-10-13 17:48:42 +00:00
Eric Huss 51b5c4f38f Update curl-sys to pull in curl 8.4.0
This updates curl-sys from 0.4.66 to 0.4.68 to pull in curl 8.4.0.
This fixes two CVEs:

* CVE-2023-38546 — https://curl.se/docs/CVE-2023-38546.html
* CVE-2023-38545 — https://curl.se/docs/CVE-2023-38545.html

This also pulls in a change to fix compiling on macOS Sonoma.
2023-10-11 16:59:48 -07:00
bors 90fb62fc65 Auto merge of #12796 - dtolnay-contrib:switching, r=epage
Do not call it "Downgrading" when difference is only build metadata

### What does this PR try to resolve?

When a `cargo update --precise` changes a dependency between 2 versions which differ only in build metadata, Cargo prints a log referring to it as "Updating" or "Downgrading" the dependency, depending on a comparison between the build metadatas.

This is usually not meaningful, given that build metadata is often stuff like git commit hashes, which are not meaningfully ordered.

```console
    Updating crates.io index
 Downgrading foo v0.0.1+43ef4fe -> v0.0.1+2c65d16
    Updating bar v0.0.2+bc17664 -> v0.0.2+c144a98
```

~~This PR changes to the word "Switching" when the version major, minor, patch, and pre-release value are not being changed.~~
This PR uses the word "Updating" when the version major, minor, patch, and pre-release value are unchanged, regardless of whether the build metadata is going up or down.

### How should we test and review this PR?

- `cargo test`
- `cargo build --release`
- `/path/to/cargo/target/release/cargo add tonic_datastore_v1`
- `/path/to/cargo/target/release/cargo update -p tonic_datastore_v1 --precise 0.1.0+3562b6cb3`
- `/path/to/cargo/target/release/cargo update -p tonic_datastore_v1 --precise 0.1.0+ee9e8e4e6`

Before:
<img src="https://github.com/rust-lang/cargo/assets/1940490/93e377e7-928e-4cec-aff6-451166ef7c81" width="500">

~~After:~~
<img src="https://github.com/rust-lang/cargo/assets/1940490/bb71459e-469a-4e09-bb8a-4083f34bce79" width="500">

After:
<img src="https://github.com/rust-lang/cargo/assets/1940490/8804e2fe-d0de-4c9e-b463-a5742daf9446" width="500">
2023-10-11 14:21:44 +00:00
Ed Page 7846fe8cb4 chore: Sort dependency tables
This will make `cargo add` put things in the right place.

Verified by doing `cargo add arcstr && git diff && git reset --hard`
2023-10-10 15:03:22 -05:00
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 ([#&#8203;704](https://togithub.com/rust-itertools/itertools/issues/704))
-   Implement `PeekingNext` transitively over mutable references ([#&#8203;643](https://togithub.com/rust-itertools/itertools/issues/643))
-   Change `with_position` to yield `(Position, Item)` instead of `Position<Item>` ([#&#8203;699](https://togithub.com/rust-itertools/itertools/issues/699))

##### Added

-   Add `Itertools::take_while_inclusive` ([#&#8203;616](https://togithub.com/rust-itertools/itertools/issues/616))
-   Implement `PeekingNext` for `PeekingTakeWhile` ([#&#8203;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}` ([#&#8203;629](https://togithub.com/rust-itertools/itertools/issues/629))
-   Implement `Clone` for `CircularTupleWindows` ([#&#8203;686](https://togithub.com/rust-itertools/itertools/issues/686))
-   Implement `Clone` for `Chunks` ([#&#8203;683](https://togithub.com/rust-itertools/itertools/issues/683))
-   Add `Itertools::process_results` ([#&#8203;680](https://togithub.com/rust-itertools/itertools/issues/680))

##### Changed

-   Use `Cell` instead of `RefCell` in `Format` and `FormatWith` ([#&#8203;608](https://togithub.com/rust-itertools/itertools/issues/608))
-   CI tweaks ([#&#8203;674](https://togithub.com/rust-itertools/itertools/issues/674), [#&#8203;675](https://togithub.com/rust-itertools/itertools/issues/675))
-   Document and test the difference between stable and unstable sorts ([#&#8203;653](https://togithub.com/rust-itertools/itertools/issues/653))
-   Fix documentation error on `Itertools::max_set_by_key` ([#&#8203;692](https://togithub.com/rust-itertools/itertools/issues/692))
-   Move MSRV metadata to `Cargo.toml` ([#&#8203;672](https://togithub.com/rust-itertools/itertools/issues/672))
-   Implement `equal` with `Iterator::eq` ([#&#8203;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` ([#&#8203;593](https://togithub.com/rust-itertools/itertools/issues/593))
    -   Add `min_set`, `max_set` et al. ([#&#8203;613](https://togithub.com/rust-itertools/itertools/issues/613), [#&#8203;323](https://togithub.com/rust-itertools/itertools/issues/323))
    -   Use `either/use_std` ([#&#8203;628](https://togithub.com/rust-itertools/itertools/issues/628))
    -   Documentation fixes ([#&#8203;612](https://togithub.com/rust-itertools/itertools/issues/612), [#&#8203;625](https://togithub.com/rust-itertools/itertools/issues/625), [#&#8203;632](https://togithub.com/rust-itertools/itertools/issues/632), [#&#8203;633](https://togithub.com/rust-itertools/itertools/issues/633), [#&#8203;634](https://togithub.com/rust-itertools/itertools/issues/634), [#&#8203;638](https://togithub.com/rust-itertools/itertools/issues/638))
    -   Code maintenance ([#&#8203;623](https://togithub.com/rust-itertools/itertools/issues/623), [#&#8203;624](https://togithub.com/rust-itertools/itertools/issues/624), [#&#8203;627](https://togithub.com/rust-itertools/itertools/issues/627), [#&#8203;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` ([#&#8203;514](https://togithub.com/rust-itertools/itertools/issues/514))
    -   Add `Itertools::counts_by` ([#&#8203;515](https://togithub.com/rust-itertools/itertools/issues/515))
    -   Add `Itertools::partition_result` ([#&#8203;511](https://togithub.com/rust-itertools/itertools/issues/511))
    -   Add `Itertools::all_unique` ([#&#8203;241](https://togithub.com/rust-itertools/itertools/issues/241))
    -   Add `Itertools::duplicates` and `Itertools::duplicates_by` ([#&#8203;502](https://togithub.com/rust-itertools/itertools/issues/502))
    -   Add `chain!` ([#&#8203;525](https://togithub.com/rust-itertools/itertools/issues/525))
    -   Add `Itertools::at_most_one` ([#&#8203;523](https://togithub.com/rust-itertools/itertools/issues/523))
    -   Add `Itertools::flatten_ok` ([#&#8203;527](https://togithub.com/rust-itertools/itertools/issues/527))
    -   Add `EitherOrBoth::or_default` ([#&#8203;583](https://togithub.com/rust-itertools/itertools/issues/583))
    -   Add `Itertools::find_or_last` and `Itertools::find_or_first` ([#&#8203;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` ([#&#8203;550](https://togithub.com/rust-itertools/itertools/issues/550))
    -   Implement `FusedIterator` for `Interleave`, `IntersperseWith`, and `ZipLongest` ([#&#8203;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
bors c86366091b Auto merge of #12399 - epage:normalize, r=weihanglo
fix(package): Recognize and normalize `cargo.toml`

### What does this PR try to resolve?

This solution is a blend of conservative and easy
- Normalizes `cargo.toml` to `Cargo.toml` on publish
  - Ensuring we publish the `prepare_for_publish` version and include `Cargo.toml.orig`
  - Avoids dealing with trying to push existing users to `Cargo.toml`
- All other cases of `Cargo.toml` are warnings
  - We could either normalize or turn this into an error in the future
  - When helping users with case previously, we've only handle the `cargo.toml` case
  - We already should have a fallback in case a manifest isn't detected
  - I didn't want to put in too much effort to make the code more complicated to handle this

As a side effect, if a Linux user has `cargo.toml` and `Cargo.toml`, we'll only put one of them in the `.crate` file.  We can extend this out to also include a warning for portability for case insensitive filesystems but I left that for after rust-lang/cargo#12235.

### How should we test and review this PR?

A PR at a time will show how the behavior changed as the source was edited

This does add a direct dependency on `unicase` to help keep case-insensitive comparisons easy / clear and to avoid riskier areas for bugs like writing an appropriate `Hash` implementation.  `unicase` is an existing transitive dependency of cargo.

### Additional information

Fixes #12384

[Discussion on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/.60cargo.2Etoml.60.20on.20case.20insensitive.20filesystems)
2023-07-29 21:55:49 +00:00
Eric Huss d711c12535 Update curl-sys to pull in curl 8.2.1 2023-07-27 10:55:18 -07:00
Ed Page cc6b6c9584 fix(package): Avoid multiple package list entries
To keep things simple, especially in getting a `Hash` implementation
correct, I'm leveraging `unicase` for case-insensitive
comparisons which is an existing dependency and I've been using for
years on other projects.

This also opens the door for us to add cross-platform compatibility
hazard warnings about multiple paths that would write to the same
location on a case insensitive file system.  I held off on that because
I assume we would want #12235 first.

This does mean we can't test the "no manifest" case anymore because the
one case (no pun intended) I knew of for hitting it is now gone.
2023-07-26 11:02:47 -05:00
Eric Huss 9a5ed74983 Update curl-sys to pull in curl 8.2.0 2023-07-25 08:53:11 -07:00
Arlo Siemsen 2b39792aef Credential provider implementation 2023-07-21 16:02:24 -05:00
Weihang Lo 31b500c7c0
refactor(crates-io): use `thiserror`
Optionally use `thiserror` to reduce boilerplates but this part can
be dropped if we don't want.
2023-07-18 22:22:47 +01:00
Weihang Lo 6805944715
feat(crates-io): expose headers for `ResponseError::Api`
In response to RFC 3231 [^1], our registry client need to return headers
to caller, so that the caller (cargo binary) can continue parsing
challenge headers.

[^1]: https://rust-lang.github.io/rfcs/3231-cargo-asymmetric-tokens.html#the-authentication-process
2023-07-18 22:22:46 +01:00
abhiram 04e5675717 Fix "cargo doc --open" crash on WSL2
"cargo doc --open" does not work on WSL2 due to a bug in the 'opener'
crate. Updated 'opener' to v0.6.1 to fix this issue.
2023-07-18 15:58:22 +05:30
Josh Stone 2bb6f9eb8a Upgrade to indexmap v2
No code changes are required for the current uses of indexmap.

I also updated `toml_edit` to get its update to `indexmap 2`, and
`gix-hashtable` to align them all on `hashbrown 0.14`.
2023-07-17 14:15:29 -07:00
Ed Page 83a5859221 chore(platform): Version bump 2023-07-17 13:21:41 -05:00
Ed Page 4bd5f9ca50 chore(util): Version bump 2023-07-17 13:21:41 -05:00
Ed Page 5d80aa263d refactor: Provide workspace-level default license 2023-07-17 13:21:41 -05:00
Ed Page f358359a17 refactor: Provide a workspace-level default edition 2023-07-17 13:21:40 -05:00
Ed Page 8b02d4927e refactor: Infer package.readme 2023-07-17 13:21:10 -05:00
Weihang Lo ff644b8cac
Bump to 0.74.0 2023-07-15 00:20:53 +01:00
Arlo Siemsen d45ba88290 Bump version of crates-io due to unintentional semver-breaking change 2023-07-13 14:35:09 -05:00
Eric Huss 119fede29f Update criterion 2023-07-09 15:59:30 -07:00
dependabot[bot] ff26beca25
build(deps): bump openssl from 0.10.54 to 0.10.55
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.54 to 0.10.55.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.54...openssl-v0.10.55)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-21 22:59:06 +00:00
bors 0d5370a9ae Auto merge of #12268 - epage:direct, r=weihanglo
fix(embedded): Don't create an intermediate manifest

### What does this PR try to resolve?

More immediately, this is to unblock rust-lang/rust#112601

More generally, this gets us away from hackily writing out an out-of-line manifest from an embedded manifest.  To parse the manifest, we have to write it out so our regular manifest
loading code could handle it.  This updates the manifest parsing code to
handle it.

This doesn't mean this will work everywhere in all cases though.  For
example, ephemeral workspaces parses a manifest from the SourceId and
these won't have valid SourceIds.

As a consequence, `Cargo.lock` and `CARGO_TARGET_DIR` are changing from being next to
the temp manifest to being next to the script.  This still isn't the
desired behavior but stepping stones.

### How should we test and review this PR?

A Commit at a time

### Additional information

In production code, this does not conflict with #12255 (due to #12262) but in test code, it does.
2023-06-17 08:08:50 +00:00
Ed Page 575b9ac934 fix(embedded): Don't create an intermediate manifest
To parse the manifest, we have to write it out so our regular manifest
loading code could handle it.  This updates the manifest parsing code to
handle it.

This doesn't mean this will work everywhere in all cases though.  For
example, ephemeral workspaces parses a manifest from the SourceId and
these won't have valid SourceIds.

As a consequence, `Cargo.lock` and `CARGO_TARGET_DIR` are changing from being next to
the temp manifest to being next to the script.  This still isn't the
desired behavior but stepping stones.

This also exposes the fact that we didn't disable `autobins` like the
documentation says we should.
2023-06-16 21:08:47 -05:00
Ed Page 4e0ac38b52 refactor(embedded): Switch to `syn` for parsing doc comments
The hope is this will result in more resilient comment handling, being
more consistent with rustdoc.

I also hoped for less code but `syn` is doing less than I had expected,
requiring us to copy code over from other parts of rust.  It seems every
proc macro has to do this but there is no guide to it, so they all do it
differently, only covering the cases they thought to test for.

Note that this still won't support `include_str!()`.
2023-06-14 14:43:35 -05:00
Ed Page 33c9d8e2fd feat(cli): Pull in cargo-script-mvs core logic
This is no where near the implementation we want but I think we should
develop incrementally on top of what we already have.

See https://github.com/epage/cargo-script-mvs/tree/main
2023-06-09 22:03:18 -05:00
Sebastian Thiel b0e99edd0d
Upgrade to `gix` v0.45 for multi-round pack negotiations.
Previously, fetches and clones would routinely fail with a panic
that indicated that pack-negotiation can't take longer than 1 round
with our previous `Naive` approach.

With this version of `gitoxide` there is now faithful support for both
the `consecutive` and the `skipping` algorithm and multiple rounds of
negotiations, which should make all clones and fetches possible.
2023-06-06 20:08:52 +02:00
bors bdd367f366 Auto merge of #12218 - ehuss:update-curl, r=weihanglo
Update curl-sys

This is a routine update for libcurl. Changelog:
* https://curl.se/changes.html#8_1_0
* https://curl.se/changes.html#8_1_1
* https://curl.se/changes.html#8_1_2
2023-06-02 10:36:53 +00:00
Weihang Lo 1fc4852e32
Bump to 0.73.0 2023-06-02 01:21:23 +01:00
Eric Huss 14000767e9 Update curl-sys 2023-06-01 17:01:14 -07:00
Weihang Lo fa7cc198aa
refactor: replace some usages of `lazy_static` with `OnceLock`
* Some usages still wait for `LazyCell`.
* `TEST_ROOTS` is no longer used. Removed.
2023-06-01 22:11:20 +01:00
Weihang Lo 8cb220f5eb
refactor: use `IsTerminal` from std instead of `is-terminal` crate 2023-06-01 21:50:43 +01:00
klensy 53715ab7ed deps: remove unused features from windows-sys 2023-05-24 13:24:29 +03:00
WANG Rui 526f5aefda Update libc to 0.2.144 2023-05-09 21:15:55 +08:00
Eric Huss 1ff784888f Update git2 2023-05-06 12:59:38 -07:00
Scott Schafer 34b8c39d77 chore: Use `[workspace.dependencies]` 2023-04-28 09:56:09 -05:00
Sebastian Thiel ed55f77c25
upgrade `gix` to v0.44 to remove empty shallow files. 2023-04-27 14:19:23 +02:00
Sebastian Thiel 4b93f095c8
Various improvements to address the PR review.
https://github.com/rust-lang/cargo/pull/11840#pullrequestreview-1383844802
2023-04-27 14:19:01 +02:00
Sebastian Thiel c7ff94fce8
Enable shallow clones and fetches for registry and git dependencies.
The implementation hinges on passing information about the kind of clone
and fetch to the `fetch()` method, which then configures the fetch accordingly.

Note that it doesn't differentiate between initial clones and fetches as
the shallow-ness of the repository is maintained nonetheless.
2023-04-27 14:18:22 +02:00
Eric Huss a4f01c0352 Update home dependency 2023-04-25 11:38:52 -07:00
bors a4a8bd1742 Auto merge of #12021 - ehuss:update-windows-sys, r=weihanglo
Update windows-sys

This updates the windows-sys dependency from 0.45 to 0.48. This shouldn't add or remove any duplicate dependencies (since there are other dependencies still using 0.45 and 0.42). The intent is to move it along the direction towards unifying in the future (though it seems like a moving target that will be difficult to ever hit).

This also bumps the home crate version. I think it should be OK to make the migration from winapi to windows-sys a patch version, though there seems to be some issues with the way windows-sys works that could introduce some build-time problems in some situations (such as those encountered in https://github.com/rust-lang/rust/pull/108665 and https://github.com/rust-lang/rust/pull/106610). However, I don't expect too much of an issue.
2023-04-24 11:50:26 +00:00
Eric Huss eea69e549f Bump versions of local crates 2023-04-23 13:01:29 -07:00
Eric Huss ac25009500 Update windows-sys 2023-04-23 12:40:00 -07:00
Luca Barbato dfb4be81a8 Add the Win32_System_Console feature since it is used 2023-04-22 13:24:59 +02:00
bors de80432f04 Auto merge of #12012 - weihanglo:version-bump, r=epage
Bump to 0.72.0; update changelog

[rendered](https://github.com/weihanglo/cargo/blob/version-bump/CHANGELOG.md)
2023-04-21 13:18:32 +00:00
Weihang Lo 8966ab0e19
chore: remove `src/doc` from `exclude` list in Cargo.toml 2023-04-21 10:58:45 +01:00
QiangHeisenberg 9ba0d4439b output use line wrap 2023-04-21 11:25:09 +08:00
Weihang Lo caf0c82b4c
Bump to 0.72.0 2023-04-21 01:12:56 +01:00
Ed Page 895435fba9 chore: Use globs for workspace members
This is a short-term option until we can have a better solution for
globbing.  This does not update `benches/` to support which has a README
in there preventing globbing; this seems low-churn enough not to find a
solution for it.

On the next sync-up with rust-lang/rust, we'll need to update 4e46301258/src/bootstrap/tool.rs (L588-L603)

Fixes #11988
2023-04-18 20:02:21 -05:00
Weihang Lo a0bb59c8a8
chore: use openssl only on non-Windows platforms 2023-04-16 07:56:54 +01:00
Weihang Lo aaca5a0a56
chore: remove dependency `rustc-workspace-hack`
Co-authored-by: Scott Schafer <schaferjscott@gmail.com>
Co-authored-by: Eric Huss <eric@huss.org>
2023-04-12 11:32:58 +01:00
Weihang Lo 796853ca54
chore: new Cargo feature `all-static`
This is primarily for the release process of rust-lang/rust.

Note that in rustc-worksace-hack[1] it enable http2 via libnghttp2,
cargo probably needs to enable it to compile in rust-lang/rust.

[1]: 992d154f3a/src/tools/rustc-workspace-hack/Cargo.toml (L77)

Co-authored-by: Scott Schafer <schaferjscott@gmail.com>
Co-authored-by: Eric Huss <eric@huss.org>
2023-04-12 11:30:42 +01:00
Weihang Lo ecfe92776c
chore: create a `[workspace]` for cargo
Some dependencies in `resolver-tests` do not have any license
information. This prevent it from being a member when integrating in
rust-lang/rust. Will figure it out after.

Co-authored-by: Scott Schafer <schaferjscott@gmail.com>
Co-authored-by: Eric Huss <eric@huss.org>
2023-04-12 11:30:42 +01:00
Eric Huss 78970bd4a8 Update git2 2023-04-02 15:37:53 -07:00
Eric Huss 6bd1209a55 Add delays to network retries. 2023-03-31 14:04:48 -07:00
Ed Page 6feea34f8a chore: Upgrade to clap v4.2
Tests in `master` are currently failing because its building with clap
v4.2 but the tests have snapshots from v4.1
2023-03-28 05:00:49 -05:00
Eric Huss 89b86b7da2 Update curl-sys 2023-03-20 11:54:02 -07:00
bors 0dec9a3d59 Auto merge of #11820 - weihanglo:bump-crates-io, r=ehuss
Bump crates-io to 0.36.0

This was an overlook of https://github.com/rust-lang/cargo/pull/11600

Since we already got #11806 to backport, I guess it is not harmful to <https://github.com/rust-lang/cargo/labels/beta-nominated> this as well.  Maybe it do need a backport as `src/cargo/ops/registry.rs` use a new public API from that PR.

BTW, please help check if it is really a breaking change.
2023-03-09 20:19:04 +00:00
Weihang Lo 8296cfe547
Bump crates-io to 0.36.0
This was an overlook of https://github.com/rust-lang/cargo/pull/11600
2023-03-09 17:10:32 +00:00
Weihang Lo 4dccac6a4a
Bump to 0.71.0 2023-03-08 21:46:33 +00:00
Andreas Hollmann ccb8a4acc9 Fix cargo-util version 2023-03-07 13:42:18 +01:00
Sebastian Thiel 6e96095cfc
Adjust git::fetch() progress bar to deal with gitoxide-specifics
The `git2` implementation can leverage that `git2` provides a consistent
view on the objects to be index, so it looks like 33% of the time is spent
receiving objects, and the rest of the time is used resolving them.

In `gitoxide`, there are two distinct phases and these are exposed by the way
we obtain progress for two separate phases. We have to do some math to renormalize
those to a single, continuous progress by mapping the values for 'amount of objects'
to the first half and second half of the progress bar respectively.

This has the advantage of having the first phase (receiving objects) end at 50%
and the second phase (resolving deltas) at 100%.
2023-03-04 14:20:10 +01:00
bors 7b443fbfbf Auto merge of #11796 - epage:deps, r=weihanglo
chore: Update base64

This removes one of cargo's duplicate dependencies as found by #11761.

`base64` is a bit of a controversial crate right now.  It is going through large API changes, making it not as ergonomic for basic cases, which has ticked off a number of people.  I kept it for now because its elsewhere in our dependency tree.

Byron already updated `prodash` to use the latest `parking_lot`

Remaining duplicates
- `hex` is blocked on `crypto-hash` which seems to no longer be maintained
- `hashbrown` is blocked on `indexmap` (updated in master) and `imara-diff`
- `humantime`, `env_logger`, `hermit-abi` are present from the optional `pretty_env_logger` dependency (why are we using optional deps? #6348)
- `windows-sys` is held back by `schannel`, `tempfile`, and `mio`
2023-03-03 08:45:21 +00:00
Sebastian Thiel cfffda9ae5
add `-Zgitoxide=fetch` feature toggle and implementation.
This allows to use `gitoxide` for all fetch operations, boosting performance
for fetching the `crates.io` index by a factor of 2.2x, while being consistent
on all platforms.

For trying it, nightly builds of `cargo` can specify `-Zgitoxide=fetch`.
It's also possible to set the `__CARGO_USE_GITOXIDE_INSTEAD_OF_GIT2=1` environment
variable (value matters), which is when `-Zgitoxide=none` can be used
to use `git2` instead.

Limitations
-----------
Note that what follows are current shortcomings that will be addressed in future PRs.

- it's likely that authentication around the `ssh` protocol will work differently in practice
  as it uses the `ssh` program.
- clones from `file://` based crates indices will need the `git` binary to serve the locatl repository.
- the progress bar shown when fetching doesn't work like the orgiinal, but should already feel 'faster'.
2023-03-02 12:35:50 +01:00
Ed Page 855b1ad050 chore: Update base64
This removes one of cargo's duplicate dependencies
2023-02-28 15:55:19 -06:00
Weihang Lo b9bfda596f
chore: bump jobserver to respect `--jobserver-auth=fifo:PATH`'
See https://github.com/alexcrichton/jobserver-rs/pull/49
2023-02-28 16:08:12 +00:00
Weihang Lo ec05b237b2
chore: bump is-terminal to 0.4.4
Fixes #11710. See sunfishcode/is-terminal#18
2023-02-23 14:55:18 +00:00
Eric Huss 43a27cbcde
Revert "Update curl-sys to use libcurl 7.88.1" 2023-02-22 06:55:20 -08:00
bors b6c7fbeb13 Auto merge of #11750 - klensy:pe, r=arlosi
reuse url encoding from `url` crate, don't use separate `percent-encoding`

Reuse encoding from `url`, don't use separate `percent-encoding`.
2023-02-21 17:50:08 +00:00
klensy 37d429ca67 reuse url encoding from `url` crate, don't use separate `percent-encoding` 2023-02-21 18:57:25 +03:00
Eric Huss a616356b39 Update curl-sys to use libcurl 7.88.1 2023-02-21 06:44:36 -08:00
Scott Schafer c3043d9a9e chore: Make dependencies alphabetical order 2023-02-15 09:22:08 -06:00
Ed Page 6007f05a85 chore: Update to toml v0.6, toml_edit v0.18
`toml` replaces `toml_edit::easy`, using `toml_edit` as its parser.
2023-01-19 15:26:28 -06:00
Ed Page d52f29897a chore: Deny warnings across entire cargo repo 2023-02-10 16:17:33 -06:00
hzlinyiyu ae91d4ed41 do some clean up 2023-01-31 18:02:57 +08:00
Weihang Lo 03dfbb97ba
Bump to 0.70.0 2023-01-27 21:55:20 +00:00
Ed Page 8fb9effcae test: Update for clap 4.1.3
The latest clap release fixed a bug with the algorithm for providing
suggestions, leading this suggestion to change.
2023-01-23 21:19:48 -06:00
Eric Huss 198d2ee432 Temporarily pin libgit2-sys. 2023-01-21 12:14:31 -08:00
Weihang Lo c51c6bb6ac
chore: reflect to clap updates 2023-01-14 09:23:39 +00:00
Eric Huss 67ae2dcafe
ssh known_hosts: support hashed hostnames 2023-01-10 14:36:39 +01:00
Eric Huss 1387fd4105
Validate SSH host keys 2023-01-10 14:36:22 +01:00