Trending:

Rust 1.99.1 arrives with targeted fixes for wcslen, FFI, and macOS rust-lld quirks: an evidence-based read

Prepared with AI assistance from source material. Automated editorial review recorded . Automated checks can miss errors and do not represent human approval. Editorial policy and corrections.

Screenshot of Rust release notes outlining 1.99.1 fixes
TechStaged-owned

Summary

  • The Rust team has published a new point release of Rust, 1.99.1.
  • Rust 1.99.1 fixes regressions from prior releases, including missing wcslen on some targets, with wcslen now present in the compiler-builtins library as a fallback.
  • The LLVM loop-idiom-wcslen pass may introduce calls to wcslen as an optimization, and some Rust targets did not have that function readily available in libc or elsewhere.
  • Miscompilation of FFI bool return values on x86_64 is addressed by zero-extending the return value.

The Rust team released Rust 1.99.1 as a targeted bug-fix point release to address regressions from prior releases.

Key issues addressed include missing wcslen on certain targets and related ABI considerations for FFI booleans, among other fixes noted by the release text.

KEY FIXES IN FOCUS

Rust 1.99.1 fixes the missing wcslen symbol by making it available in Rust's compiler-builtins library as a fallback, addressing link errors seen on some targets.

The release notes also describe a miscompilation risk for FFI bool returns on x86_64, now corrected by zero-extending the return value to match the ABI.

Additionally, rust-lld on macOS gains an rpath entry to ensure the correct libLLVM is found, reducing the risk of load failures in certain invocation scenarios.

  • Missing wcslen symbol addressed as fallback in compiler-builtins
  • FFI bool return values corrected to zero-extension for ABI consistency
  • rust-lld macOS loading improved via rpath entry

ABI, FFI AND PLATFORM CONSIDERATIONS

The FFI bool return fix targets the long-standing expectation of 0 or 1 values when Rust exposes booleans to other languages via FFI.

macOS-specific rust-lld adjustments reduce potential link/load failures when the compiler is used through the rustup proxy.

UEFI targets and std usage were noted as areas affected by similar precompiled standard library changes, with issues reportedly reproducible for related user code patterns.

  • FFI boolean return values now zero-extended to match ABI expectations
  • macOS lib loading improved for rust-lld with rustup proxy considerations
  • UEFI std usage issues tied to precompiled std library changes (observed in reports)

WHAT THIS MEANS FOR DEVELOPERS

If you manage projects that rely on FFI or target platforms like macOS or UEFI, this release represents targeted fixes rather than a broad feature update.

For upgrades, the Rust blog suggests using beta and nightly channels to test with CI before adopting 1.99.1 in production environments.

As with any point release, validating your CI and build pipelines against the new binaries is advised to detect any unforeseen interactions early.

  • Targeted fixes may affect build behavior on some targets
  • Test in CI with beta/nightly before upgrading
  • Validate build pipelines for ABI/FFI changes

WHAT TO WATCH NEXT

Further confirmation and broader ecosystem impact will emerge from external reports and subsequent Rust releases.

Developers should monitor for follow-up notes on 1.99.x iterations and related tooling changes (e.g., LLD and platform-specific behavior) in future updates.