Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

nix

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nix - cargo Package Compare versions

Comparing version
0.26.3
to
0.26.4
+1
-1
.cargo_vcs_info.json
{
"git": {
"sha1": "8a2325aa9570692c9122ed44c010cbebe41f81fb"
"sha1": "08d8ba9fc3b5a0b9f6211bc286e6bf336b7c3463"
},
"path_in_vcs": ""
}

@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO

name = "nix"
version = "0.26.3"
version = "0.26.4"
authors = ["The nix-rust Project Developers"]

@@ -73,3 +73,3 @@ include = [

[dependencies.bitflags]
version = "2.3.1"
version = "1.1"

@@ -76,0 +76,0 @@ [dependencies.cfg-if]

@@ -57,2 +57,3 @@ //! Rust friendly bindings to the various *nix system functions.

#![deny(clippy::cast_ptr_alignment)]
#![allow(clippy::bad_bit_mask)]

@@ -59,0 +60,0 @@ // Re-exported external crates

@@ -66,4 +66,2 @@ // Thanks to Tokio for this macro

::bitflags::bitflags! {
#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[repr(transparent)]
$(#[$outer])*

@@ -70,0 +68,0 @@ pub struct $BitFlags: $T {

@@ -395,3 +395,3 @@ #[cfg(target_os = "freebsd")]

let iovp = self.iov.as_mut_ptr();
let res = unsafe { libc::nmount(iovp, niov, flags.bits()) };
let res = unsafe { libc::nmount(iovp, niov, flags.bits) };
match Errno::result(res) {

@@ -450,3 +450,3 @@ Ok(_) => Ok(()),

let res = mountpoint.with_nix_path(|cstr| unsafe {
libc::unmount(cstr.as_ptr(), flags.bits())
libc::unmount(cstr.as_ptr(), flags.bits)
})?;

@@ -453,0 +453,0 @@

@@ -91,3 +91,3 @@ #![allow(missing_docs)]

ty,
flags.bits(),
flags.bits,
d as *const libc::c_void,

@@ -112,3 +112,3 @@ )

let res = target.with_nix_path(|cstr| unsafe {
libc::umount2(cstr.as_ptr(), flags.bits())
libc::umount2(cstr.as_ptr(), flags.bits)
})?;

@@ -115,0 +115,0 @@

@@ -142,3 +142,3 @@ //! Posix Message Queue functions

/// See also [`mq_open(2)`](https://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_open.html)
// The mode.bits() cast is only lossless on some OSes
// The mode.bits cast is only lossless on some OSes
#[allow(clippy::cast_lossless)]

@@ -145,0 +145,0 @@ pub fn mq_open(

@@ -180,3 +180,3 @@ #[cfg(any(target_os = "macos", target_os = "ios", target_os = "openbsd"))]

let res = path.with_nix_path(|cstr| unsafe {
libc::mknod(cstr.as_ptr(), kind.bits() | perm.bits() as mode_t, dev)
libc::mknod(cstr.as_ptr(), kind.bits | perm.bits() as mode_t, dev)
})?;

@@ -206,3 +206,3 @@

cstr.as_ptr(),
kind.bits() | perm.bits() as mode_t,
kind.bits | perm.bits() as mode_t,
dev,

@@ -209,0 +209,0 @@ )

@@ -15,2 +15,3 @@ //! Get filesystem statistics

/// File system mount Flags
#[repr(C)]
#[derive(Default)]

@@ -17,0 +18,0 @@ pub struct FsFlags: c_ulong {

@@ -312,3 +312,3 @@ //! An interface for controlling asynchronous communication ports

self.output_flags = OutputFlags::from_bits_truncate(termios.c_oflag);
self.control_flags = ControlFlags::from_bits_retain(termios.c_cflag);
self.control_flags = ControlFlags::from_bits_truncate(termios.c_cflag);
self.local_flags = LocalFlags::from_bits_truncate(termios.c_lflag);

@@ -359,5 +359,5 @@ self.control_chars = termios.c_cc;

/// B0 is special and will disable the port.
#[cfg_attr(target_os = "haiku", repr(u8))]
#[cfg_attr(all(any(target_os = "haiku"), target_pointer_width = "64"), repr(u8))]
#[cfg_attr(all(any(target_os = "ios", target_os = "macos"), target_pointer_width = "64"), repr(u64))]
#[cfg_attr(all(not(all(any(target_os = "ios", target_os = "macos"), target_pointer_width = "64")), not(target_os = "haiku")), repr(u32))]
#[cfg_attr(not(all(any(target_os = "ios", target_os = "macos", target_os = "haiku"), target_pointer_width = "64")), repr(u32))]
#[non_exhaustive]

@@ -364,0 +364,0 @@ pub enum BaudRate {

@@ -94,3 +94,2 @@ #[cfg_attr(target_env = "musl", allow(deprecated))]

/// Flags that are used for arming the timer.
#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct TimerSetTimeFlags: libc::c_int {

@@ -108,3 +107,2 @@ const TFD_TIMER_ABSTIME = libc::TFD_TIMER_ABSTIME;

/// Flags that are used for arming the timer.
#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct TimerSetTimeFlags: libc::c_int {

@@ -111,0 +109,0 @@ const TFD_TIMER_ABSTIME = libc::TIMER_ABSTIME;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display