Repository navigation
Fix Nixel build - #216
Fix Nixel build#216
Conversation
📝 WalkthroughWalkthroughUpgrades Rust edition to 2024 in Cargo.toml, updates Nix flake configuration with new formatter and build dependencies, and simplifies conditional logic patterns throughout the CLI module while removing unused public serializable structures. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 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 |
grahamc
left a comment
There was a problem hiding this comment.
Holy cow, way to go @lucperkins!
Getting Nixel to compile properly has been a bit of a thorn in our side for fh, forcing us to lock our fenix input (and thus our Rust version) in a way that we don't love. This PR fixes the Nixel build by removing the explicit
NIX_CFLAGS_COMPILEenvironment variable (I came upon this solution basically by looking at Nixel's flake and noting that onlyLIBCLANG_PATHis set there). This will enable us to update fenix normally and have an up-to-date Rust henceforth.I also used this as an opportunity to upgrade to the 2024 edition of Rust.
Note
The diff is fairly large here but there are no substantive changes to fh here. The Rust changes are all related to formatting and Clippy.
Summary by CodeRabbit
Chores
Refactor