Skip to content

Commit

Permalink
Update Rust crate nix to 0.29.0 (#1973)
Browse files Browse the repository at this point in the history
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [nix](https://togithub.com/nix-rust/nix) | dev-dependencies | minor | `0.28.0` -> `0.29.0` |

---

### Release Notes

<details>
<summary>nix-rust/nix (nix)</summary>

### [`v0.29.0`](https://togithub.com/nix-rust/nix/blob/HEAD/CHANGELOG.md#0290---2024-05-24)

[Compare Source](https://togithub.com/nix-rust/nix/compare/v0.28.0...v0.29.0)

##### Added

-   Add `getregset()/setregset()` for Linux/glibc/x86/x86\_64/aarch64/riscv64 and
    `getregs()/setregs()` for Linux/glibc/aarch64/riscv64
    ([#&#8203;2044](https://togithub.com/nix-rust/nix/pull/2044))
-   Add socket option Ipv6Ttl for apple targets.
    ([#&#8203;2287](https://togithub.com/nix-rust/nix/pull/2287))
-   Add socket option UtunIfname.
    ([#&#8203;2325](https://togithub.com/nix-rust/nix/pull/2325))
-   make SigAction repr(transparent) & can be converted to the libc raw type
    ([#&#8203;2326](https://togithub.com/nix-rust/nix/pull/2326))
-   Add `From` trait implementation for conversions between `sockaddr_in` and
    `SockaddrIn`, `sockaddr_in6` and `SockaddrIn6`
    ([#&#8203;2328](https://togithub.com/nix-rust/nix/pull/2328))
-   Add socket option ReusePortLb for FreeBSD.
    ([#&#8203;2332](https://togithub.com/nix-rust/nix/pull/2332))
-   Added support for openat2 on linux.
    ([#&#8203;2339](https://togithub.com/nix-rust/nix/pull/2339))
-   Add if_indextoname function.
    ([#&#8203;2340](https://togithub.com/nix-rust/nix/pull/2340))
-   Add `mount` and `unmount` API for apple targets.
    ([#&#8203;2347](https://togithub.com/nix-rust/nix/pull/2347))
-   Added `_PC_MIN_HOLE_SIZE` for `pathconf` and `fpathconf`.
    ([#&#8203;2349](https://togithub.com/nix-rust/nix/pull/2349))
-   Added `impl AsFd for pty::PtyMaster`
    ([#&#8203;2355](https://togithub.com/nix-rust/nix/pull/2355))
-   Add `open` flag `O_SEARCH` to AIX, Empscripten, FreeBSD, Fuchsia, solarish,
    WASI ([#&#8203;2374](https://togithub.com/nix-rust/nix/pull/2374))
-   Add prctl function `prctl_set_vma_anon_name` for Linux/Android.
    ([#&#8203;2378](https://togithub.com/nix-rust/nix/pull/2378))
-   Add `sync(2)` for `apple_targets/solarish/haiku/aix/hurd`, `syncfs(2)` for
    `hurd` and `fdatasync(2)` for `aix/hurd`
    ([#&#8203;2379](https://togithub.com/nix-rust/nix/pull/2379))
-   Add fdatasync support for Apple targets.
    ([#&#8203;2380](https://togithub.com/nix-rust/nix/pull/2380))
-   Add `fcntl::OFlag::O_PATH` for FreeBSD and Fuchsia
    ([#&#8203;2382](https://togithub.com/nix-rust/nix/pull/2382))
-   Added `PathconfVar::MIN_HOLE_SIZE` for apple_targets.
    ([#&#8203;2388](https://togithub.com/nix-rust/nix/pull/2388))
-   Add `open` flag `O_SEARCH` to apple_targets
    ([#&#8203;2391](https://togithub.com/nix-rust/nix/pull/2391))
-   `O_DSYNC` may now be used with `aio_fsync` and `fcntl` on FreeBSD.
    ([#&#8203;2404](https://togithub.com/nix-rust/nix/pull/2404))
-   Added `Flock::relock` for upgrading and downgrading locks.
    ([#&#8203;2407](https://togithub.com/nix-rust/nix/pull/2407))

##### Changed

-   Change the `ForkptyResult` type to the following repr so that the
    uninitialized
    `master` field won't be accessed in the child process:

    ````rs
    pub enum ForkptyResult {
        Parent {
            child: Pid,
            master: OwnedFd,
        },
        Child,
    }
    ``` ([#&#8203;2315](https://togithub.com/nix-rust/nix/pull/2315))
    ````
-   Updated `cfg_aliases` dependency from version 0.1 to 0.2
    ([#&#8203;2322](https://togithub.com/nix-rust/nix/pull/2322))
-   Change the signature of `ptrace::write` and `ptrace::write_user` to make them
    safe ([#&#8203;2324](https://togithub.com/nix-rust/nix/pull/2324))
-   Allow use of `SignalFd` through shared reference

    Like with many other file descriptors, concurrent use of signalfds is safe.
    Changing the signal mask of and reading signals from a signalfd can now be
    done
    with the `SignalFd` API even if other references to it exist.
    ([#&#8203;2367](https://togithub.com/nix-rust/nix/pull/2367))
-   Changed tee, splice and vmsplice RawFd arguments to AsFd.
    ([#&#8203;2387](https://togithub.com/nix-rust/nix/pull/2387))
-   Added I/O safety to the sys/aio module.  Most functions that previously
    accepted a `AsRawFd` argument now accept an `AsFd` instead.
    ([#&#8203;2401](https://togithub.com/nix-rust/nix/pull/2401))
-   `RecvMsg::cmsgs()` now returns a `Result`, and checks that cmsgs were not
    truncated. ([#&#8203;2413](https://togithub.com/nix-rust/nix/pull/2413))

##### Fixed

-   No longer panics when the `fanotify` queue overflows.
    ([#&#8203;2399](https://togithub.com/nix-rust/nix/pull/2399))
-   Fixed ControlMessageOwned::UdpGroSegments wrapped type from u16 to i32 to
    reflect the used kernel's one.
    ([#&#8203;2406](https://togithub.com/nix-rust/nix/pull/2406))

</details>

---

### 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**: 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.

---

 - [ ] 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/X-oss-byte/Nextjs).
  • Loading branch information
renovate[bot] authored May 26, 2024
1 parent ad45376 commit f734546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-swc/crates/next-dev/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ turbopack-binding = { workspace = true, features = [
url = { workspace = true }

[target.'cfg(unix)'.dev-dependencies]
nix = "0.28.0"
nix = "0.29.0"

[build-dependencies]
turbopack-binding = { workspace = true, features = [
Expand Down

0 comments on commit f734546

Please sign in to comment.