Support FromBytes and ToBytes for statically sized arrays
Allow setting recv buffer size in socket
Support for the connector protocol
Maintenance
Clippy fixes
Update to Rust 2024 edition
0.7.0
Breaking changes
FromBytes and FromBytesWithInput have had the lifetime parameter removed. This
removes the ability to borrow data from the buffer written to by the recv() syscall.
This is intentional as it provides more ergonomic support for NlRouter to send
messages across threads. A new trait, FromBytesWithInputBorrowed, has been added to
support the use case of borrowing payloads from attributes as &str or &[u8].
The async feature API has been completely redesigned to more closely resemble
it's corresponding synchronous API.
All new() methods and public fields on data structures used to construct packets
have been replaced by the builder pattern.
The IO error variant is now the full IO error wrapped in an Arc.
New Cargo features
sync has been added as a Cargo feature. If a user is only interested in asynchronous
functionality, sync can be disabled to disable the higher level synchronous API
and reduce the number of required dependencies.
Features
Extended ACK support. Sockets now support parsing and enabling entended ACKs for more
information in error cases.
New router infrastructure allowing ACK handling, seq management, and PID validation
for requests sent in parallel.
Builder pattern defined for all data structures used to construct netlink packets.
Bug fixes
Fixed a mismatch between libc::socklen_t and usize in the list memberships call.
This was causing failures on s390x in the tests.
Dependency version updates
syn
libc
Migration guide
If you were previously using new() methods defined on structs representing packet
data, all packet data structures have been migrated over to a builder pattern.
Flags in packets have been migrated from a custom data structure to
bitflags. For example &[Nlm::Request, Nlm::Ack] is now NlmF::REQUEST | NlmF::ACK.
Because of previous errors around multicast groups, there is a new data structure
to handle group management that allows either converting from group numbers or a
... (truncated)
Commits
715fb4a Merge pull request #295 from jbaublitz/release-0.7.1
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
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)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps [neli](https://github.com/jbaublitz/neli) from 0.6.5 to 0.7.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/jbaublitz/neli/releases">neli's releases</a>.</em></p>
<blockquote>
<h2>neli-v0.7.1</h2>
<p><a href="https://github.com/jbaublitz/neli/milestone/19?closed=1">https://github.com/jbaublitz/neli/milestone/19?closed=1</a></p>
<h2>neli-v0.7.0</h2>
<p>See milestone: <a href="https://github.com/jbaublitz/neli/milestone/11?closed=1">https://github.com/jbaublitz/neli/milestone/11?closed=1</a></p>
<h2>neli-v0.7.0-rc3</h2>
<p>No release notes provided.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/jbaublitz/neli/blob/main/CHANGELOG.md">neli's changelog</a>.</em></p>
<blockquote>
<h2>0.7.1</h2>
<h3>Features</h3>
<ul>
<li>Support <code>FromBytes</code> and <code>ToBytes</code> for statically sized arrays</li>
<li>Allow setting recv buffer size in socket</li>
<li>Support for the connector protocol</li>
</ul>
<h3>Maintenance</h3>
<ul>
<li>Clippy fixes</li>
<li>Update to Rust 2024 edition</li>
</ul>
<h2>0.7.0</h2>
<h3>Breaking changes</h3>
<ul>
<li><code>FromBytes</code> and <code>FromBytesWithInput</code> have had the lifetime parameter removed. This
removes the ability to borrow data from the buffer written to by the <code>recv()</code> syscall.
This is intentional as it provides more ergonomic support for <code>NlRouter</code> to send
messages across threads. A new trait, <code>FromBytesWithInputBorrowed</code>, has been added to
support the use case of borrowing payloads from attributes as <code>&str</code> or <code>&[u8]</code>.</li>
<li>The <code>async</code> feature API has been completely redesigned to more closely resemble
it's corresponding synchronous API.</li>
<li>All <code>new()</code> methods and public fields on data structures used to construct packets
have been replaced by the builder pattern.</li>
<li>The IO error variant is now the full IO error wrapped in an <code>Arc</code>.</li>
</ul>
<h3>New Cargo features</h3>
<ul>
<li><code>sync</code> has been added as a Cargo feature. If a user is only interested in asynchronous
functionality, <code>sync</code> can be disabled to disable the higher level synchronous API
and reduce the number of required dependencies.</li>
</ul>
<h3>Features</h3>
<ul>
<li>Extended ACK support. Sockets now support parsing and enabling entended ACKs for more
information in error cases.</li>
<li>New router infrastructure allowing ACK handling, seq management, and PID validation
for requests sent in parallel.</li>
<li>Builder pattern defined for all data structures used to construct netlink packets.</li>
</ul>
<h2>Bug fixes</h2>
<ul>
<li>Fixed a mismatch between <code>libc::socklen_t</code> and <code>usize</code> in the list memberships call.
This was causing failures on s390x in the tests.</li>
</ul>
<h3>Dependency version updates</h3>
<ul>
<li>syn</li>
<li>libc</li>
</ul>
<h3>Migration guide</h3>
<ul>
<li>If you were previously using <code>new()</code> methods defined on structs representing packet
data, all packet data structures have been migrated over to a builder pattern.</li>
<li>Flags in packets have been migrated from a custom data structure to
<a href="https://docs.rs/bitflags"><code>bitflags</code></a>. For example <code>&[Nlm::Request, Nlm::Ack]</code> is now <code>NlmF::REQUEST | NlmF::ACK</code>.</li>
<li>Because of previous errors around multicast groups, there is a new data structure
to handle group management that allows either converting from group numbers or a</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/jbaublitz/neli/commit/715fb4a06c8063d58a1ef5a309ef9e75c3d8b55e"><code>715fb4a</code></a> Merge pull request <a href="https://redirect.github.com/jbaublitz/neli/issues/295">#295</a> from jbaublitz/release-0.7.1</li>
<li><a href="https://github.com/jbaublitz/neli/commit/f979fe20ed92b1fd4ab7265106d1c7f9b978dac6"><code>f979fe2</code></a> neli-0.7.1 and neli-proc-macros-0.2.1</li>
<li><a href="https://github.com/jbaublitz/neli/commit/a7118f756aa7fffe257ed36657950a12ad6ad629"><code>a7118f7</code></a> Merge pull request <a href="https://redirect.github.com/jbaublitz/neli/issues/293">#293</a> from jbaublitz/neli-237</li>
<li><a href="https://github.com/jbaublitz/neli/commit/7acbb06122cbca3862ad6d03df72cf099b85033e"><code>7acbb06</code></a> Fix formatting in proc-macros</li>
<li><a href="https://github.com/jbaublitz/neli/commit/b123cc2ef07d819c0d616788fdcd162a51173ba7"><code>b123cc2</code></a> Only run formatting check on stable</li>
<li><a href="https://github.com/jbaublitz/neli/commit/618d3a314f4c81a9708cf305cfcc25261bee50b2"><code>618d3a3</code></a> Optionally get the buffer for deserialization, avoiding panic if index is out...</li>
<li><a href="https://github.com/jbaublitz/neli/commit/f570f22b4f9d08b04b72b77ac87a865eb39f6eab"><code>f570f22</code></a> Merge pull request <a href="https://redirect.github.com/jbaublitz/neli/issues/288">#288</a> from Bben01/feature/set-buffer-size</li>
<li><a href="https://github.com/jbaublitz/neli/commit/596f2dfd94dec5d529faa855cfa92de9dd0de254"><code>596f2df</code></a> Add option to set recv buffer size</li>
<li><a href="https://github.com/jbaublitz/neli/commit/6448ee0478d5d8b02aa19b610eee2256dfa4c9d6"><code>6448ee0</code></a> Merge pull request <a href="https://redirect.github.com/jbaublitz/neli/issues/289">#289</a> from Bben01/feature/const-generic-arrays</li>
<li><a href="https://github.com/jbaublitz/neli/commit/d8254a53ae992a0b97f087a31118eca9081c818e"><code>d8254a5</code></a> Add const generic implementations for FromBytes and ToBytes traits for arrays</li>
<li>Additional commits viewable in <a href="https://github.com/jbaublitz/neli/compare/neli-v0.6.5...neli-v0.7.1">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
You can trigger a rebase of this PR 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>
> **Note**
> Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.
If you change your mind, just re-open this PR and I'll resolve any conflicts on it.
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting `@dependabot ignore this major version` or `@dependabot ignore this minor version`.
If you change your mind, just re-open this PR and I'll resolve any conflicts on it.
Pull request closed
This pull request cannot be reopened because the branch was deleted.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bumps neli from 0.6.5 to 0.7.1.
Release notes
Sourced from neli's releases.
Changelog
Sourced from neli's changelog.
... (truncated)
Commits
715fb4aMerge pull request #295 from jbaublitz/release-0.7.1f979fe2neli-0.7.1 and neli-proc-macros-0.2.1a7118f7Merge pull request #293 from jbaublitz/neli-2377acbb06Fix formatting in proc-macrosb123cc2Only run formatting check on stable618d3a3Optionally get the buffer for deserialization, avoiding panic if index is out...f570f22Merge pull request #288 from Bben01/feature/set-buffer-size596f2dfAdd option to set recv buffer size6448ee0Merge pull request #289 from Bben01/feature/const-generic-arraysd8254a5Add const generic implementations for FromBytes and ToBytes traits for arraysYou can trigger a rebase of this PR by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting
@dependabot ignore this major versionor@dependabot ignore this minor version.If you change your mind, just re-open this PR and I'll resolve any conflicts on it.
Pull request closed