Skip to content

Commit

Permalink
Bump bindgen from 0.69.4 to 0.71.1 (#463)
Browse files Browse the repository at this point in the history
Bumps [bindgen](https://github.com/rust-lang/rust-bindgen) from 0.69.4
to 0.71.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/rust-lang/rust-bindgen/releases">bindgen's
releases</a>.</em></p>
<blockquote>
<h2>v0.71.1</h2>
<p>We are happy to announce a new release of bindgen 🎉</p>
<ul>
<li>[GitHub]</li>
<li>[crates.io]</li>
<li>[Users Guide][guide]</li>
<li>[API Documentation][docs]</li>
</ul>
<h1>Changelog</h1>
<h2>Fixed</h2>
<ul>
<li>Fix <code>--version</code> and
<code>--generate-shell-completions</code> (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/3040">#3040</a>)</li>
</ul>
<h1>Upgrade <code>bindgen</code></h1>
<p>Upgrade to this release by updating your <code>Cargo.toml</code>:</p>
<pre lang="toml"><code>bindgen = &quot;0.71.1&quot;
</code></pre>
<h1>Install <code>bindgen-cli</code></h1>
<h2>Install prebuild binaries using <code>cargo binstall</code></h2>
<p>Just run</p>
<pre lang="sh"><code>cargo binstall bindgen-cli
</code></pre>
<h2>Install prebuilt binaries via shell script</h2>
<pre lang="sh"><code>curl --proto '=https' --tlsv1.2 -LsSf
https://github.com/rust-lang/rust-bindgen/releases/download/v0.71.1/bindgen-cli-installer.sh
| sh
</code></pre>
<h2>Download bindgen-cli 0.71.1</h2>
<table>
<thead>
<tr>
<th>File</th>
<th>Platform</th>
<th>Checksum</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="https://github.com/rust-lang/rust-bindgen/releases/download/v0.71.1/bindgen-cli-aarch64-apple-darwin.tar.xz">bindgen-cli-aarch64-apple-darwin.tar.xz</a></td>
<td>Apple Silicon macOS</td>
<td><a
href="https://github.com/rust-lang/rust-bindgen/releases/download/v0.71.1/bindgen-cli-aarch64-apple-darwin.tar.xz.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://github.com/rust-lang/rust-bindgen/releases/download/v0.71.1/bindgen-cli-x86_64-apple-darwin.tar.xz">bindgen-cli-x86_64-apple-darwin.tar.xz</a></td>
<td>Intel macOS</td>
<td><a
href="https://github.com/rust-lang/rust-bindgen/releases/download/v0.71.1/bindgen-cli-x86_64-apple-darwin.tar.xz.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://github.com/rust-lang/rust-bindgen/releases/download/v0.71.1/bindgen-cli-x86_64-unknown-linux-gnu.tar.xz">bindgen-cli-x86_64-unknown-linux-gnu.tar.xz</a></td>
<td>x64 Linux</td>
<td><a
href="https://github.com/rust-lang/rust-bindgen/releases/download/v0.71.1/bindgen-cli-x86_64-unknown-linux-gnu.tar.xz.sha256">checksum</a></td>
</tr>
</tbody>
</table>
<h2>Compile and install binaries from source</h2>
<p>Just run</p>
<pre lang="sh"><code>cargo install bindgen-cli
</code></pre>
<h1>Friends</h1>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/rust-lang/rust-bindgen/blob/main/CHANGELOG.md">bindgen's
changelog</a>.</em></p>
<blockquote>
<h1>v0.71.1 (2024-12-09)</h1>
<h2>Fixed</h2>
<ul>
<li>Fix <code>--version</code> and
<code>--generate-shell-completions</code> (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/3040">#3040</a>)</li>
</ul>
<h1>0.71.0 (2024-12-06)</h1>
<h2>Added</h2>
<ul>
<li>Add the <code>ParseCallbacks::new_item_found</code> callback to
expose the original and final name of structs, unions and enums (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2658">#2658</a>).</li>
<li>Add the <code>field_type_name</code> field to <code>FieldInfo</code>
to expose the name of the type of a field (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2863">#2863</a>)</li>
<li>Add support for custom attributes with the
<code>--with-attribute-custom</code> flag (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2866">#2866</a>)</li>
<li>Allow setting <code>--rust-target</code> to any Rust version
supported by bindgen (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2993">#2993</a>)</li>
<li>Use c-string literals if the <code>--generate-cstr</code> flag is
used for Rust targets after 1.77 under the 2021 edition (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2996">#2996</a>)</li>
<li>Add the <code>--rust-edition</code> flag which allows to select
which Rust edition to target. (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/3002">#3002</a>,
<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/3013">#3013</a>)</li>
<li>Use <code>unsafe extern</code> instead of <code>extern</code> in
blocks for any Rust target after 1.82. (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/3015">#3015</a>)</li>
</ul>
<h2>Changed</h2>
<ul>
<li>The <code>--wrap-static-fns</code> related options no longer require
the experimental feature or flag (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2928">#2928</a>)</li>
<li>Use the <code>Display</code> implementation instead of the
<code>Debug</code> one for <code>BindgenError</code> in
<code>bindgen-cli</code> (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/3005">#3005</a>)</li>
</ul>
<h2>Removed</h2>
<ul>
<li>Dropped support for any Clang versions strictly lower than 9.0 (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2932">#2932</a>)</li>
<li>Dropped support for any Rust version strictly lower than 1.33 (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2993">#2993</a>)</li>
</ul>
<h2>Fixed</h2>
<ul>
<li>Represent opaque types in a FFI-safe way (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2880">#2880</a>)</li>
<li>Use the underlying type of any atomic type instead of panicking (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2920">#2920</a>)</li>
<li>Use the right characters for newlines on windows (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2923">#2923</a>)</li>
<li>Inlined namespaces are properly recognized now (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2950">#2950</a>)</li>
<li>Unsafe calls to <code>libloading</code> are now wrapped in
<code>unsafe</code> blocks when using dynamic loading (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2961">#2961</a>)</li>
<li>The <code>ParseCallbacks::field_visibility</code> callback is now
called for newtypes as well (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2967">#2967</a>)</li>
<li>Gate the use of the <code>addr_of</code> and
<code>addr_of_mut</code> macros under the 1.51 rust version (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2988">#2988</a>)</li>
</ul>
<h1>0.70.1 (2024-08-20)</h1>
<h2>Added</h2>
<h2>Changed</h2>
<h2>Removed</h2>
<h2>Fixed</h2>
<ul>
<li>Fix regression where the <code>const</code> layout tests were
triggering the <code>unnecessary_operation</code> and
<code>identity_op</code> clippy warnings.</li>
</ul>
<h2>Security</h2>
<h1>0.70.0 (2024-08-16)</h1>
<h2>Added</h2>
<ul>
<li>Add target mappings for riscv64imac and riscv32imafc.</li>
<li>Add a complex macro fallback API (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2779">#2779</a>).</li>
<li>Add option to use DST structs for flexible arrays (--flexarray-dst,
<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2772">#2772</a>).</li>
<li>Add option to dynamically load variables (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2812">#2812</a>).</li>
<li>Add option in CLI to use rustified non-exhaustive enums
(--rustified-non-exhaustive-enum, <a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2847">#2847</a>).</li>
<li>Add field_type_name to FieldInfo.</li>
</ul>
<h2>Changed</h2>
<ul>
<li>Remove which and lazy-static dependencies (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2809">#2809</a>,
<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2817">#2817</a>).</li>
<li>Generate compile-time layout tests (<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2787">#2787</a>).</li>
<li>Print <code>bindgen-cli</code> errors to stderr instead of stdout
(<a
href="https://redirect.github.com/rust-lang/rust-bindgen/issues/2840">#2840</a>)</li>
</ul>
<h2>Removed</h2>
<h2>Fixed</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/rust-lang/rust-bindgen/commit/af7fd38d5e80514406fb6a8bba2d407d252c30b9"><code>af7fd38</code></a>
chore: bump versions and update changelog</li>
<li><a
href="https://github.com/rust-lang/rust-bindgen/commit/89659a84a9cbfdc5ddbc3cb064d4d555be45fbc8"><code>89659a8</code></a>
ci: bump macos image for x86 binaries</li>
<li><a
href="https://github.com/rust-lang/rust-bindgen/commit/8109b37e73070e796800e0e2b3b7bf4b852a9fb0"><code>8109b37</code></a>
chore: update changelog for release</li>
<li><a
href="https://github.com/rust-lang/rust-bindgen/commit/76fff5e720583eaaca05d50d6bddc157fce77c9c"><code>76fff5e</code></a>
ci: Revert <code>cargo-dist</code> update</li>
<li><a
href="https://github.com/rust-lang/rust-bindgen/commit/d02d556e3f50827d70b315dcadc2f3e3cdf27b87"><code>d02d556</code></a>
chore: use custom action to create the tag</li>
<li><a
href="https://github.com/rust-lang/rust-bindgen/commit/a6dcf41aa7ef86a756db297fbe751940e197ee97"><code>a6dcf41</code></a>
ci: fetch all the history</li>
<li><a
href="https://github.com/rust-lang/rust-bindgen/commit/7019d0dc605067ad19b36a2e6dfa697913570127"><code>7019d0d</code></a>
ci: invert conditional</li>
<li><a
href="https://github.com/rust-lang/rust-bindgen/commit/8c6a62f2f4b0e11d09ecd7e5d3a65468614b4fbe"><code>8c6a62f</code></a>
ci: fix <code>git rev-parse</code></li>
<li><a
href="https://github.com/rust-lang/rust-bindgen/commit/bff68e2afc86f0dba136d42efaa39ff09100406e"><code>bff68e2</code></a>
chore: fix <code>create-tag</code> conditional logic</li>
<li><a
href="https://github.com/rust-lang/rust-bindgen/commit/08f721ce329c90a187c505ed61900044bce98c54"><code>08f721c</code></a>
ci: add missing <code>&amp;&amp;</code> on
<code>create-tag.yml</code></li>
<li>Additional commits viewable in <a
href="https://github.com/rust-lang/rust-bindgen/compare/v0.69.4...v0.71.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=bindgen&package-manager=cargo&previous-version=0.69.4&new-version=0.71.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
  • Loading branch information
emlowe authored Jan 31, 2025
2 parents 9055976 + c5a5642 commit 228f21e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 79 deletions.
82 changes: 4 additions & 78 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust-bindings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repository = "https://github.com/Chia-Network/chiapos"
link-cplusplus = "1.0.9"

[build-dependencies]
bindgen = "0.69.4"
bindgen = "0.71.1"
cmake = "0.1.50"

[dev-dependencies]
Expand Down

0 comments on commit 228f21e

Please sign in to comment.