Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build]
rustflags = ["--cfg", "rustix_use_libc"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This global --cfg rustix_use_libc is a build-machine workaround baked into every build of the repo, and it's silently dropped exactly where it matters.

Two problems:

  1. Wrong layer. It switches every rustix in every build — including the production FUSE binary — from the linux_raw backend to libc, just to work around the old locked rustix 0.37.28 failing on recent nightly. Cargo.lock still contains rustix 0.37.28; the PR's own instructions-python-bindings/fix_rustix_error.md says the real fix is updating the locked rustix (cargo update -p rustix, or bumping the dependency that pulls 0.37.x). Doing that makes this cfg unnecessary. (The [workspace.dependencies] rustix = "1.1.4" added in the root Cargo.toml doesn't help either — no crate references it with workspace = true, so it pins nothing.)

  2. Silently overridden. Cargo ignores build.rustflags whenever the RUSTFLAGS env var is set — and scripts/check-before-push.sh line 6 does export RUSTFLAGS="-Dwarnings". So the guarded pre-push builds compile without this cfg (hitting the original rustix error on affected toolchains, or silently using a different syscall backend than plain cargo build), and local vs. guarded builds diverge.

Suggest: drop this file, update the locked rustix instead, and scope PYO3_USE_ABI3_FORWARD_COMPATIBILITY to the rencfs-python build (or upgrade pyo3) rather than exporting it repo-wide.


Generated by Claude Code


[env]
PYO3_USE_ABI3_FORWARD_COMPATIBILITY = "1"
Loading