fix(deps): disable ctor priority feature#3209
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTwo Cargo.toml files updated their Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@Brooooooklyn, I just noticed this issue -- I'll try to fix this upstream in |
Summary
ctorinto its non-prioritydefault features explicitly incrates/napicrates/macroso the workspace stays consistent onctor 0.9section$end$__DATA$CTORreferences at runtimeWhy
napi-rsonly uses plain#[ctor]registration today, not#[ctor(priority = ...)]. After thector 0.9upgrade, the default feature set enablespriority, which takes a different Apple implementation path. That path is what shows up in the failingaarch64-apple-darwinZig job.This keeps the
ctor 0.9upgrade, but restores the pre-prioritybehavior by explicitly enabling the other default features and leavingpriorityoff.Expected impact
ERR_DLOPEN_FAILEDwithsymbol not found in flat namespace 'section$end$__DATA$CTOR'Note
Low Risk
Low risk dependency configuration change that only alters how
ctoris built (feature set) to avoid Apple/Zig linker/runtime symbol issues; behavior should be unchanged unless code relied onctorpriority support.Overview
Forces the
ctordependency to build withdefault-features = falseand an explicit feature list in bothcrates/napiandcrates/macro, intentionally leaving offprioritysupport.This keeps the workspace consistent on
ctor 0.9while avoiding the Apple/Zig cross-link path that can emit unresolvedsection$end$__DATA$CTORreferences at runtime.Reviewed by Cursor Bugbot for commit 5015f43. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit
Note: This release contains internal maintenance updates with no end-user-visible changes or new features.