Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bytecodealliance/rustix
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: bytecodealliance/rustix
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.0
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 11 commits
  • 12 files changed
  • 3 contributors

Commits on Apr 30, 2025

  1. Fix the assertion in Pid::from_raw to accept 0. (#1456)

    * Fix the assertion in `Pid::from_raw` to accept 0.
    
    Fix a regression from #1443 which disallowed calling `Pid::from_raw`
    with the value 0.
    
    * Disable transmutes warnings for now.
    
    * Add a test.
    
    * Update CI to ubuntu-22.04, as ubuntu-20.04 is no longer supported.
    
    * Fix the build on Rust 1.63.
    
    * Temporarily work around nightly build errors on powerpc64-ibm-aix.
    sunfishcode committed Apr 30, 2025
    Configuration menu
    Copy the full SHA
    fc794e9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6883580 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2025

  1. Temporarily disable the do_test_unix_msg tests on FreeBSD. (#1477)

    These tests appear to be failing on FreeBSD 15 due to a difference in behavior
    on `SOCK_SEQPACKET` FreeBSD 15. They pass on FreeBSD 14 and on other OS's.
    sunfishcode committed Jul 15, 2025
    Configuration menu
    Copy the full SHA
    091d3d7 View commit details
    Browse the repository at this point in the history
  2. Expand the windows-sys dependency to include 0.60.0. (#1476)

    * Expand the windows-sys dependency to include 0.60.0.
    
    Expand the windows-sys dependency to ">=0.52, <0.61", to support the new
    windows-sys 0.60.
    
    windows-sys 0.60 does make one change that affected rustix, which is to
    move the `BOOL` type from `windows_sys::Win32::Foundation::BOOL` to
    `windows_sys::core::BOOL`, so to support both old and new versions, just
    hard-code the `BOOL` type, as it's just an `i32` and always will be.
    
    * Pin more packages for the MSRV build.
    
    * Fix warnings.
    
    * Disable more test on FreeBSD.
    sunfishcode committed Jul 15, 2025
    Configuration menu
    Copy the full SHA
    25ebd26 View commit details
    Browse the repository at this point in the history
  3. Pin CI to Rust nightly-2025-06-23. (#1486)

    This works around the issue filed upstream in rust-lang/rust#143164.
    sunfishcode committed Jul 15, 2025
    Configuration menu
    Copy the full SHA
    1507cbd View commit details
    Browse the repository at this point in the history
  4. Remove the compiler-builtins optional dependency. (#1483)

    As advised in #1475, the compiler-builtins dependency is no longer
    needed. It was only used in rustc-dep-of-std mode.
    
    Fixes #1475.
    sunfishcode committed Jul 15, 2025
    Configuration menu
    Copy the full SHA
    eec86ef View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    12aa086 View commit details
    Browse the repository at this point in the history
  6. Use new hints.mostly-unused (#1491)

    * Use new `hints.mostly-unused`
    
    Most users of the `rustix` crate will use a fraction of its API surface
    area.
    
    Nightly rustc provides an option `-Zhint-mostly-unused` to tell it to
    defer as much compilation as possible, which provides a substantial
    performance improvement if most of that compilation doesn't end up
    happening. Cargo plumbs this option through using the new `[hints]`
    table. This will cause users of the `rustix` crate to default to setting
    `hint-mostly-unused`. (Top-level crates can override this if they wish,
    using a new profile option.)
    
    Note that setting this hint does not increase the MSRV of the rustix
    crate, as old versions of Cargo will ignore it. New versions of Cargo
    will respect it automatically (and, until we stabilize it, Cargo will do
    nothing unless you pass `-Zprofile-hint-mostly-unused` to cargo).
    
    Some sample performance numbers: this takes `rustix` compilation time
    with `all-apis` enabled from 5.9s to 4.3s (a 27% improvement).
    
    * Add comment to the mostly-unused hint
    joshtriplett authored and sunfishcode committed Jul 15, 2025
    Configuration menu
    Copy the full SHA
    b16b457 View commit details
    Browse the repository at this point in the history
  7. Don't let a mismatch AT_SYSINFO_EHDR image preclude use of AUX values. (

    #1484)
    
    * Don't let a mismatch AT_SYSINFO_EHDR image preclude use of AUX values.
    
    If the ELF image pointed to by the `AT_SYSINFO_EHDR` AUX record doesn't
    match the architecture rustix is compiled for, don't use it, but do
    continue to use the rest of the AUX fields.
    
    Fixes #1465.
    
    * Fix a warning.
    sunfishcode committed Jul 15, 2025
    Configuration menu
    Copy the full SHA
    71ecca8 View commit details
    Browse the repository at this point in the history
  8. Deprecate unshare and add unshare_unsafe. (#1482)

    As pointed out in #1479, `unshare` can lead to threads observing
    dangling file descriptors. Deprecate it, and add a new `unshare_unsafe`
    that's unsafe, to reflect this.
    
    Fixes #1479.
    sunfishcode committed Jul 15, 2025
    Configuration menu
    Copy the full SHA
    77151a7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5b104ec View commit details
    Browse the repository at this point in the history
Loading