Skip to content

fix(deps): update rust crate nix to 0.30.1 - autoclosed #1265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 31, 2025

This PR contains the following updates:

Package Type Update Change
nix dependencies minor 0.29.0 -> 0.30.1

Release Notes

nix-rust/nix (nix)

v0.30.1

Compare Source

Fixed

v0.30.0

Compare Source

Added
  • Add socket option IPV6_PKTINFO for BSDs/Linux/Android, also
    IPV6_RECVPKTINFO for DragonFlyBSD
    (#​2113)
  • Add fcntl's F_PREALLOCATE constant for Apple targets.
    (#​2393)
  • Improve support for extracting the TTL / Hop Limit from incoming packets
    and support for DSCP (ToS / Traffic Class).
    (#​2425)
  • Add socket option IP_TOS (nix::sys::socket::sockopt::IpTos) IPV6_TCLASS
    (nix::sys::socket::sockopt::Ipv6TClass) on Android/FreeBSD
    (#​2464)
  • Add SeekData and SeekHole to Whence for hurd and apple targets
    (#​2473)
  • Add From trait implementation between SocketAddr and Sockaddr,
    Sockaddr6 (#​2474)
  • Added wrappers for posix_spawn API
    (#​2475)
  • Add the support for Emscripten.
    (#​2477)
  • Add fcntl constant F_RDADVISE for Apple target
    (#​2480)
  • Add fcntl constant F_RDAHEAD for Apple target
    (#​2482)
  • Add F_LOG2PHYS and F_LOG2PHYS_EXT for Apple target
    (#​2483)
  • MAP_SHARED_VALIDATE was added for all linux targets. & MAP_SYNC was added
    for linux with the exclusion of mips architecures, and uclibc
    (#​2499)
  • Add getregs()/getregset()/setregset() for Linux/musl/aarch64
    (#​2502)
  • Add FcntlArgs F_TRANSFEREXTENTS constant for Apple targets
    (#​2504)
  • Add MapFlags::MAP_STACK in sys::man for netbsd
    (#​2526)
  • Add support for libc::LOCAL_PEERTOKEN in getsockopt.
    (#​2529)
  • Add support for syslog, openlog, closelog on all unix.
    (#​2537)
  • Add the TCP_FUNCTION_BLK sockopt, on FreeBSD.
    (#​2539)
  • Implements Into<OwnedFd> for PtyMaster/Fanotify/Inotify/SignalFd/TimerFd
    (#​2548)
  • Add MremapFlags::MREMAP_DONTUNMAP to sys::mman::mremap for linux target.
    (#​2555)
  • Added sockopt_impl! to the public API. It's now possible for users to
    define
    their own sockopts without needing to make a PR to Nix.
    (#​2556)
  • Add the TCP_FUNCTION_ALIAS sockopt, on FreeBSD.
    (#​2558)
  • Add sys::mman::MmapAdvise MADV_PAGEOUT, MADV_COLD, MADV_WIPEONFORK,
    MADV_KEEPONFORK for Linux and Android targets
    (#​2559)
  • Add socket protocol Sctp, as well as MSG_NOTIFICATION for non-Android
    Linux targets. (#​2562)
  • Added from_owned_fd constructor to EventFd
    (#​2563)
  • Add sys::mman::MmapAdvise MADV_POPULATE_READ, MADV_POPULATE_WRITE for
    Linux and Android targets
    (#​2565)
  • Added from_owned_fd constructor to
    PtyMaster/Fanotify/Inotify/SignalFd/TimerFd
    (#​2566)
  • Added FcntlArg::F_READAHEAD for FreeBSD target
    (#​2569)
  • Added sockopt::LingerSec for Apple targets
    (#​2572)
  • Added sockopt::EsclBind for solarish targets
    (#​2573)
  • Exposed the std::os::fd::AsRawFd trait method for
    nix::sys::fanotify::Fanotify struct
    (#​2575)
  • Add support for syslog's setlogmask on all unix.
    (#​2579)
  • Added Fuchsia support for ioctl.
    (#​2580)
  • Add sys::socket::SockProtocol::EthIp,
    sys::socket::SockProtocol::EthIpv6,
    sys::socket::SockProtocol::EthLoop
    (#​2581)
  • Add OpenHarmony target into CI and Update documents.
    (#​2599)
  • Added the TcpMaxSeg setsockopt option for apple targets
    (#​2603)
  • Add FilAttach and FilDetach to socket::sockopt for Illumos
    (#​2611)
  • Add PeerPidfd (SO_PEERPIDFD) to socket::sockopt for Linux
    (#​2620)
  • Added socket::sockopt::AttachReusePortCbpf for Linux
    (#​2621)
  • Add ptrace::syscall_info for linux/glibc
    (#​2627)
Changed
  • Module sys/signal now adopts I/O safety
    (#​1936)
  • Change the type of the name argument of memfd_create() from &CStr to
    <P: NixPath>(name: &P) (#​2431)
  • Public interfaces in fcntl.rs and dir.rs now use I/O-safe types.
    (#​2434)
  • Module sys/stat now adopts I/O safety.
    (#​2439)
  • Module unistd now adopts I/O safety.
    (#​2440)
  • Module sys/fanotify now adopts I/O safety
    (#​2443)
  • Socket option IpTos has been renamed to Ipv4Tos, the old symbol is
    deprecated since 0.30.0 (#​2465)
  • Rename Flags EventFlag to EvFlags, and MemFdCreateFlag to MFdFlags
    (#​2476)
  • Made nix::sys::socket::UnknownCmsg public and more readable
    (#​2520)
  • recvmsg: take slice for cmsg_buffer instead of Vec
    (#​2524)
  • linkat: allow distinct types for path arguments
    (#​2582)
Fixed
  • Disable unsupported signals on sparc-linux
    (#​2454)
  • Fix cmsg_len() return type on OpenHarmony
    (#​2456)
  • The ns argument of sys::prctl::set_timerslack() should be of type
    c_ulong (#​2505)
  • Properly exclude NUL characters from OSStrings returned by getsockopt.
    (#​2557)
  • Fixes the build on OpenHarmony
    (#​2587)
Removed
  • Type SigevNotify is no longer PartialEq, Eq and Hash due to the use
    of BorrowedFd (#​1936)
  • EventFd::defuse() is removed because it does nothing, EventFd::arm() is
    also removed for symmetry reasons.
    (#​2452)
  • Removed the Copy trait from PollFd
    (#​2631)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

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

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Summary by Sourcery

Chores:

  • Update the nix dependency from 0.29.0 to 0.30.1

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Copy link
Contributor Author

renovate bot commented May 31, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --package [email protected] --precise 0.30.1
    Updating crates.io index
error: failed to select a version for the requirement `nix = "^0.29"`
candidate versions found which didn't match: 0.30.1
location searched: crates.io index
required by package `iptables v0.5.2`
    ... which satisfies dependency `iptables = "^0.5.2"` (locked to 0.5.2) of package `netavark v1.16.0-dev (/tmp/renovate/repos/github/containers/netavark)`

@renovate renovate bot added the dependencies Pull requests that update a dependency file label May 31, 2025
Copy link

sourcery-ai bot commented May 31, 2025

Reviewer's Guide

This PR bumps the nix crate from 0.29.0 to 0.30.1 in Cargo.toml (with the same feature set), pulling in upstream API additions, renames, deprecations, and fixes from the minor release.

Class Diagram: EventFd API Changes in nix 0.30.x

classDiagram
  class EventFd {
    <<Rust struct>>
    -- Methods removed in v0.30.0 --
    defuse()
    arm()
    -- Methods added in v0.30.0 --
    +from_owned_fd(fd: OwnedFd) EventFd
  }
Loading

Class Diagram: Selected API Renames in nix 0.30.x

classDiagram
  class nix.sys.socket.sockopt.IpTos {
      <<sockopt, deprecated>>
  }
  class nix.sys.socket.sockopt.Ipv4Tos {
      <<sockopt>>
  }
  nix.sys.socket.sockopt.IpTos ..> nix.sys.socket.sockopt.Ipv4Tos : renamed to

  class EventFlag {
      <<flags, deprecated>>
  }
  class EvFlags {
      <<flags>>
  }
  EventFlag ..> EvFlags : renamed to

  class MemFdCreateFlag {
      <<flags, deprecated>>
  }
  class MFdFlags {
      <<flags>>
  }
  MemFdCreateFlag ..> MFdFlags : renamed to
Loading

Class Diagram: Ownership Utilities for File Descriptors in nix 0.30.x

classDiagram
  class OwnedFd {
    <<Rust struct>>
  }
  class PtyMaster {
    <<Rust struct>>
    +from_owned_fd(fd: OwnedFd) PtyMaster
    +into(self) OwnedFd // Represents impl Into<OwnedFd>
  }
  PtyMaster ..> OwnedFd : interacts with

  class Fanotify {
    <<Rust struct>>
    +from_owned_fd(fd: OwnedFd) Fanotify
    +into(self) OwnedFd // Represents impl Into<OwnedFd>
  }
  Fanotify ..> OwnedFd : interacts with
Loading

File-Level Changes

Change Details Files
Dependency version bump
  • Updated the nix crate version in Cargo.toml
  • Retained existing feature flags (sched, signal, user)
  • Regenerated Cargo.lock to pin the new version
Cargo.toml

Possibly linked issues

  • #0: The PR updates the nix crate, a task listed as an open update in the issue.

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

openshift-ci bot commented May 31, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: renovate[bot]
Once this PR has been reviewed and has the lgtm label, please assign baude for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot
Copy link
Collaborator

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@renovate renovate bot changed the title fix(deps): update rust crate nix to 0.30.1 fix(deps): update rust crate nix to 0.30.1 - autoclosed Jun 9, 2025
@renovate renovate bot closed this Jun 9, 2025
@renovate renovate bot deleted the renovate/nix-0.x branch June 9, 2025 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file needs-rebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant