libc breaking changes

cargo

16 curated breaking changes across major versions of libc. Use this as a migration checklist before bumping dependencies.

16
changes
Breaking changes by transition
  • 0.2.183 \u2192 0.2.184breaking

    EspIDF: Correct the value of `DT_*` constants ([#5034](https://github.com/rust-lang/libc/pull/5034))

  • 0.2.183 \u2192 0.2.184breaking

    Redox: Fix locale values and add `RTLD_NOLOAD`, some TCP constants ([#5025](https://github.com/rust-lang/libc/pull/5025))

  • 0.2.183 \u2192 0.2.184breaking

    Various: Use `Padding::new(<zeroed>)` rather than `Padding::uninit()` ([#5036](https://github.com/rust-lang/libc/pull/5036))

  • ctest-v0.5.0 \u2192 0.2.181breaking

    AIX: Change 'tv_nsec' of 'struct timespec' to type 'c_long' ([#4931](https://github.com/rust-lang/libc/pull/4931))

  • ctest-v0.5.0 \u2192 0.2.181breaking

    AIX: Use 'struct st_timespec' in 'struct stat{,64}' ([#4931](https://github.com/rust-lang/libc/pull/4931))

  • ctest-v0.5.0 \u2192 0.2.181breaking

    Glibc: Link old version of `tc{g,s}etattr` ([#4938](https://github.com/rust-lang/libc/pull/4938))

  • ctest-v0.5.0 \u2192 0.2.181breaking

    Glibc: Link the correct version of `cf{g,s}et{i,o}speed` on mips{32,64}r6 ([#4938](https://github.com/rust-lang/libc/pull/4938))

  • ctest-v0.5.0 \u2192 0.2.181breaking

    OpenBSD: Fix constness of tm.tm_zone ([#4948](https://github.com/rust-lang/libc/pull/4948))

  • 0.2.168 \u2192 0.2.169breaking

    ESP-IDF: Replace arch-conditional `c_char` with a reexport <https://github.com/rust-lang/libc/pull/4195>

  • 0.2.168 \u2192 0.2.169breaking

    Fix `c_char` on various targets <https://github.com/rust-lang/libc/pull/4199>

  • 0.2.168 \u2192 0.2.169breaking

    Mirror `c_char` configuration from `rust-lang/rust` <https://github.com/rust-lang/libc/pull/4198>

  • unknown \u2192 0.2.165breaking

    **breaking** ulibc Mips: fix `SA_*` mismatched types ([#3211](https://github.com/rust-lang/libc/pull/3211))

  • unknown \u2192 0.2.165breaking

    Aix: fix an enum FFI safety warning <https://github.com/rust-lang/libc/pull/3644>

  • unknown \u2192 0.2.165breaking

    Haiku: fix some typos ([#3664](https://github.com/rust-lang/libc/pull/3664))

  • unknown \u2192 0.2.165breaking

    Tests: fix `Elf{32,64}_Relr`-related tests <https://github.com/rust-lang/libc/pull/3647>

  • unknown \u2192 0.2.165breaking

    Tests: fix libc-tests for `loongarch64-linux-musl`

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/cargo/libc
libc breaking changes — Cargo migration guide | DepScope