18868 Commits

Author SHA1 Message Date
TheSlapstickDictator
9b4f03a876 chore: update handlebars to v6, fix build error
DirectorySourceOptions is marked as #[non_exhaustive], and only
exposes the Default trait, so we need to instantiate a mutable
instance using default(), and then change tpl_extension to the
value we want.
2024-11-01 14:55:20 -07:00
bors
0310497822 Auto merge of #14761 - cuviper:rustc-meta, r=epage
Add more metadata to `rustc_fingerprint`

Previously, `rustc_fingerprint` was only using the path and mtime for each executable, but this is not always sufficient. For example, Fedora will [clamp mtimes] to help reproducible builds, so Rust 1.82 looks like `/usr/bin/rustc` and `2024-10-17 00:00:00` across all builds in Fedora 39 through 42 (rawhide), even though they are different in their full version strings, LLVM, etc.

[clamp mtimes]: https://fedoraproject.org/wiki/Changes/ReproducibleBuildsClampMtimes

If the target directory (including `.rustc_info.json`) is shared across such systems, the fingerprint wouldn't notice the difference, and cargo would try to use artifacts that aren't actually compatible, like:

```
error[E0514]: found crate `autocfg` compiled by an incompatible version of rustc
 --> build.rs:2:14
  |
2 |     let ac = autocfg::new();
  |              ^^^^^^^
  |
  = note: the following crate versions were found:
          crate `autocfg` compiled by rustc 1.82.0 (f6e511eec 2024-10-15) (Fedora 1.82.0-1.fc42): [...]/target/debug/deps/libautocfg-589c41db1eea6297.rlib
  = help: please recompile that crate using this compiler (rustc 1.82.0 (f6e511eec 2024-10-15) (Fedora 1.82.0-1.fc40)) (consider running `cargo clean` first)
```

We can improve this situation by adding the file length, although that could also happen to be the same, and the creation date that will match when the file was installed, though not all filesystems support that. All of this comes from a single metadata call, so it shouldn't have any noticeable slowdown that would hurt the caching effort.
2024-11-01 19:27:56 +00:00
bors
40d6078baf Auto merge of #14765 - weihanglo:rustfix, r=epage
test(rustfix): switch to a simpler case for dedup-suggestions
2024-11-01 15:37:00 +00:00
bors
57ffbb6e78 Auto merge of #14766 - rust-lang:renovate/security-framework-3.x, r=ehuss
chore(deps): update rust crate security-framework to v3

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [security-framework](https://lib.rs/crates/security_framework) ([source](https://redirect.github.com/kornelski/rust-security-framework)) | workspace.dependencies | major | `2.11.1` -> `3.0.0` |

---

### Release Notes

<details>
<summary>kornelski/rust-security-framework (security-framework)</summary>

### [`v3.0.0`](https://redirect.github.com/kornelski/rust-security-framework/compare/v2.11.1...v3.0.0)

[Compare Source](https://redirect.github.com/kornelski/rust-security-framework/compare/v2.11.1...v3.0.0)

</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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/rust-lang/cargo).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMzUuMiIsInVwZGF0ZWRJblZlciI6IjM4LjEzNS4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
2024-11-01 14:51:06 +00:00
bors
dff17c2065 Auto merge of #14762 - rust-lang:renovate/gix-0.x, r=epage
chore(deps): update rust crate gix to 0.67.0

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [gix](https://redirect.github.com/GitoxideLabs/gitoxide) | workspace.dependencies | minor | `0.64.0` -> `0.67.0` |

---

### Release Notes

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

### [`v0.67.0`](https://redirect.github.com/GitoxideLabs/gitoxide/releases/tag/gix-v0.67.0): gix v0.67.0

[Compare Source](https://redirect.github.com/GitoxideLabs/gitoxide/compare/gix-v0.66.0...gix-v0.67.0)

##### New Features

-   add `Repository::diff_tree_to_tree()` for greater similarity to `git2`
-   add `gix merge-file` with similar features as `git merge-file`
-   add `Repository::blob_merge_options()` to obtain options for merging blobs and `Repository::diff_algorithm()`
-   `Repository::merge_resource_cache()` to obtain the foundation for merging files directly.
-   make implicit free-list more controllable
    This is done by three new `Repository` methods:

    -   `empty_reusable_buffer()` - hook into the free-list yourself.

<!---->

-   `set_freelist()` - enable or initialize the free-list.
-   `without_freelist()` - a builder to disable the freelist from the start.

##### Bug Fixes

-   make `GIT_WORK_TREE` variable work as expected.
    Now it's picked up durign initialization.
-   improve directory matching
    Previously the sorting wasn't accounted for, so an assumption about
    the order of changes weren't actually true.
-   don't be too generous when extrapolating worktree directories.
    Previously it was possible that a non-bare repository that didn't have
    worktree directory incorrectly claimed it had one.
-   don't unconditionally stuff fetch-specs if these are already present.
    Previously, we'd always add 'default' refspecs, even though ref-specs
    might already have been present.
    Now we only do this if there were no refspecs prior, and that might
    still be more than Git does. I wonder where this requirement came from,
    except that it might help with tests.
-   Don't bail out if there are extra-refspecs.
-   make `rev_walk` available even without the `revision` feature.
    Technically it doesn't depend on it.

##### Other

-   <csr-id-64ff0a77062d35add1a2dd422bb61075647d1a36/> Update gitoxide repository URLs
    This updates `Byron/gitoxide` URLs to `GitoxideLabs/gitoxide` in:

    -   Markdown documentation, except changelogs and other such files
        where such changes should not be made.

    -   Documentation comments (in .rs files).

    -   Manifest (.toml) files, for the value of the `repository` key.

    -   The comments appearing at the top of a sample hook that contains
        a repository URL as an example.

    When making these changes, I also allowed my editor to remove
    trailing whitespace in any lines in files already being edited
    (since, in this case, there was no disadvantage to allowing this).

    The gitoxide repository URL changed when the repository was moved
    into the recently created GitHub organization `GitoxideLabs`, as
    detailed in [#&#8203;1406](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1406). Please note that, although I believe updating
    the URLs to their new canonical values is useful, this is not
    needed to fix any broken links, since `Byron/gitoxide` URLs
    redirect (and hopefully will always redirect) to the coresponding
    `GitoxideLabs/gitoxide` URLs.

    While this change should not break any URLs, some affected URLs
    were already broken. This updates them, but they are still broken.
    They will be fixed in a subsequent commit.

    This also does not update `Byron/gitoxide` URLs in test fixtures
    or test cases, nor in the `Makefile`. (It may make sense to change
    some of those too, but it is not really a documentation change.)

##### New Features (BREAKING)

-   optional rename tracking for directories.
    Depending on the source of the rename-information, items that are children
    of renamed parents may be provided to enable rename tracking based on these
    containers, instead of always resorting to tracking leaf nodes (i.e. blobs).
-   Support for 'fast-tracking' reaching the beginning of the commit-graph during traversals.
    It's implemented by sorting commits oldest first when choosing the next one to traverse,
    which can greatly reduce the time it takes to reach the first commit of a graph.
-   optionally store objects new objects in memory only.
    The default object database changed to a version that allows to
    keep objects in memory. This needs a mutable `Repository` instance
    to setup.
-   Do not let `revision::walk::Platform` rely on plumbing crate types.
    This is a step towards a more stable API, but also, will allow using
    different implementations.

    Notably, this replaces `gix_traverse::commit::simple::Sorting` with
    `gix::revision::walk::Sorting`.

##### Bug Fixes (BREAKING)

-   improve error messages when failing to find references.
    It's breaking due to changes in the error type.
-   unify location of error type of `Repository::diff_resource_cache()`.
-   `Tree::lookup_entry()` looses its `buf` argument.
    The buffer will now be previded from the free-list of the repository.
-   remove all workspace dependencies
    The problem is that with them, we don't notice anymore if the crate changes,
    because a dependency changes. That also means that older versions of the dependency
    may stay even though some other crates might pick up a newer version.

    Ultimately, this will lead to drift and subtle incompatibilities.

    We declare this breaking to enforce a proper re-release.

##### Refactor (BREAKING)

-   <csr-id-743695fc345b59e30e75fb6b91357ab7e994bda2/> always trackt he full path when producing diffs, but allow to disable it.
-   <csr-id-45b71554f6437fbfe3ead020ff182f77cd57e47f/> Use the new `tree_with_rewrites` plumbing implementation.
    This merges `object::tree::diff::change::Event` into `object::tree::diff::Change`
    as well.

##### Commit Statistics

-   77 commits contributed to the release over the course of 60 calendar days.
-   60 days passed between releases.
-   25 commits were understood as [conventional](https://www.conventionalcommits.org).
-   1 unique issue was worked on: [#&#8203;1562](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1562)

##### Thanks Clippy

[Clippy](https://redirect.github.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>

-   **[#&#8203;1562](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1562)**
    -   Don't bail out if there are extra-refspecs. ([`977b81b`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/977b81b))
-   **Uncategorized**
    -   Release gix-date v0.9.1, gix-utils v0.1.13, gix-actor v0.33.0, gix-hash v0.15.0, gix-trace v0.1.11, gix-features v0.39.0, gix-hashtable v0.6.0, gix-validate v0.9.1, gix-object v0.45.0, gix-path v0.10.12, gix-glob v0.17.0, gix-quote v0.4.13, gix-attributes v0.23.0, gix-command v0.3.10, gix-packetline-blocking v0.18.0, gix-filter v0.14.0, gix-fs v0.12.0, gix-chunk v0.4.9, gix-commitgraph v0.25.0, gix-revwalk v0.16.0, gix-traverse v0.42.0, gix-worktree-stream v0.16.0, gix-archive v0.16.0, gix-config-value v0.14.9, gix-tempfile v15.0.0, gix-lock v15.0.0, gix-ref v0.48.0, gix-sec v0.10.9, gix-config v0.41.0, gix-prompt v0.8.8, gix-url v0.28.0, gix-credentials v0.25.0, gix-ignore v0.12.0, gix-bitmap v0.2.12, gix-index v0.36.0, gix-worktree v0.37.0, gix-diff v0.47.0, gix-discover v0.36.0, gix-pathspec v0.8.0, gix-dir v0.9.0, gix-mailmap v0.25.0, gix-merge v0.0.0, gix-negotiate v0.16.0, gix-pack v0.54.0, gix-odb v0.64.0, gix-packetline v0.18.0, gix-transport v0.43.0, gix-protocol v0.46.0, gix-revision v0.30.0, gix-refspec v0.26.0, gix-status v0.14.0, gix-submodule v0.15.0, gix-worktree-state v0.14.0, gix v0.67.0, gix-fsck v0.7.0, gitoxide-core v0.42.0, gitoxide v0.38.0, safety bump 41 crates ([`3f7e8ee`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/3f7e8ee))
    -   Merge pull request [#&#8203;1639](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1639) from cruessler/respect-env-variables ([`48aa74b`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/48aa74b))
    -   Make `GIT_WORK_TREE` variable work as expected. ([`e9b3db8`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/e9b3db8))
    -   Merge pull request [#&#8203;1637](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1637) from GitoxideLabs/improve-error-message ([`b36d7ef`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/b36d7ef))
    -   Improve error messages when failing to find references. ([`206f5d7`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/206f5d7))
    -   Merge pull request [#&#8203;1635](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1635) from GitoxideLabs/fix-ci ([`2622936`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/2622936))
    -   Improve wording of comment in test ([`e51fcd0`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/e51fcd0))
    -   Fix CI for now by excluding the failing assertion from running. ([`c949030`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/c949030))
    -   Merge pull request [#&#8203;1630](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1630) from GitoxideLabs/diff-fix ([`155b5e1`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/155b5e1))
    -   Improve directory matching ([`53fa8ab`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/53fa8ab))
    -   Reproduce ordering issue when finding parents ([`ddc99b5`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/ddc99b5))
    -   Merge pull request [#&#8203;1624](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1624) from EliahKagan/update-repo-url ([`795962b`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/795962b))
    -   Update gitoxide repository URLs ([`64ff0a7`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/64ff0a7))
    -   Merge pull request [#&#8203;1620](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1620) from Byron/fix-discovery ([`6487269`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/6487269))
    -   Silently re-add `diff::tree::ChangeDetached` ([`c18ebbe`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/c18ebbe))
    -   Don't be too generous when extrapolating worktree directories. ([`f8952e4`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/f8952e4))
    -   Merge pull request [#&#8203;1612](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1612) from Byron/merge ([`37c1e4c`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/37c1e4c))
    -   Refactor integration tests for a more modern look ([`3745212`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/3745212))
    -   Add `Repository::diff_tree_to_tree()` for greater similarity to `git2` ([`2b81e6c`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/2b81e6c))
    -   Always trackt he full path when producing diffs, but allow to disable it. ([`743695f`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/743695f))
    -   Use the new `tree_with_rewrites` plumbing implementation. ([`45b7155`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/45b7155))
    -   Adapt to changes in `gix-diff` ([`3fd9fab`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/3fd9fab))
    -   Thanks clippy ([`af03832`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/af03832))
    -   Adapt to changes in `gix-diff` ([`2bf1e5f`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/2bf1e5f))
    -   Optional rename tracking for directories. ([`7be142d`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/7be142d))
    -   Adapt to chagnes in `gix-diff` ([`5c1f010`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/5c1f010))
    -   Merge pull request [#&#8203;1611](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1611) from Byron/merge ([`5ffccd2`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/5ffccd2))
    -   Add `gix merge-file` with similar features as `git merge-file` ([`3da2da9`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/3da2da9))
    -   Add `Repository::blob_merge_options()` to obtain options for merging blobs and `Repository::diff_algorithm()` ([`c02adc7`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/c02adc7))
    -   Unify location of error type of `Repository::diff_resource_cache()`. ([`9e79ba3`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/9e79ba3))
    -   `Repository::merge_resource_cache()` to obtain the foundation for merging files directly. ([`1937480`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/1937480))
    -   Add all keys for merge-configuration ([`e0b09d2`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/e0b09d2))
    -   Merge pull request [#&#8203;1585](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1585) from Byron/merge ([`2261de4`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/2261de4))
    -   Use new `WorktreeRoot` API provided by `gix-diff` ([`25c6806`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/25c6806))
    -   Merge pull request [#&#8203;1610](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1610) from nrdxp/traverse/oldest-first ([`20f9b3f`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/20f9b3f))
    -   Support for 'fast-tracking' reaching the beginning of the commit-graph during traversals. ([`14d6bb9`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/14d6bb9))
    -   Merge pull request [#&#8203;1604](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1604) from Byron/protocol-shallow-v1 ([`612896d`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/612896d))
    -   Adapt to changes in `gix-protocol` ([`0d3b480`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/0d3b480))
    -   Merge pull request [#&#8203;1603](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1603) from Byron/freelist ([`73a7d15`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/73a7d15))
    -   Make implicit free-list more controllable ([`0cac690`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/0cac690))
    -   Merge pull request [#&#8203;1589](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1589) from EliahKagan/maintenance ([`7c2af44`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/7c2af44))
    -   Add missing executable bits ([`694ebad`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/694ebad))
    -   Merge pull request [#&#8203;1587](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1587) from jayvdb/typos ([`c2bdda4`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/c2bdda4))
    -   Fix typos ([`b12c7c9`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/b12c7c9))
    -   Merge pull request [#&#8203;1586](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1586) from Byron/fix-ci ([`22fbe70`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/22fbe70))
    -   Update crate-status to inform about tree-editing capabilities ([`fe1eb97`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/fe1eb97))
    -   Merge pull request [#&#8203;1584](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1584) from EliahKagan/jj-realistic-ignore ([`5242aad`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/5242aad))
    -   Don't test `jj_realistic_needs_to_be_more_clever` on Windows ([`3adcfc5`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/3adcfc5))
    -   Merge pull request [#&#8203;1582](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1582) from Byron/gix-path-release ([`93e86f1`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/93e86f1))
    -   Release gix-trace v0.1.10, gix-path v0.10.11 ([`012a754`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/012a754))
    -   Merge pull request [#&#8203;1566](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1566) from Byron/merge ([`d69c617`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/d69c617))
    -   Optionally store objects new objects in memory only. ([`dfbc732`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/dfbc732))
    -   Add tree-editing capabilities to `Tree` and `Repository`. ([`b279957`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/b279957))
    -   `Tree::lookup_entry()` looses its `buf` argument. ([`c545d71`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/c545d71))
    -   Merge pull request [#&#8203;1564](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1564) from Byron/improvements ([`1cfe577`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/1cfe577))
    -   When using the cache, allow using the entire graph. ([`0fe5133`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/0fe5133))
    -   Adapt to changes in `gix-revwalk` ([`ea403a4`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/ea403a4))
    -   Merge pull request [#&#8203;1563](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1563) from Byron/fixes ([`750e268`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/750e268))
    -   Don't unconditionally stuff fetch-specs if these are already present. ([`877f4d2`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/877f4d2))
    -   Merge pull request [#&#8203;1557](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1557) from Byron/merge-base ([`649f588`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/649f588))
    -   `gix merge-base` for the CLI ([`7249291`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/7249291))
    -   Add `Repository::merge_base()` ([`3abf043`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/3abf043))
    -   Adapt to changes in `gix-revision` ([`ce5a320`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/ce5a320))
    -   Allow empty-docs ([`beba720`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/beba720))
    -   Merge branch 'global-lints' ([`37ba461`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/37ba461))
    -   A few more missing semicolons ([`fc45c93`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/fc45c93))
    -   Workspace Clippy lint management ([`2e0ce50`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/2e0ce50))
    -   Merge pull request [#&#8203;1547](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1547) from nyurik/cast-lossless ([`c3a7dcf`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/c3a7dcf))
    -   Fix clippy::cast_lossless ([`29ad2df`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/29ad2df))
    -   Merge pull request [#&#8203;1546](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1546) from nyurik/semilocons ([`f992fb7`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/f992fb7))
    -   Add missing semicolons ([`ec69c88`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/ec69c88))
    -   Merge branch 'improvements' ([`e82f795`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/e82f795))
    -   Do not let `revision::walk::Platform` rely on plumbing crate types. ([`d63ec06`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/d63ec06))
    -   Make `rev_walk` available even without the `revision` feature. ([`c515edd`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/c515edd))
    -   Merge branch 'fixes' ([`46cd1ae`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/46cd1ae))
    -   Remove all workspace dependencies ([`1757377`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/1757377))

</details>

### [`v0.66.0`](https://redirect.github.com/GitoxideLabs/gitoxide/releases/tag/gix-v0.66.0): gix v0.66.0

[Compare Source](https://redirect.github.com/GitoxideLabs/gitoxide/compare/gix-v0.65.0...gix-v0.66.0)

##### New Features

-   add `objects::tree::diff::Platform::stats()` to quickly obtain diff-stats.
    This function is inspired by `git2` which also makes it very simple to obtain.
-   allow threaded-handling of tree-diff changes.
    This works by providing `Change::detach()` and `ChangeDetached::attach()`.
-   add `Reference::follow_to_object()`
    It's an equivalent to `git2::Reference::resolve()`.\`
-   add `Repository::diff_resource_cache_for_tree_diff()`
-   add `Reference::peel_to_kind()`
    Make it easy to follow a ref and peel it to a given object type.
    Additional `peel_to_<kind>()` shortcuts are also provided, with
    the same name as in `git2`.
-   add `Repository::find_*()` methods for every object type.
-   add `Repository::compute_object_cache_size_for_tree_diffs()`.
    With it it's easier to obtain reasonable object cache sizes as optimized
    for tree-diffs.
-   `remote::Name::to_owned()` to get a static version of it.
    Also, add optional `serde` support.
-   `Reference::remote_name()` now also provides valid remote names for local tracking branches.
-   add `Reference::peel_to_id_in_place_packed()` to allow passing a packed-buffer snapshot.
    This is useful for speeding up reference lookups as otherwise, it will have to validate the packed-buffer
    snapshot didn't change internally each time a ref is peeled.
-   add `remote::Names` as shortcut to the value returned for all remote names.

##### Bug Fixes

-   similarity detection
    Previously it would incorrectly count only the last batch of removed bytes, and now it will count all of them. This leads to realistic results with complex diffs, even though it's probably still not en-par with Git which uses more complex heuristics.
-   prevent panic in `Repository::rev_parse_single()` when `HEAD` was invalid.
    When using a refspec like `HEAD:file`.
-   do not automatically use a parallel directory walk.
    This reduces dependencies and can speed-up typical ref-walks as these
    don't benefit from this many threads - the overhead here usually outweighs
    the benefit.

    This can be turned back on based on the expected workload.

##### Other

-   <csr-id-26748ddbedc281b7b6b1defc51201d97e58f13e4/> make tree-diff more easily discoverable when coming from `git2`

##### Bug Fixes (BREAKING)

-   better peeling performance for reference traversal.
    This is done by keeping a packed-buffer around and reusing it, instead
    of re-checking it every time.

    For this to work, the `peeled()` function on the `reference::Iter` can now fail
    as it has to open a packed-refs snapshot.

##### Commit Statistics

-   41 commits contributed to the release over the course of 28 calendar days.
-   29 days passed between releases.
-   16 commits were understood as [conventional](https://www.conventionalcommits.org).
-   2 unique issues were worked on: [#&#8203;1508](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1508), [#&#8203;1524](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1524)

##### Commit Details

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

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

-   **[#&#8203;1508](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1508)**
    -   Reproduce panic when parsing refspecs ([`17bd32a`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/17bd32a))
-   **[#&#8203;1524](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1524)**
    -   Add a real-world test to reproduce an issue discovered in `jj` ([`7ef1e88`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/7ef1e88))
-   **Uncategorized**
    -   Release gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0 ([`4fe330e`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/4fe330e))
    -   Release gix-attributes v0.22.5, gix-filter v0.12.0, gix-fs v0.11.3, gix-revwalk v0.14.0, gix-traverse v0.40.0, gix-worktree-stream v0.14.0, gix-archive v0.14.0, gix-config-value v0.14.8, gix-tempfile v14.0.2, gix-ref v0.46.0, gix-sec v0.10.8, gix-config v0.39.0, gix-prompt v0.8.7, gix-url v0.27.5, gix-credentials v0.24.5, gix-ignore v0.11.4, gix-index v0.34.0, gix-worktree v0.35.0, gix-diff v0.45.0, gix-discover v0.34.0, gix-pathspec v0.7.7, gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0 ([`f2b522d`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/f2b522d))
    -   Release gix-glob v0.16.5, gix-filter v0.12.0, gix-fs v0.11.3, gix-revwalk v0.14.0, gix-traverse v0.40.0, gix-worktree-stream v0.14.0, gix-archive v0.14.0, gix-config-value v0.14.8, gix-tempfile v14.0.2, gix-ref v0.46.0, gix-sec v0.10.8, gix-config v0.39.0, gix-prompt v0.8.7, gix-url v0.27.5, gix-credentials v0.24.5, gix-ignore v0.11.4, gix-index v0.34.0, gix-worktree v0.35.0, gix-diff v0.45.0, gix-discover v0.34.0, gix-pathspec v0.7.7, gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0 ([`a65a17f`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/a65a17f))
    -   Release gix-date v0.9.0, gix-actor v0.31.6, gix-validate v0.9.0, gix-object v0.43.0, gix-path v0.10.10, gix-attributes v0.22.4, gix-command v0.3.9, gix-packetline-blocking v0.17.5, gix-filter v0.12.0, gix-fs v0.11.3, gix-revwalk v0.14.0, gix-traverse v0.40.0, gix-worktree-stream v0.14.0, gix-archive v0.14.0, gix-ref v0.46.0, gix-config v0.39.0, gix-prompt v0.8.7, gix-url v0.27.5, gix-credentials v0.24.5, gix-ignore v0.11.4, gix-index v0.34.0, gix-worktree v0.35.0, gix-diff v0.45.0, gix-discover v0.34.0, gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0, safety bump 25 crates ([`d19af16`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/d19af16))
    -   Prepare changelogs prior to release ([`0f25841`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/0f25841))
    -   Merge branch 'improvements' ([`9ed2b24`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/9ed2b24))
    -   Similarity detection ([`6990afd`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/6990afd))
    -   Fix similarity detection ([`f8c5d9c`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/f8c5d9c))
    -   Better peeling performance for reference traversal. ([`ba72ee0`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/ba72ee0))
    -   Merge branch 'improvements' ([`242fedc`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/242fedc))
    -   Use improved gix-diff API for better buffer handling ([`f944e49`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/f944e49))
    -   Add `objects::tree::diff::Platform::stats()` to quickly obtain diff-stats. ([`e079250`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/e079250))
    -   Allow threaded-handling of tree-diff changes. ([`b291de0`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/b291de0))
    -   Add `Reference::follow_to_object()` ([`d986b2b`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/d986b2b))
    -   Add `Repository::diff_resource_cache_for_tree_diff()` ([`6c6f946`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/6c6f946))
    -   Add `Reference::peel_to_kind()` ([`cdaba84`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/cdaba84))
    -   Adapt to changes in `gix-ref` ([`d296ee8`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/d296ee8))
    -   Adapt to changes in `gix-ref` ([`5464bfb`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/5464bfb))
    -   Add `Repository::find_*()` methods for every object type. ([`98bcb14`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/98bcb14))
    -   Add `Repository::compute_object_cache_size_for_tree_diffs()`. ([`63c7a03`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/63c7a03))
    -   Make tree-diff more easily discoverable when coming from `git2` ([`26748dd`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/26748dd))
    -   Merge pull request [#&#8203;1529](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1529) from Byron/better-copy-detection ([`7b7902e`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/7b7902e))
    -   Remove `#[momo]` directive as it seems to prevent auto-completion in IDEs. ([`3a339da`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/3a339da))
    -   Merge pull request [#&#8203;1521](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1521) from mvlabat/fix-dir-filename-tracking ([`12251eb`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/12251eb))
    -   Fix dir name tracking in the FileName mode ([`63936e5`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/63936e5))
    -   Merge branch 'fix-panic' ([`0b28297`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/0b28297))
    -   Prevent panic in `Repository::rev_parse_single()` when `HEAD` was invalid. ([`e74095e`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/e74095e))
    -   Merge branch 'improvements' ([`7dff447`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/7dff447))
    -   `remote::Name::to_owned()` to get a static version of it. ([`8a27454`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/8a27454))
    -   Merge branch 'improvements' ([`29898e3`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/29898e3))
    -   `Reference::remote_name()` now also provides valid remote names for local tracking branches. ([`6ac2867`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/6ac2867))
    -   Add `Reference::peel_to_id_in_place_packed()` to allow passing a packed-buffer snapshot. ([`c612440`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/c612440))
    -   Do not automatically use a parallel directory walk. ([`6f2eb91`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/6f2eb91))
    -   Add `remote::Names` as shortcut to the value returned for all remote names. ([`7c8f409`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/7c8f409))
    -   Merge branch 'ag/jiff' ([`5871fb1`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/5871fb1))
    -   Assure the next release is breaking ([`9fd1090`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/9fd1090))
    -   Release gix-credentials v0.24.4 ([`f6a4eb9`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/f6a4eb9))
    -   Merge branch 'fix-clean' ([`33eacfb`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/33eacfb))
    -   Adapt to changes in `gix-dir` ([`37c2852`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/37c2852))

</details>

![gitoxide-160k screensize](https://redirect.github.com/user-attachments/assets/ad337f05-dc5a-427d-bc25-923911280712)

![git-100k-scloc screensize](https://redirect.github.com/user-attachments/assets/6eb59416-4f93-4ffa-b22c-8299a3cd2680)

### [`v0.65.0`](https://redirect.github.com/GitoxideLabs/gitoxide/releases/tag/gix-v0.65.0): gix v0.65.0

[Compare Source](https://redirect.github.com/GitoxideLabs/gitoxide/compare/gix-v0.64.0...gix-v0.65.0)

##### New Features

-   add `objects::tree::diff::Platform::stats()` to quickly obtain diff-stats.
    This function is inspired by `git2` which also makes it very simple to obtain.
-   allow threaded-handling of tree-diff changes.
    This works by providing `Change::detach()` and `ChangeDetached::attach()`.
-   add `Reference::follow_to_object()`
    It's an equivalent to `git2::Reference::resolve()`.\`
-   add `Repository::diff_resource_cache_for_tree_diff()`
-   add `Reference::peel_to_kind()`
    Make it easy to follow a ref and peel it to a given object type.
    Additional `peel_to_<kind>()` shortcuts are also provided, with
    the same name as in `git2`.
-   add `Repository::find_*()` methods for every object type.
-   add `Repository::compute_object_cache_size_for_tree_diffs()`.
    With it it's easier to obtain reasonable object cache sizes as optimized
    for tree-diffs.
-   `remote::Name::to_owned()` to get a static version of it.
    Also, add optional `serde` support.
-   `Reference::remote_name()` now also provides valid remote names for local tracking branches.
-   add `Reference::peel_to_id_in_place_packed()` to allow passing a packed-buffer snapshot.
    This is useful for speeding up reference lookups as otherwise, it will have to validate the packed-buffer
    snapshot didn't change internally each time a ref is peeled.
-   add `remote::Names` as shortcut to the value returned for all remote names.

##### Bug Fixes

-   similarity detection
    Previously it would incorrectly count only the last batch of removed bytes, and now it will count all of them. This leads to realistic results with complex diffs, even though it's probably still not en-par with Git which uses more complex heuristics.
-   prevent panic in `Repository::rev_parse_single()` when `HEAD` was invalid.
    When using a refspec like `HEAD:file`.
-   do not automatically use a parallel directory walk.
    This reduces dependencies and can speed-up typical ref-walks as these
    don't benefit from this many threads - the overhead here usually outweighs
    the benefit.

    This can be turned back on based on the expected workload.

##### Other

-   <csr-id-26748ddbedc281b7b6b1defc51201d97e58f13e4/> make tree-diff more easily discoverable when coming from `git2`

##### Bug Fixes (BREAKING)

-   better peeling performance for reference traversal.
    This is done by keeping a packed-buffer around and reusing it, instead
    of re-checking it every time.

    For this to work, the `peeled()` function on the `reference::Iter` can now fail
    as it has to open a packed-refs snapshot.

##### Commit Statistics

-   41 commits contributed to the release over the course of 28 calendar days.
-   29 days passed between releases.
-   16 commits were understood as [conventional](https://www.conventionalcommits.org).
-   2 unique issues were worked on: [#&#8203;1508](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1508), [#&#8203;1524](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1524)

##### Commit Details

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

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

-   **[#&#8203;1508](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1508)**
    -   Reproduce panic when parsing refspecs ([`17bd32a`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/17bd32a))
-   **[#&#8203;1524](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1524)**
    -   Add a real-world test to reproduce an issue discovered in `jj` ([`7ef1e88`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/7ef1e88))
-   **Uncategorized**
    -   Release gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0 ([`4fe330e`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/4fe330e))
    -   Release gix-attributes v0.22.5, gix-filter v0.12.0, gix-fs v0.11.3, gix-revwalk v0.14.0, gix-traverse v0.40.0, gix-worktree-stream v0.14.0, gix-archive v0.14.0, gix-config-value v0.14.8, gix-tempfile v14.0.2, gix-ref v0.46.0, gix-sec v0.10.8, gix-config v0.39.0, gix-prompt v0.8.7, gix-url v0.27.5, gix-credentials v0.24.5, gix-ignore v0.11.4, gix-index v0.34.0, gix-worktree v0.35.0, gix-diff v0.45.0, gix-discover v0.34.0, gix-pathspec v0.7.7, gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0 ([`f2b522d`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/f2b522d))
    -   Release gix-glob v0.16.5, gix-filter v0.12.0, gix-fs v0.11.3, gix-revwalk v0.14.0, gix-traverse v0.40.0, gix-worktree-stream v0.14.0, gix-archive v0.14.0, gix-config-value v0.14.8, gix-tempfile v14.0.2, gix-ref v0.46.0, gix-sec v0.10.8, gix-config v0.39.0, gix-prompt v0.8.7, gix-url v0.27.5, gix-credentials v0.24.5, gix-ignore v0.11.4, gix-index v0.34.0, gix-worktree v0.35.0, gix-diff v0.45.0, gix-discover v0.34.0, gix-pathspec v0.7.7, gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0 ([`a65a17f`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/a65a17f))
    -   Release gix-date v0.9.0, gix-actor v0.31.6, gix-validate v0.9.0, gix-object v0.43.0, gix-path v0.10.10, gix-attributes v0.22.4, gix-command v0.3.9, gix-packetline-blocking v0.17.5, gix-filter v0.12.0, gix-fs v0.11.3, gix-revwalk v0.14.0, gix-traverse v0.40.0, gix-worktree-stream v0.14.0, gix-archive v0.14.0, gix-ref v0.46.0, gix-config v0.39.0, gix-prompt v0.8.7, gix-url v0.27.5, gix-credentials v0.24.5, gix-ignore v0.11.4, gix-index v0.34.0, gix-worktree v0.35.0, gix-diff v0.45.0, gix-discover v0.34.0, gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0, safety bump 25 crates ([`d19af16`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/d19af16))
    -   Prepare changelogs prior to release ([`0f25841`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/0f25841))
    -   Merge branch 'improvements' ([`9ed2b24`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/9ed2b24))
    -   Similarity detection ([`6990afd`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/6990afd))
    -   Fix similarity detection ([`f8c5d9c`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/f8c5d9c))
    -   Better peeling performance for reference traversal. ([`ba72ee0`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/ba72ee0))
    -   Merge branch 'improvements' ([`242fedc`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/242fedc))
    -   Use improved gix-diff API for better buffer handling ([`f944e49`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/f944e49))
    -   Add `objects::tree::diff::Platform::stats()` to quickly obtain diff-stats. ([`e079250`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/e079250))
    -   Allow threaded-handling of tree-diff changes. ([`b291de0`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/b291de0))
    -   Add `Reference::follow_to_object()` ([`d986b2b`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/d986b2b))
    -   Add `Repository::diff_resource_cache_for_tree_diff()` ([`6c6f946`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/6c6f946))
    -   Add `Reference::peel_to_kind()` ([`cdaba84`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/cdaba84))
    -   Adapt to changes in `gix-ref` ([`d296ee8`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/d296ee8))
    -   Adapt to changes in `gix-ref` ([`5464bfb`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/5464bfb))
    -   Add `Repository::find_*()` methods for every object type. ([`98bcb14`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/98bcb14))
    -   Add `Repository::compute_object_cache_size_for_tree_diffs()`. ([`63c7a03`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/63c7a03))
    -   Make tree-diff more easily discoverable when coming from `git2` ([`26748dd`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/26748dd))
    -   Merge pull request [#&#8203;1529](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1529) from Byron/better-copy-detection ([`7b7902e`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/7b7902e))
    -   Remove `#[momo]` directive as it seems to prevent auto-completion in IDEs. ([`3a339da`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/3a339da))
    -   Merge pull request [#&#8203;1521](https://redirect.github.com/GitoxideLabs/gitoxide/issues/1521) from mvlabat/fix-dir-filename-tracking ([`12251eb`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/12251eb))
    -   Fix dir name tracking in the FileName mode ([`63936e5`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/63936e5))
    -   Merge branch 'fix-panic' ([`0b28297`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/0b28297))
    -   Prevent panic in `Repository::rev_parse_single()` when `HEAD` was invalid. ([`e74095e`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/e74095e))
    -   Merge branch 'improvements' ([`7dff447`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/7dff447))
    -   `remote::Name::to_owned()` to get a static version of it. ([`8a27454`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/8a27454))
    -   Merge branch 'improvements' ([`29898e3`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/29898e3))
    -   `Reference::remote_name()` now also provides valid remote names for local tracking branches. ([`6ac2867`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/6ac2867))
    -   Add `Reference::peel_to_id_in_place_packed()` to allow passing a packed-buffer snapshot. ([`c612440`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/c612440))
    -   Do not automatically use a parallel directory walk. ([`6f2eb91`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/6f2eb91))
    -   Add `remote::Names` as shortcut to the value returned for all remote names. ([`7c8f409`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/7c8f409))
    -   Merge branch 'ag/jiff' ([`5871fb1`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/5871fb1))
    -   Assure the next release is breaking ([`9fd1090`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/9fd1090))
    -   Release gix-credentials v0.24.4 ([`f6a4eb9`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/f6a4eb9))
    -   Merge branch 'fix-clean' ([`33eacfb`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/33eacfb))
    -   Adapt to changes in `gix-dir` ([`37c2852`](https://redirect.github.com/GitoxideLabs/gitoxide/commit/37c2852))

</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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/rust-lang/cargo).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMzUuMiIsInVwZGF0ZWRJblZlciI6IjM4LjEzNS4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
2024-11-01 14:18:57 +00:00
renovate[bot]
1fad901e79
chore(deps): update rust crate security-framework to v3 2024-11-01 03:03:47 +00:00
bors
2fcc3755a3 Auto merge of #14750 - epage:normalize, r=weihanglo
fix(util): Respect all `..`s in `normalize_path`

### What does this PR try to resolve?

The fact that `normalize_path` was only designed for absolute paths bit us when working out #14497 and so I decided to make sure it worked.  The other alternative I considered was having it assert that the path was absolute.

Since I did try out the assert and Cargo tests hit it, this likely fixes something but I haven't dug through to be able to say what.

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

### Additional information
2024-11-01 02:27:41 +00:00
Weihang Lo
8aec0a40f5
test(rustfix): switch to a simpler case for dedup-suggestions
This case also emits an insert-only suggestions (span start == end),
and doesn't rely on any lint behavior.

See also

* https://github.com/rust-lang/cargo/pull/13728
* https://github.com/rust-lang/cargo/issues/13027
2024-10-31 22:05:24 -04:00
renovate[bot]
48b163855f
chore(deps): update rust crate gix to 0.67.0 2024-11-01 00:02:25 +00:00
bors
7421ccf915 Auto merge of #14760 - epage:test-flake, r=ehuss
test(doc): Resolve flaky test

Saw this failure on #14759
2024-10-31 22:39:12 +00:00
Josh Stone
b5acf4ce47 Add more metadata to rustc_fingerprint
Previously, `rustc_fingerprint` was only using the path and mtime for
each executable, but this is not always sufficient. For example, Fedora
will [clamp mtimes] to help reproducible builds, so Rust 1.82 looks like
`/usr/bin/rustc` and `2024-10-17 00:00:00` across all builds in Fedora
39 through 42 (rawhide), even though they are different in their full
version strings, LLVM, etc.

[clamp mtimes]: https://fedoraproject.org/wiki/Changes/ReproducibleBuildsClampMtimes

If the target directory (including `.rustc_info.json`) is shared across
such systems, the fingerprint wouldn't notice the difference, and cargo
would try to use artifacts that aren't actually compatible, like:

```
error[E0514]: found crate `autocfg` compiled by an incompatible version of rustc
 --> build.rs:2:14
  |
2 |     let ac = autocfg::new();
  |              ^^^^^^^
  |
  = note: the following crate versions were found:
          crate `autocfg` compiled by rustc 1.82.0 (f6e511eec 2024-10-15) (Fedora 1.82.0-1.fc42): [...]/target/debug/deps/libautocfg-589c41db1eea6297.rlib
  = help: please recompile that crate using this compiler (rustc 1.82.0 (f6e511eec 2024-10-15) (Fedora 1.82.0-1.fc40)) (consider running `cargo clean` first)
```

We can improve this situation by adding the file length, although that
could also happen to be the same, and the creation date that will match
when the file was installed, though not all filesystems support that.
All of this comes from a single metadata call, so it shouldn't have any
noticeable slowdown that would hurt the caching effort.
2024-10-31 15:10:54 -07:00
bors
dd0e396ef3 Auto merge of #14759 - epage:test-contains-n, r=ehuss
refactor(test): Remove dead 'expect_stdout_contains_n' check

### What does this PR try to resolve?

This was missed when removing the assert

This is part of #14039

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

### Additional information
2024-10-31 21:52:12 +00:00
Ed Page
35baa734ff test(doc): Resolve flaky test
Saw this failure on #14759
2024-10-31 16:26:37 -05:00
bors
40d804ba5d Auto merge of #14752 - RalfJung:rustc-root-path, r=epage
add unstable -Zroot-dir flag to configure the path from which rustc should be invoked

This implements the proposal described [here](https://github.com/rust-lang/cargo/issues/9887#issuecomment-2273742881): we add a new flag, for now called `-Zroot-dir`, that configures the directory relative to which rustc is given the crate root filenames to build. (Files outside this directory are passed absolutely.)

This is necessary to be able to fix (no github don't close that issue yet) https://github.com/rust-lang/rust/issues/128726: in multi-workspace repositories that use scripts to manage a whole bunch of cargo invocations, currently the output cargo+rustc produce is often hard or even impossible to interpret for both human and machine consumption. This is because directories in the output are always relative to the workspace root, but when cargo is invoked many times for different workspaces, it is quite unclear what the workspace root is for the invocation that failed.

So I suggest we should have a new flag that the build script in such a repo can set to the consistent "root dir" that the user would recognize as such (e.g., the root of the rustc source tree), and all paths emitted by cargo and rustc should be relative to that directory.

I don't know all the places that cargo itself emits paths (if any), but this PR changes the way we invoke rustc to honor the new flag, so all paths emitted by rustc will be relative to the `-Zroot-dir`.

See https://github.com/rust-lang/rust/pull/132390 for the changes needed in rustc bootstrap to wire this up; together, that suffices to finally properly show errors in RA for all parts of the rustc src tree. :)
2024-10-31 21:16:35 +00:00
Ralf Jung
0f80faf2a8 add unstable feature docs 2024-10-31 22:13:22 +01:00
Ed Page
8a8254eb1f refactor(test): Remove dead 'expect_stdout_contains_n' check
This was missed when removing the assert
2024-10-31 15:59:16 -05:00
Ralf Jung
c2be327042 add unstable -Zroot-path flag to configure the path from which rustc should be invoked 2024-10-31 21:35:57 +01:00
Ralf Jung
573ff00fe6 add tests in preparation for root-dir flag that changes their behavior 2024-10-31 21:34:48 +01:00
bors
497c228763 Auto merge of #14753 - epage:resoler-prep, r=ehuss
docs(resolver): Further v3 prep

### What does this PR try to resolve?

This is a follow up to #14725

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

### Additional information
2024-10-31 14:34:15 +00:00
bors
de5832fe8f Auto merge of #14751 - weihanglo:depinfo-format, r=epage
fix: track version in fingerprint dep-info files

### What does this PR try to resolve?

Encodes the version information into Cargo's fingerprint dep-info files,
so that when the format encoding changes in the future,
Cargo understands a dep-info file was outdated and doesn't bother parsing it.

Since there was no version info encoded in the old format (call it v0),
to be compatible with older cargoes,
this PR works around it with a horrible hack.
It is explained in the doc comment of `EncodedDepInfo`.

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

This PR also adds a static file which is v0 depinfo,
to ensure newer cargoes give up parsing it successfully without allocation errors.
See the allocation failures in this CI job result: https://github.com/weihanglo/cargo/actions/runs/11601065840/job/32302943597

It is no harm to keep the v0 test file also fine with removing it from git.

### Additional information

Fixes rust-lang/cargo#14712
2024-10-30 23:55:03 +00:00
bors
5f9257e685 Auto merge of #14748 - epage:msrv-policy, r=Rustin170506
test: Remove unused msrv-policy

### What does this PR try to resolve?

Missed this in #14639

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

### Additional information
2024-10-30 23:04:29 +00:00
Weihang Lo
634450e4b6
fix: track version in fingerprint dep-info files
Encodes the version information into Cargo's fingerprint dep-info files,
so that when the format encoding changes in the future,
Cargo understands a dep-info file was outdated and doesn't bother parsing it.

Since there was no version info encoded in the old format (call it v0),
to be compatible with older cargoes,
this PR works around it with a horrible hack.
It is explained in the doc comment of `EncodedDepInfo`.
2024-10-30 18:43:30 -04:00
Weihang Lo
6f2b5d9b76
test(depinfo): current cargo unable to parse v0 or v1
We're going to add the magic marker in the next commit.
The v0 test is to ensure that we don't change anything unexpected.
2024-10-30 18:31:10 -04:00
bors
e09a5b8e73 Auto merge of #14723 - elchukc:enhance_download_accessible, r=epage
download targeted transitive deps of with artifact deps'  target platform

### What does this PR try to resolve?

Fixes #12554. `download_accessible` will now download platform-specified deps of artifact deps with `target = ...`.

It will also resolve the panic in `cargo tree -Z bindeps` in [#10593 (comment)](https://github.com/rust-lang/cargo/issues/10593#issuecomment-1317759526), where:

- a dependency of an artifact dependency is platform specified
- artifact dep itself is { target = } with the same platform as its own dependency
- the platform is not activated.

Essentially, `no entry found for key` was happening because for artifact deps with `{.., target = <target>}`, transitive deps that specified their platform as `<target>` were not downloaded. This is why adding `--target all` to `cargo tree -Z bindeps` made the bug dissapear.

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

Tests included in this PR should be enough.

~~Test `artifact_dep::proc_macro_in_artifact_dep` still throws; this PR will be ready for review once the test does not panic.~~

### Additional Information

`used` set needs to be target-aware
r? `@weihanglo`
2024-10-30 20:56:46 +00:00
Ed Page
d125262545 download transitive deps of artifact deps on target platform 2024-10-30 16:26:17 -04:00
Ed Page
24738d8690 refactor download_accessible in package.rs 2024-10-30 15:46:40 -04:00
elchc
7ec86a118c un-ignore test: proc_macro_in_artifact_dep with a network error 2024-10-30 15:46:40 -04:00
Ed Page
7a6eaf9667 fix(util): Respect all ..s in normalize_path 2024-10-30 14:41:47 -05:00
Ed Page
c53bdc4745 refactor(util): Clarify intent of normalize_path 2024-10-30 14:40:51 -05:00
Ed Page
1f8b294b87 test(util): Show relative path behavior for normalize_path 2024-10-30 14:04:32 -05:00
Ed Page
315746543f docs(resolver): Simplify package.resolver default text 2024-10-30 11:21:53 -05:00
Ed Page
0ba124016a docs(resolver): Specify MSRV for package.resolver 2024-10-30 11:20:44 -05:00
Ed Page
51f634b3bd test: Remove unused msrv-policy
Missed this in #14639
2024-10-30 09:57:01 -05:00
bors
9abcaefd51 Auto merge of #14317 - harmou01:dev/harmou01/remove-target-flag-req, r=ehuss
Remove requirement for --target when invoking Cargo with -Zbuild-std

This PR addresses [this issue](https://github.com/rust-lang/wg-cargo-std-aware/issues/25) re: build-std stabilization. We believe the requirement for --target to be specified when invoking cargo with -Zbuild-std, from our testing, is no longer needed. Now, with this change, by default Cargo will use the Host CompileKind, rather than a manually specified CompileTarget. We propose removing this restriction in order to test this more widely. Our own testing is detailed below.

This change has been tested in the following manner:
* Building crates depending on proc_macro, std, and build scripts (which themselves depend on proc_macro)
* Various RUSTFLAGS, such as `-Zsanitizer=cfi`, `-Cembed-bitcode=yes`, `-Cforce-frame-pointers`, `-Cforce-unwind-tables=yes`, `-Csoft-float=yes`, `-Zbranch-protection=pac-ret`.
2024-10-30 13:54:02 +00:00
Weihang Lo
1fcf5ee2ff
test(depinfo): basic serialization round-trip test 2024-10-30 09:36:55 -04:00
bors
06e0ef4551 Auto merge of #14745 - weihanglo:depinfo-compat, r=epage
docs(fingerprint): document the encoding of Cargo's depinfo

### What does this PR try to resolve?

When investigating rust-lang/cargo#14712,
I figured that it lacks of docs for the Cargo's depinfo format.
Hence documenting them.

This PR also move dep info files related items to a separate module.

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

No behavior change, though I may submit a hack of #14712 after this.

I didn't move dep-info specific documentation into that new module.
It feels more nature for keeping them all in the fingerprint module.
2024-10-29 20:39:06 +00:00
Weihang Lo
7c26c29d5a
refactor(fingerprint): move fingerprint dep-info to a module 2024-10-29 15:33:24 -04:00
Weihang Lo
bf2cc7c911
docs(fingerprint): document the format of depinfo files 2024-10-29 15:31:18 -04:00
bors
4f74477679 Auto merge of #14743 - ehuss:build-script-errors, r=epage
Allow build scripts to report error messages through `cargo::error`

Adds the `cargo::error` build script directive. It is similar to `cargo::warning`, but it emits an error message and it also fails the build.

This is a repost of #14435 with the tests updated, a note added to the documentation about using this in a library, and updating the MSRV.

Closes #10159
2024-10-29 16:36:58 +00:00
bors
92f94a54ac Auto merge of #14742 - epage:publish, r=ehuss
fix(publish): Downgrade version-exists error to warning on dry-run

### What does this PR try to resolve?

Especially for beta, this was the most conservative, minimal change.

Fixes #14721

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

### Additional information

This will get cherry-picked to beta
2024-10-29 16:04:22 +00:00
Eric Huss
8639d7b9f5 Update MSRV for cargo::error 2024-10-29 08:23:59 -07:00
Eric Huss
deb028f5d6 Add a note to library authors regarding cargo::error
There was a concern raised about potential use of `cargo::error` by
libraries, which could make it difficult for build script authors to
decide what is an error.
https://github.com/rust-lang/cargo/issues/10159#issuecomment-1339826494
2024-10-29 08:22:50 -07:00
Ed Page
947e1ffe3f fix(publish): Downgrade version-exists error to warning on dry-run
This will get cherry-picked to beta

Fixes #14721
2024-10-29 10:21:52 -05:00
Ed Page
ae6b279277 test(publish): Verify version-exists error in dry-run 2024-10-29 10:14:22 -05:00
Eric Huss
9ce30a6ca3 Update tests to resolve recent changes
Upstream changed these messages slightly.
2024-10-29 08:12:43 -07:00
Tor Hovland
a94bce6135 Add MSRV note.
Co-authored-by: Weihang Lo <weihanglo@users.noreply.github.com>
2024-10-29 08:02:55 -07:00
Tor Hovland
032bc29bb8 feat: cargo::error build script directive. 2024-10-29 08:02:55 -07:00
Tor Hovland
3fade07a0b test: cargo::error build script directive. 2024-10-29 08:02:55 -07:00
Tor Hovland
3e59d08f9d test: Update to snapshot style. 2024-10-29 08:02:54 -07:00
Ed Page
198c1d8362 docs(ref): Clarify when warnings are shown 2024-10-29 08:02:54 -07:00