Commit graph

524 commits

Author SHA1 Message Date
bors 6994f62410 Auto merge of #13507 - rust-lang:renovate/compatible, r=epage
chore(deps): update compatible

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [annotate-snippets](https://togithub.com/rust-lang/annotate-snippets-rs) | workspace.dependencies | patch | `0.10.1` -> `0.10.2` |
| [anstream](https://togithub.com/rust-cli/anstyle) | workspace.dependencies | patch | `0.6.11` -> `0.6.13` |
| [anyhow](https://togithub.com/dtolnay/anyhow) | workspace.dependencies | patch | `1.0.79` -> `1.0.80` |
| [curl](https://togithub.com/alexcrichton/curl-rust) | workspace.dependencies | patch | `0.4.44` -> `0.4.46` |
| [curl-sys](https://togithub.com/alexcrichton/curl-rust) | workspace.dependencies | patch | `0.4.71` -> `0.4.72+curl-8` |
| [openssl](https://togithub.com/sfackler/rust-openssl) | workspace.dependencies | patch | `0.10.63` -> `0.10.64` |
| [pkg-config](https://togithub.com/rust-lang/pkg-config-rs) | workspace.dependencies | patch | `0.3.29` -> `0.3.30` |
| [semver](https://togithub.com/dtolnay/semver) | workspace.dependencies | patch | `1.0.21` -> `1.0.22` |
| [serde](https://serde.rs) ([source](https://togithub.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.196` -> `1.0.197` |
| [serde_json](https://togithub.com/serde-rs/json) | workspace.dependencies | patch | `1.0.113` -> `1.0.114` |
| [snapbox](https://togithub.com/assert-rs/trycmd/tree/main/crates/snapbox) ([source](https://togithub.com/assert-rs/trycmd)) | workspace.dependencies | patch | `0.5.6` -> `0.5.7` |
| [tempfile](https://stebalien.com/projects/tempfile-rs/) ([source](https://togithub.com/Stebalien/tempfile)) | workspace.dependencies | minor | `3.9.0` -> `3.10.1` |
| [thiserror](https://togithub.com/dtolnay/thiserror) | workspace.dependencies | patch | `1.0.56` -> `1.0.57` |
| [toml_edit](https://togithub.com/toml-rs/toml) | workspace.dependencies | patch | `0.22.4` -> `0.22.6` |

---

### Release Notes

<details>
<summary>rust-lang/annotate-snippets-rs (annotate-snippets)</summary>

### [`v0.10.2`](https://togithub.com/rust-lang/annotate-snippets-rs/blob/HEAD/CHANGELOG.md#0102---2024-02-29)

[Compare Source](https://togithub.com/rust-lang/annotate-snippets-rs/compare/0.10.1...0.10.2)

##### Added

-   Added `testing-colors` feature to remove platform-specific colors when testing
    [#&#8203;82](https://togithub.com/rust-lang/annotate-snippets-rs/pull/82)

</details>

<details>
<summary>rust-cli/anstyle (anstream)</summary>

### [`v0.6.13`](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.12...anstream-v0.6.13)

[Compare Source](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.12...anstream-v0.6.13)

### [`v0.6.12`](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.11...anstream-v0.6.12)

[Compare Source](https://togithub.com/rust-cli/anstyle/compare/anstream-v0.6.11...anstream-v0.6.12)

</details>

<details>
<summary>dtolnay/anyhow (anyhow)</summary>

### [`v1.0.80`](https://togithub.com/dtolnay/anyhow/releases/tag/1.0.80)

[Compare Source](https://togithub.com/dtolnay/anyhow/compare/1.0.79...1.0.80)

-   Fix unused_imports warnings when compiled by rustc 1.78

</details>

<details>
<summary>alexcrichton/curl-rust (curl)</summary>

### [`v0.4.46`](https://togithub.com/alexcrichton/curl-rust/compare/0.4.45...0.4.46)

[Compare Source](https://togithub.com/alexcrichton/curl-rust/compare/0.4.45...0.4.46)

### [`v0.4.45`](https://togithub.com/alexcrichton/curl-rust/compare/0.4.44...0.4.45)

[Compare Source](https://togithub.com/alexcrichton/curl-rust/compare/0.4.44...0.4.45)

</details>

<details>
<summary>sfackler/rust-openssl (openssl)</summary>

### [`v0.10.64`](https://togithub.com/sfackler/rust-openssl/releases/tag/openssl-v0.10.64)

[Compare Source](https://togithub.com/sfackler/rust-openssl/compare/openssl-v0.10.63...openssl-v0.10.64)

##### What's Changed

-   Make \_STACK opaque for LibreSSL >= 3.9.0 by [`@&#8203;botovq](https://togithub.com/botovq)` in [https://github.com/sfackler/rust-openssl/pull/2153](https://togithub.com/sfackler/rust-openssl/pull/2153)
-   enable x509 verify and groups list for boringssl by [`@&#8203;zh-jq](https://togithub.com/zh-jq)` in [https://github.com/sfackler/rust-openssl/pull/2155](https://togithub.com/sfackler/rust-openssl/pull/2155)
-   Cleanup some not-required Path::new invocations by [`@&#8203;alex](https://togithub.com/alex)` in [https://github.com/sfackler/rust-openssl/pull/2158](https://togithub.com/sfackler/rust-openssl/pull/2158)
-   fixed a clippy (nightly) warning by [`@&#8203;alex](https://togithub.com/alex)` in [https://github.com/sfackler/rust-openssl/pull/2161](https://togithub.com/sfackler/rust-openssl/pull/2161)
-   Bump actions versions by [`@&#8203;alex](https://togithub.com/alex)` in [https://github.com/sfackler/rust-openssl/pull/2162](https://togithub.com/sfackler/rust-openssl/pull/2162)
-   Add support for setting the nonce type and digest on a PKEY_CTX by [`@&#8203;facutuesca](https://togithub.com/facutuesca)` in [https://github.com/sfackler/rust-openssl/pull/2144](https://togithub.com/sfackler/rust-openssl/pull/2144)
-   rebuild openssl-sys if the underlying openssl has changed by [`@&#8203;reaperhulk](https://togithub.com/reaperhulk)` in [https://github.com/sfackler/rust-openssl/pull/2157](https://togithub.com/sfackler/rust-openssl/pull/2157)
-   Added binding for EVP_default_properties_enable_fips by [`@&#8203;alex](https://togithub.com/alex)` in [https://github.com/sfackler/rust-openssl/pull/2168](https://togithub.com/sfackler/rust-openssl/pull/2168)
-   LibreSSL 3.9: fix CRYPTO_malloc/free signatures by [`@&#8203;botovq](https://togithub.com/botovq)` in [https://github.com/sfackler/rust-openssl/pull/2170](https://togithub.com/sfackler/rust-openssl/pull/2170)
-   Expose alias on X509 structs by [`@&#8203;alex](https://togithub.com/alex)` in [https://github.com/sfackler/rust-openssl/pull/2167](https://togithub.com/sfackler/rust-openssl/pull/2167)
-   bump openssl and openssl-sys + changelogs by [`@&#8203;reaperhulk](https://togithub.com/reaperhulk)` in [https://github.com/sfackler/rust-openssl/pull/2175](https://togithub.com/sfackler/rust-openssl/pull/2175)

**Full Changelog**: https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.63...openssl-v0.10.64

</details>

<details>
<summary>rust-lang/pkg-config-rs (pkg-config)</summary>

### [`v0.3.30`](https://togithub.com/rust-lang/pkg-config-rs/blob/HEAD/CHANGELOG.md#0330---2024-02-14)

[Compare Source](https://togithub.com/rust-lang/pkg-config-rs/compare/0.3.29...0.3.30)

##### Changed

-   Update documentation for cross-compilation ([#&#8203;161](https://togithub.com/rust-lang/pkg-config-rs/issues/161)).

-   Update GitHub Action CI ([#&#8203;160](https://togithub.com/rust-lang/pkg-config-rs/issues/160)).

</details>

<details>
<summary>dtolnay/semver (semver)</summary>

### [`v1.0.22`](https://togithub.com/dtolnay/semver/releases/tag/1.0.22)

[Compare Source](https://togithub.com/dtolnay/semver/compare/1.0.21...1.0.22)

-   Fix unused_imports warnings when compiled by rustc 1.78

</details>

<details>
<summary>serde-rs/serde (serde)</summary>

### [`v1.0.197`](https://togithub.com/serde-rs/serde/releases/tag/v1.0.197)

[Compare Source](https://togithub.com/serde-rs/serde/compare/v1.0.196...v1.0.197)

-   Fix unused_imports warnings when compiled by rustc 1.78
-   Optimize code size of some Display impls ([#&#8203;2697](https://togithub.com/serde-rs/serde/issues/2697), thanks [`@&#8203;nyurik](https://togithub.com/nyurik))`

</details>

<details>
<summary>serde-rs/json (serde_json)</summary>

### [`v1.0.114`](https://togithub.com/serde-rs/json/releases/tag/v1.0.114)

[Compare Source](https://togithub.com/serde-rs/json/compare/v1.0.113...v1.0.114)

-   Fix unused_imports warnings when compiled by rustc 1.78

</details>

<details>
<summary>assert-rs/trycmd (snapbox)</summary>

### [`v0.5.7`](https://togithub.com/assert-rs/trycmd/compare/snapbox-v0.5.6...snapbox-v0.5.7)

[Compare Source](https://togithub.com/assert-rs/trycmd/compare/snapbox-v0.5.6...snapbox-v0.5.7)

</details>

<details>
<summary>Stebalien/tempfile (tempfile)</summary>

### [`v3.10.1`](https://togithub.com/Stebalien/tempfile/blob/HEAD/CHANGELOG.md#3101)

[Compare Source](https://togithub.com/Stebalien/tempfile/compare/v3.10.0...v3.10.1)

-   Handle potential integer overflows in 32-bit systems when seeking/truncating "spooled" temporary files past 4GiB (2³²).
-   Handle a theoretical 32-bit overflow when generating a temporary file name larger than 4GiB. Now it'll panic (on allocation failure) rather than silently succeeding due to wraparound.

Thanks to [`@&#8203;stoeckmann](https://togithub.com/stoeckmann)` for finding and fixing both of these issues.

### [`v3.10.0`](https://togithub.com/Stebalien/tempfile/blob/HEAD/CHANGELOG.md#3100)

[Compare Source](https://togithub.com/Stebalien/tempfile/compare/v3.9.0...v3.10.0)

-   Drop `redox_syscall` dependency, we now use `rustix` for Redox.
-   Add `Builder::permissions` for setting the permissions on temporary files and directories (thanks to [`@&#8203;Byron](https://togithub.com/Byron)).`
-   Update rustix to 0.38.31.
-   Update fastrand to 2.0.1.

</details>

<details>
<summary>dtolnay/thiserror (thiserror)</summary>

### [`v1.0.57`](https://togithub.com/dtolnay/thiserror/releases/tag/1.0.57)

[Compare Source](https://togithub.com/dtolnay/thiserror/compare/1.0.56...1.0.57)

-   Generate more efficient `Display` impl for error message which do not contain any interpolated value ([#&#8203;286](https://togithub.com/dtolnay/thiserror/issues/286), thanks [`@&#8203;nyurik](https://togithub.com/nyurik))`

</details>

<details>
<summary>toml-rs/toml (toml_edit)</summary>

### [`v0.22.6`](https://togithub.com/toml-rs/toml/compare/v0.22.5...v0.22.6)

[Compare Source](https://togithub.com/toml-rs/toml/compare/v0.22.5...v0.22.6)

### [`v0.22.5`](https://togithub.com/toml-rs/toml/compare/v0.22.4...v0.22.5)

[Compare Source](https://togithub.com/toml-rs/toml/compare/v0.22.4...v0.22.5)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 5am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/rust-lang/cargo).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMjAuMiIsInVwZGF0ZWRJblZlciI6IjM3LjIyMC4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
2024-03-01 17:20:35 +00:00
bors b2208ec0d1 Auto merge of #13510 - rust-lang:renovate/rusqlite-0.x, r=epage
chore(deps): update rust crate rusqlite to 0.31.0

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [rusqlite](https://togithub.com/rusqlite/rusqlite) | workspace.dependencies | minor | `0.30.0` -> `0.31.0` |

---

### Release Notes

<details>
<summary>rusqlite/rusqlite (rusqlite)</summary>

### [`v0.31.0`](https://togithub.com/rusqlite/rusqlite/releases/tag/v0.31.0): 0.31.0

[Compare Source](https://togithub.com/rusqlite/rusqlite/compare/v0.30.0...v0.31.0)

#### What's Changed

-   Check sqlite3\_reset result [#&#8203;1419](https://togithub.com/rusqlite/rusqlite/issues/1419)
-   Improve wasm32-wasi support [#&#8203;1332](https://togithub.com/rusqlite/rusqlite/issues/1332)
-   test_from_handle fails to build on systems with unsigned c_char [#&#8203;1420](https://togithub.com/rusqlite/rusqlite/issues/1420)
-   Fix features required by loadable_extension example [#&#8203;1426](https://togithub.com/rusqlite/rusqlite/issues/1426)
-   Fix bind macro [#&#8203;1427](https://togithub.com/rusqlite/rusqlite/issues/1427)
-   Fix uninlined_format_args [#&#8203;1428](https://togithub.com/rusqlite/rusqlite/issues/1428)
-   Remove modern_sqlite and vtab from CI in loadable ext [#&#8203;1429](https://togithub.com/rusqlite/rusqlite/issues/1429)
-   Add `#[derive(Clone, Copy...` on all bitflags [#&#8203;1396](https://togithub.com/rusqlite/rusqlite/issues/1396)
-   Use DLL_PREFIX / DLL_SUFFIX [#&#8203;1431](https://togithub.com/rusqlite/rusqlite/issues/1431)
-   Add missing doc for new features [#&#8203;1434](https://togithub.com/rusqlite/rusqlite/issues/1434)
-   Upgrade to hashlink 0.9 [#&#8203;1435](https://togithub.com/rusqlite/rusqlite/issues/1435)
-   Drop winsqlite3 feature [#&#8203;1433](https://togithub.com/rusqlite/rusqlite/issues/1433)
-   Expose the include directory of the bundled sqlite version [#&#8203;1441](https://togithub.com/rusqlite/rusqlite/issues/1441)
-   Bump bundled SQLite version to 3.45.1 [#&#8203;1445](https://togithub.com/rusqlite/rusqlite/issues/1445)
-   Fix a few typos [#&#8203;1446](https://togithub.com/rusqlite/rusqlite/issues/1446)
-   Make possible to specify subtype of SQL function [#&#8203;1160](https://togithub.com/rusqlite/rusqlite/issues/1160)

**Full Changelog**: https://github.com/rusqlite/rusqlite/compare/v0.30.0...v0.31.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 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMjAuMiIsInVwZGF0ZWRJblZlciI6IjM3LjIyMC4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
2024-03-01 16:12:56 +00:00
renovate[bot] 8a280bbef7
chore(deps): update compatible 2024-03-01 02:50:21 +00:00
renovate[bot] ae0894d7df
chore(deps): update rust crate supports-hyperlinks to v3 2024-03-01 02:01:55 +00:00
renovate[bot] fb2874c129
chore(deps): update rust crate rusqlite to 0.31.0 2024-03-01 02:01:47 +00:00
Ed Page b14a70fe09 test(cli): Verify terminal styling
This uses a new feature from snapbox that let's us render terminal
styling in SVG files.  This let's us see / visualize ANSI escape codes,
including in github's UI (will render images, including side-by-side
images for diffs).
2024-02-21 20:20:41 -06:00
Eric Huss daa884169c Fix redundant imports. 2024-02-20 09:57:03 -08:00
bors 9090349adc Auto merge of #13441 - epage:snapbox, r=Muscraft
chore: Update snapbox
2024-02-16 16:56:57 +00:00
Ed Page 9f31f8c675 chore: Update snapbox 2024-02-16 10:27:48 -06:00
bors 8ad0e18b54 Auto merge of #13449 - Xeonacid:openssl, r=epage
chore(deps): update openssl to 3.2.1 again

https://github.com/rust-lang/cargo/pull/13159 had updated to 3.2.0 and https://github.com/rust-lang/cargo/pull/13179 reverted to 1.1.1 for riscv64 build.

riscv64 build issue fixed and released in openssl-src 300.2.3+3.2.1: https://github.com/alexcrichton/openssl-src-rs/pull/230

Update to 3.2.1 from 3.2.0 should be safe.
2024-02-16 14:51:43 +00:00
Xeonacid 37df88f0c9
chore(deps): update openssl to 3.2.1 again
https://github.com/rust-lang/cargo/pull/13159 had updated to 3.2.0 and https://github.com/rust-lang/cargo/pull/13179 reverted to 1.1.1 for riscv64 build.

riscv64 build issue fixed and released in openssl-src 300.2.3+3.2.1: https://github.com/alexcrichton/openssl-src-rs/pull/230

Update to 3.2.1 from 3.2.0 should be safe.

Signed-off-by: Xeonacid <xeonacid@hit.edu.cn>
2024-02-16 21:49:04 +08:00
Ed Page 6f93fa701e fix(test): Suggest -- for libtest arguments
We already do this so long as the argument doesn't look like a
`cargo test` argument (e.g. `--show-output`)
but `--ignored` looks like `--ignore-rust-version` do the the suggestion
algorithms prefix checks.

Before
```
error: unexpected argument '--ignored' found

  tip: a similar argument exists: '--ignore-rust-version'

Usage: cargo test --ignore-rust-version [TESTNAME] [-- [ARGS]...]

For more information, try '--help'.
```
After
```
error: unexpected argument '--ignored' found

  tip: a similar argument exists: '--ignore-rust-version'
  tip: to pass '--ignored' as a value, use '-- --ignored'

Usage: cargo test --ignore-rust-version [TESTNAME] [-- [ARGS]...]

For more information, try '--help'.
```

Fixes #12494
2024-02-16 07:11:12 -06:00
renovate[bot] 5ea658df78 chore(deps): update msrv (1 version) to v1.76.0 2024-02-08 14:32:51 +00:00
Weihang Lo 3dcb66b791
chore: update to jobserver 0.1.28 2024-02-08 08:32:07 -05:00
bors d7d48e4598 Auto merge of #13402 - epage:add, r=weihanglo
fix: Don't duplicate comments when editing TOML

### What does this PR try to resolve?

`toml_edit` <0.22 has a bug that will cause
```toml
[lints]
rust.unsafe_op_in_unsafe_fn = "deny"

rust.explicit_outlives_requirements = "warn"
# rust.unused_crate_dependencies = "warn"

clippy.cast_lossless = "warn"
clippy.doc_markdown = "warn"
clippy.exhaustive_enums = "warn"
```
to be written out as
```toml
[lints]
rust.unsafe_op_in_unsafe_fn = "deny"
rust.explicit_outlives_requirements = "warn"
# rust.unused_crate_dependencies = "warn"

clippy.cast_lossless = "warn"
# rust.unused_crate_dependencies = "warn"

clippy.doc_markdown = "warn"
# rust.unused_crate_dependencies = "warn"

clippy.exhaustive_enums = "warn"
```
when it is parsed and then saved.

See toml-rs/toml#673

This affects any format-preserving edits we do, including:
- `cargo add`
- `cargo remove`
- `cargo init` / `cargo new` editing the workspace

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

I didn't add any tests as this is covered by `toml_edit`s tests (we already don't cover a fraction of the edit preserving tests it has)

### Additional information
2024-02-07 16:23:04 +00:00
Eric Huss c30c13b3f1 Update git2 2024-02-06 20:11:27 -08:00
Ed Page 12cf56abf1 fix: Don't duplicate comments when editing TOML
`toml_edit` <0.22 has a bug that will cause
```toml
[lints]
rust.unsafe_op_in_unsafe_fn = "deny"

rust.explicit_outlives_requirements = "warn"

clippy.cast_lossless = "warn"
clippy.doc_markdown = "warn"
clippy.exhaustive_enums = "warn"
```
to be written out as
[lints]
rust.unsafe_op_in_unsafe_fn = "deny"
rust.explicit_outlives_requirements = "warn"

clippy.cast_lossless = "warn"

clippy.doc_markdown = "warn"

clippy.exhaustive_enums = "warn"
```
when it is parsed and then saved.

See toml-rs/toml#675

This affects any format-preserving edits we do, including:
- `cargo add`
- `cargo remove`
- `cargo init` / `cargo new` editing the workspace
2024-02-05 16:50:59 -06:00
bors fe60f0e561 Auto merge of #13380 - rust-lang:renovate/gix, r=epage
chore(deps): update gix

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [gix](https://togithub.com/Byron/gitoxide) | workspace.dependencies | minor | `0.57.1` -> `0.58.0` |
| [gix-features-for-configuration-only](https://togithub.com/Byron/gitoxide) | workspace.dependencies | minor | `0.37.1` -> `0.38.0` |

---

### Release Notes

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

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

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

##### New Features

-   add `max-control` feature for fine-grained performance control.
    This also adds the following performance features:

    -   `zlib-ng`
-   `zlib-ng-compat`
-   `zlib-stock`
-   `parallel-walkdir`

##### Bug Fixes

-   `object::tree::diff::Platform::for_each_to_obtain_tree(callback)` errors are more convenient to use.
    Due to a change in how the generic error type is declared it should now be possible to
    use `anyhow` with it as well.

##### Commit Statistics

-   13 commits contributed to the release over the course of 18 calendar days.
-   20 days passed between releases.
-   4 commits were understood as [conventional](https://www.conventionalcommits.org).
-   1 unique issue was worked on: [#&#8203;670](https://togithub.com/Byron/gitoxide/issues/670)

##### Commit Details

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

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

-   **[#&#8203;670](https://togithub.com/Byron/gitoxide/issues/670)**
    -   `object::tree::diff::Platform::for_each_to_obtain_tree(callback)` errors are more convenient to use. ([`e3c5a0f`](https://togithub.com/Byron/gitoxide/commit/e3c5a0f))
-   **Uncategorized**
    -   Prepare changelogs prior to release ([`6a2e0be`](https://togithub.com/Byron/gitoxide/commit/6a2e0be))
    -   Merge branch 'finegrained-features' ([`d8570d0`](https://togithub.com/Byron/gitoxide/commit/d8570d0))
    -   Add `max-control` feature for fine-grained performance control. ([`8847676`](https://togithub.com/Byron/gitoxide/commit/8847676))
    -   Merge branch 'dirwalk' ([`5d176fc`](https://togithub.com/Byron/gitoxide/commit/5d176fc))
    -   Use `gix_fs::current_dir(precompose_unicode)`. ([`7d8d167`](https://togithub.com/Byron/gitoxide/commit/7d8d167))
    -   Adapt to changes in `gix-features` ([`eacb5a4`](https://togithub.com/Byron/gitoxide/commit/eacb5a4))
    -   Add `env::args_os_opt()` which takes an argument to determine input unicode-decomposition ([`a7e606b`](https://togithub.com/Byron/gitoxide/commit/a7e606b))
    -   Release gix-trace v0.1.7, gix-features v0.37.2, gix-commitgraph v0.23.2, gix-traverse v0.36.2, gix-index v0.28.2 ([`b6c04c8`](https://togithub.com/Byron/gitoxide/commit/b6c04c8))
    -   Merge pull request [#&#8203;1248](https://togithub.com/Byron/gitoxide/issues/1248) from joshtriplett/tyop ([`39f35da`](https://togithub.com/Byron/gitoxide/commit/39f35da))
    -   Typo fixes ([`3ef3bc2`](https://togithub.com/Byron/gitoxide/commit/3ef3bc2))
    -   `max-performance-zlib-ng-compat` flag ([`1ba9488`](https://togithub.com/Byron/gitoxide/commit/1ba9488))
    -   Add a max-performance-zlib-ng-compat flag ([`cfb06ec`](https://togithub.com/Byron/gitoxide/commit/cfb06ec))

</details>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 5am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/rust-lang/cargo).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE1My4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
2024-02-05 19:06:21 +00:00
renovate[bot] eb3a343512
chore(deps): update compatible 2024-02-05 18:07:44 +00:00
Weihang Lo 708e23369e
Bump to 0.79.0 2024-02-04 11:44:00 -05:00
renovate[bot] fcd533a913
chore(deps): update gix 2024-02-01 01:08:02 +00:00
Ed Page bd6b4a9b14 fix(toml): Improve map/sequence error message
This is a follow up to #13375
2024-01-31 10:42:58 -06:00
Ed Page f48b1ad78d chore: Update anstyle 2024-01-29 16:09:11 -06:00
Ed Page b291f42dce chore: Make N-0 MSRVs explicit
This will require a version bump every release but over-releasing these
packages is likely a lot better than over-releasing the N-3 packages,
which we won't have to do anymore after this.

My hope is the `auto` value will be approved and stabilized and then we
won't have to over-release anymore.
2024-01-18 15:28:04 -06:00
Amanieu d'Antras e0df99e196 Update ahash dependency to 0.8.7
Previous versions use the `stdsimd` nightly feature if it detects that
it is available (on a nightly toolchain). This will stop working once
rust-lang/rust#117372 is merged.
2024-01-15 15:40:08 +00:00
Scott Schafer 0d62ae2fc3
feat: Add rustc style errors for manifest parsing 2023-12-15 13:30:10 -07:00
bors 187d4cf35e Auto merge of #13273 - BD103:master, r=weihanglo
Document why `du` function uses mutex

### What does this PR try to resolve?

After closing #13253, it [was suggested](https://github.com/rust-lang/cargo/pull/13253#issuecomment-1883286035) to document why the `du` function uses a `Mutex` instead of an `AtomicU64`. This will prevent others from making the same mistake I did. :)

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

N/A

### Additional information

N/A
2024-01-10 14:19:06 +00:00
BD103 0a6fe230d6 fix: update lockfile 2024-01-10 08:09:55 -05:00
Tobias Bieniek 6218d08504
crates-io: Bump version to v0.40.0 2024-01-09 18:03:21 +01:00
renovate[bot] 03beda3a6e chore(deps): update msrv 2024-01-08 22:17:07 +00:00
bors 87eb374d49 Auto merge of #13249 - WeiTheShinobi:update_dependency_handlebars, r=epage
Update dependency handlebars to v5 for mdman.

### What does this PR try to resolve?

issue #13238
- update dependency handlebars 4.5.0 -> 5.0.0
- fix code to fit the changes of Handlebars API
- RenderError::new() is deprecated. Use RenderErrorReason instead

### How should we test and review this PR?
pass all tests in /crates/mdman/tests
2024-01-04 16:03:50 +00:00
WeiTheShinobi 06201b9892 Update dependency handlebars to v5 for mdman.
- handlebars 4.5.0 -> 5.0.0
- fix code to fit the changes of Handlebars API
- RenderError::new() is deprecated. Use RenderErrorReason instead
2024-01-04 22:59:46 +08:00
Ed Page 7e5dd711b5 fix(embedded)!: Remove doc comment manifest support
We added code fence support in ba869d36ed
(September), so I think this was enough of a transition period and there
is little interest in going back to this.
2024-01-02 16:25:12 -06:00
renovate[bot] 4deb34bd0b
chore(deps): update compatible 2024-01-02 10:21:24 +00:00
bors add15366ea Auto merge of #13230 - rust-lang:renovate/gix, r=epage
chore(deps): update gix

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [gix](https://togithub.com/Byron/gitoxide) | workspace.dependencies | minor | `0.56.0` -> `0.57.1` |
| [gix-features-for-configuration-only](https://togithub.com/Byron/gitoxide) | workspace.dependencies | minor | `0.35.0` -> `0.37.1` |

---

### Release Notes

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

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

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

##### Chore

-   change `rust-version` manifest field back to 1.65.
    They didn't actually need to be higher to work, and changing them
    unecessarily can break downstream CI.

    Let's keep this value as low as possible, and only increase it when
    more recent features are actually used.

##### 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**
    -   Merge branch 'msrv' ([`8c492d7`](https://togithub.com/Byron/gitoxide/commit/8c492d7))
    -   Change `rust-version` manifest field back to 1.65. ([`3bd09ef`](https://togithub.com/Byron/gitoxide/commit/3bd09ef))

</details>

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

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

##### Chore

-   <csr-id-aea89c3ad52f1a800abb620e9a4701bdf904ff7d/> upgrade MSRV to v1.70
    Our MSRV follows the one of `helix`, which in turn follows Firefox.

##### New Features

-   `Repository::rev_parse*()` now supports `branch@{upstream|push|u|p}`.
    Previously it would be parsed, but always error as the implementation didn't exist.
    Now it will return the fetch and push tracking branches respectively.
-   Add `Reference::remote_tracking_ref_name()` and `*::remote_ref_name()`.
    These methods mirror their respective `Repository::branch_*` prefixed versions.
-   add `Repository::branch_remote_tracking_ref_name()`.
-   add `push.default` config key
-   add `config::Snapshot::trusted_program()`.
    That way it's possible to obtain an executable, program or script
    from a key in the configuration that is in a trusted section of the
    configuration.

    This goes along with a new `command` feature that brings in the `command`
    module at the top level to be able to execute such commands.
-   add `clone::PrepareFetch::with_in_memory_config_overrides()`.
    With it one can affect the repository configuration right before fetching.

##### New Features (BREAKING)

-   `Repository::remote_names|remote_default_name()` now returns `Cow<'_, BStr>` instead of `Cow<'_, str>`.
    That way information won't degenerate due to enforcement of UTF-8.

##### Bug Fixes (BREAKING)

-   rename `Repository::branch_remote_ref()` to `Repository::branch_remote_ref_name()`, add `direction` argument (also to `Repository::branch_remote_name()` and `Repository::branch_remote()`).
    This better differentiates the return value from the corresponding ref objects,
    which would require the named ref to exist in the repository.

    The `direction` argument allows to get the reference to push to as well.
    Further, it now takes a full ref name to support deriving the name of branches
    to push to.

    Regarding `Repository::branch_remote()`,  previously, this functionality
    was only available from a `Reference`,
    but now it's more generally available with just a branch name.

    The method was also adjusted to permit looking up non-symbolic remote
    names, like remotes that are specified by their URL.
-   mark `gix::interrupt::init_handler()` as unsafe
    The passed `interrupt()` argument will be called from a signal
    handler, so that needs to be documented and the call sites need to
    state that they fulfill the contract.

    Thanks to [`@&#8203;Manishearth](https://togithub.com/Manishearth)` for pointing this out.

##### Commit Statistics

-   40 commits contributed to the release over the course of 22 calendar days.
-   22 days passed between releases.
-   10 commits were understood as [conventional](https://www.conventionalcommits.org).
-   4 unique issues were worked on: [#&#8203;1158](https://togithub.com/Byron/gitoxide/issues/1158), [#&#8203;1165](https://togithub.com/Byron/gitoxide/issues/1165), [#&#8203;1178](https://togithub.com/Byron/gitoxide/issues/1178), [#&#8203;1191](https://togithub.com/Byron/gitoxide/issues/1191)

##### 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>

-   **[#&#8203;1158](https://togithub.com/Byron/gitoxide/issues/1158)**
    -   Remove extra-lines from changelog ([`11c9f66`](https://togithub.com/Byron/gitoxide/commit/11c9f66))
-   **[#&#8203;1165](https://togithub.com/Byron/gitoxide/issues/1165)**
    -   Complete partial note ([`8ef0538`](https://togithub.com/Byron/gitoxide/commit/8ef0538))
-   **[#&#8203;1178](https://togithub.com/Byron/gitoxide/issues/1178)**
    -   Add `config::Snapshot::trusted_program()`. ([`3f84213`](https://togithub.com/Byron/gitoxide/commit/3f84213))
-   **[#&#8203;1191](https://togithub.com/Byron/gitoxide/issues/1191)**
    -   Add note to clarify what users might want to do ([`2e04403`](https://togithub.com/Byron/gitoxide/commit/2e04403))
-   **Uncategorized**
    -   Prepare changelogs of next release ([`e78a92b`](https://togithub.com/Byron/gitoxide/commit/e78a92b))
    -   Merge branch 'maintenance' ([`4454c9d`](https://togithub.com/Byron/gitoxide/commit/4454c9d))
    -   Upgrade MSRV to v1.70 ([`aea89c3`](https://togithub.com/Byron/gitoxide/commit/aea89c3))
    -   Thanks clippy ([`d38d1cc`](https://togithub.com/Byron/gitoxide/commit/d38d1cc))
    -   Merge branch 'tracking-branch' ([`0fe20e8`](https://togithub.com/Byron/gitoxide/commit/0fe20e8))
    -   Refactor ([`530c15d`](https://togithub.com/Byron/gitoxide/commit/530c15d))
    -   `Repository::rev_parse*()` now supports `branch@{upstream|push|u|p}`. ([`3fba5b8`](https://togithub.com/Byron/gitoxide/commit/3fba5b8))
    -   Add `Reference::remote_tracking_ref_name()` and `*::remote_ref_name()`. ([`270322e`](https://togithub.com/Byron/gitoxide/commit/270322e))
    -   Add `Repository::branch_remote_tracking_ref_name()`. ([`4aa4b05`](https://togithub.com/Byron/gitoxide/commit/4aa4b05))
    -   Rename `Repository::branch_remote_ref()` to `Repository::branch_remote_ref_name()`, add `direction` argument (also to `Repository::branch_remote_name()` and `Repository::branch_remote()`). ([`404fde5`](https://togithub.com/Byron/gitoxide/commit/404fde5))
    -   `Repository::remote_names|remote_default_name()` now returns `Cow<'_, BStr>` instead of `Cow<'_, str>`. ([`5c07c76`](https://togithub.com/Byron/gitoxide/commit/5c07c76))
    -   Add `push.default` config key ([`8ac2dcc`](https://togithub.com/Byron/gitoxide/commit/8ac2dcc))
    -   Merge branch 'match_ceiling_dir_or_error' ([`cda5b51`](https://togithub.com/Byron/gitoxide/commit/cda5b51))
    -   Merge branch 'main' into fix-1183 ([`1691ba6`](https://togithub.com/Byron/gitoxide/commit/1691ba6))
    -   Release gix-ref v0.39.1 ([`c1cfe6e`](https://togithub.com/Byron/gitoxide/commit/c1cfe6e))
    -   Merge branch 'patch-1' ([`20dce42`](https://togithub.com/Byron/gitoxide/commit/20dce42))
    -   Differentiate between `Executable` and `Program` ([`56d1d09`](https://togithub.com/Byron/gitoxide/commit/56d1d09))
    -   Add `core.editor` key ([`ff71e07`](https://togithub.com/Byron/gitoxide/commit/ff71e07))
    -   Merge branch 'archive-handling' ([`7549559`](https://togithub.com/Byron/gitoxide/commit/7549559))
    -   Check all git-lfs managed files into the repository ([`35439de`](https://togithub.com/Byron/gitoxide/commit/35439de))
    -   Git-lfs might fail early; let's rely on these caches to be recreated, where possible ([`b6f2b81`](https://togithub.com/Byron/gitoxide/commit/b6f2b81))
    -   Release gix-hash v0.13.3, gix-index v0.27.1 ([`98b08f4`](https://togithub.com/Byron/gitoxide/commit/98b08f4))
    -   Merge branch 'mailmap-config-section' ([`8dda069`](https://togithub.com/Byron/gitoxide/commit/8dda069))
    -   Use new `mailmap` keys and make a few improvements. ([`7f65ffd`](https://togithub.com/Byron/gitoxide/commit/7f65ffd))
    -   Assign more suitable types to `mailmap` keys ([`1bf3e88`](https://togithub.com/Byron/gitoxide/commit/1bf3e88))
    -   Add config section for mailmap.{blob,file}. ([`86c7fa1`](https://togithub.com/Byron/gitoxide/commit/86c7fa1))
    -   Merge branch 'configure-prepare-fetch' ([`281fda0`](https://togithub.com/Byron/gitoxide/commit/281fda0))
    -   Add `clone::PrepareFetch::with_in_memory_config_overrides()`. ([`b5c36b8`](https://togithub.com/Byron/gitoxide/commit/b5c36b8))
    -   Allow overriding Git configuration when cloning. ([`9833b45`](https://togithub.com/Byron/gitoxide/commit/9833b45))
    -   Merge branch 'push-yvzxzqrkkvry' ([`4917beb`](https://togithub.com/Byron/gitoxide/commit/4917beb))
    -   Fixup new unsafe interrupt handler ([`c23bb87`](https://togithub.com/Byron/gitoxide/commit/c23bb87))
    -   Mark `gix::interrupt::init_handler()` as unsafe ([`59b8104`](https://togithub.com/Byron/gitoxide/commit/59b8104))
    -   Reduce size of unsafe block in signal handler ([`d77bc0e`](https://togithub.com/Byron/gitoxide/commit/d77bc0e))
    -   Release gix-config v0.32.1 ([`cd26fd8`](https://togithub.com/Byron/gitoxide/commit/cd26fd8))
    -   Merge branch 'adjustments-for-cargo' ([`56588a9`](https://togithub.com/Byron/gitoxide/commit/56588a9))
    -   Fix import/prevent warning ([`ec0211a`](https://togithub.com/Byron/gitoxide/commit/ec0211a))

</details>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 5am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/rust-lang/cargo).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMDMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjEwMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
2024-01-02 03:24:42 +00:00
renovate[bot] 37f4a971ca
chore(deps): update gix 2024-01-01 03:52:17 +00:00
Eric Huss a21997f0cc rustfix: Support inserting new lines.
If rustfix received a suggestion which inserts new lines without
replacing existing lines, it would ignore the suggestion. This is
because `parse_snippet` would immediately return if the `lines` to
replace was empty.

The solution here is to just drop the code which messes with the
original text line. `cargo fix` (and compiletest) currently do not use
this. This was originally added back in the days when rustfix supported
an interactive UI which showed color highlighting of what it looks like
with the replacement. My feeling is that when we add something like this
back in, I would prefer to instead use a real diff library and display
instead of trying to do various text manipulation for display. This
particular code has generally been buggy, and has been a problem several
times.

The included test fails without this fix because the changes do not
apply, and the code cannot compile.
2023-12-31 10:18:22 -08:00
Eric Huss 1bab2005f3 Bump cargo-credential to 0.4.3 2023-12-29 12:44:31 -08:00
Weihang Lo 49ada9f092
Bump to 0.78.0 2023-12-21 16:08:24 -05:00
bors a9c749c33e Auto merge of #13186 - weihanglo:cargo-util-schemas-error-types, r=epage
refactor: custom error types for `cargo-util-schemas`
2023-12-20 15:52:40 +00:00
Weihang Lo 0b0e78fa3f
chore: bump cargo-util-schemas to 0.2.0 2023-12-20 10:38:03 -05:00
Weihang Lo f1216495bb
refactor(util-schemas): remove anyhow 2023-12-20 10:38:02 -05:00
bors c21be2b7cf Auto merge of #13168 - leonzchang:handlebars-v4, r=epage
chore(deps): update rust crate handlebars to `v4.5.0`

In the latest version of `handlebars`, rules for whitespace auto elimination is to check if the directive `{{# xxx}}`` and ``{{/ xxx}}` is holding a whole line, with leading and trailing whitespaces counted, and then remove the trailing NEWLINE (See [`template.rs`](9d7d555628/src/template.rs (L568-L889))).

```md
{{#options}}
                              <--- this newline will be removed after a standalone block
{{#option "`-o` _outdir_"}}
                              <--- this newline will be removed
Some content

{{/option}}
                              <--- this newline will be removed
{{/options}}
                              <--- this newline will be removed
```

This PR changes includes (fixes #13162):
1. update `handlebars` crate to `v4.5.0`.
2. add extra NEWLINE to helper blocks `options`, `option` to align with the new strip rules, preserving the original behavior.
3. update doc(the rest handlebars expression) to align with the new strip rules..
2023-12-20 14:52:29 +00:00
leonzchang b96b244c28
update handlebars & fix tests & update doc 2023-12-20 11:12:49 +08:00
Weihang Lo da6cf9cde2
refactor(util-schemas): add thiserror 2023-12-19 03:34:35 -05:00
Weihang Lo ad2c45bde9
refactor: clean up package metadata
Like PR 12352 but for homepage and repository

Versions for

* `cargo-credential-1password`
* `cargo-util-schemas`
* `home`

are bumped along with the change.
2023-12-18 16:09:03 -05:00
Ed Page 633929d3aa refactor(schemas): Pull out cargo-util-schemas crate
Fixes #12801
2023-12-15 13:22:25 -06:00
Weihang Lo 62bf43294f
chore: downgrade to openssl v1.1.1
riscv64 detection bug is fixed but is not released (openssl/openssl#22871)
See also https://github.com/rust-lang/rust/pull/119007#issuecomment-1859231819
2023-12-17 12:37:13 -05:00
dependabot[bot] aae72a55f5
chore(deps): bump zerocopy from 0.7.29 to 0.7.31
Bumps [zerocopy](https://github.com/google/zerocopy) from 0.7.29 to 0.7.31.
- [Release notes](https://github.com/google/zerocopy/releases)
- [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/zerocopy/compare/v0.7.29...v0.7.31)

---
updated-dependencies:
- dependency-name: zerocopy
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-15 03:56:34 +00:00
WANG Rui 8e9a62d51e chore(deps): update rust crate openssl to 0.10.61 2023-12-12 21:29:45 +08:00