]> Untitled Git - bdk/commitdiff
chore: create rustfmt.toml, update CI to use nightly for fmt job
authorLuis Schwab <luisschwab@protonmail.com>
Fri, 16 May 2025 14:12:34 +0000 (11:12 -0300)
committerLuis Schwab <luisschwab@protonmail.com>
Tue, 20 May 2025 21:35:00 +0000 (18:35 -0300)
.github/pull_request_template.md
.github/workflows/cont_integration.yml
rustfmt.toml [new file with mode: 0644]

index 42afd7e3c226bc0e72c01edea2eb8b1e9f673df5..ace7e2cfd77c9011e70feeca20f8f8d2a786cd47 100644 (file)
@@ -20,7 +20,7 @@ of the PR were done in a specific way -->
 
 * [ ] I've signed all my commits
 * [ ] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
-* [ ] I ran `cargo fmt` and `cargo clippy` before committing
+* [ ] I ran `cargo +nightly fmt` and `cargo clippy` before committing
 
 #### New Features:
 
index f4ad6114a78dee17595ac5a6fefcb2dd54c0e4da..3d2943d78dc07bbb8415face335d0f6b923038a4 100644 (file)
@@ -126,7 +126,6 @@ jobs:
         run: cargo check --target wasm32-unknown-unknown --no-default-features --features bdk_core/hashbrown,async
 
   fmt:
-    needs: prepare
     name: Rust fmt
     runs-on: ubuntu-latest
     steps:
@@ -137,12 +136,12 @@ jobs:
       - name: Install Rust toolchain
         uses: actions-rs/toolchain@v1
         with:
-            toolchain: ${{ needs.prepare.outputs.rust_version }}
+            toolchain: nightly
             override: true
             profile: minimal
             components: rustfmt
       - name: Check fmt
-        run: cargo fmt --all -- --config format_code_in_doc_comments=true --check
+        run: cargo fmt --all --check
 
   clippy_check:
     needs: prepare
diff --git a/rustfmt.toml b/rustfmt.toml
new file mode 100644 (file)
index 0000000..505d959
--- /dev/null
@@ -0,0 +1,3 @@
+comment_width = 100
+format_code_in_doc_comments = true
+wrap_comments = true