Skip to content

Conversation

tnull
Copy link
Collaborator

@tnull tnull commented Oct 17, 2025

This is a follow-up to #657 which becomes necessary as rust-toolchain.toml unfortunately turned out not to work the way I thought it did.

Here, we revert our default rustfmt version to stable but also introduce a weekly cronjob running cargo +nightly fmt (which we stole from rust-bitcoin).

tnull added 4 commits October 17, 2025 12:28
We had overlooked that the set toolchain would apply to all components
not only the ones listed in `components`.
.. disabling this option avoids `cargo +1.85 fmt` making any changes if
run after `cargo +nightly fmt`.
.. we indicate our MSRV in `Cargo.toml`.
.. which we steal from `rust-bitcoin`.
@tnull tnull requested a review from joostjager October 17, 2025 10:38
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Oct 17, 2025

👋 Thanks for assigning @joostjager as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@@ -0,0 +1,28 @@
name: Nightly rustfmt
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you test-run this job in CI? (temp. schedule to trigger it?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Did you test-run this job in CI? (temp. schedule to trigger it?)

No, but it's a carbon copy of https://github.com/rust-bitcoin/rust-bitcoin/blob/master/.github/workflows/cron-weekly-rustfmt.yml, which is run weekly over at rust-bitcoin. See for example rust-bitcoin/rust-bitcoin#5120

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we'll find out if the weekly works or not...

@@ -0,0 +1,28 @@
name: Nightly rustfmt
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we'll find out if the weekly works or not...

@tnull tnull merged commit dd51908 into lightningdevkit:main Oct 17, 2025
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants