Skip to content

Nightly rustfmt follow-up - #669

Merged
tnull merged 4 commits into
lightningdevkit:mainfrom
tnull:2025-10-nightly-rustfmt-followup
Oct 17, 2025
Merged

Nightly rustfmt follow-up#669
tnull merged 4 commits into
lightningdevkit:mainfrom
tnull:2025-10-nightly-rustfmt-followup

Conversation

@tnull

Copy link
Copy Markdown
Collaborator

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).

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 joostjagerOctober 17, 2025 10:38
@ldk-reviews-bot

ldk-reviews-bot commented Oct 17, 2025

Copy link
Copy Markdown

👋 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
Copy Markdown
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
Copy Markdown
CollaboratorAuthor

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
Copy Markdown
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
Copy Markdown
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:mainOct 17, 2025
14 of 15 checks passed
Sign up for freeto 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

@tnull@ldk-reviews-bot@joostjager