Skip to content

Strip unstable rustfmt, normalize to stable 1.94.1, fix burn refs#133

Merged
AdaWorldAPI merged 3 commits intomasterfrom
cursor/stable-rustfmt-bd77
May 1, 2026
Merged

Strip unstable rustfmt, normalize to stable 1.94.1, fix burn refs#133
AdaWorldAPI merged 3 commits intomasterfrom
cursor/stable-rustfmt-bd77

Conversation

@AdaWorldAPI
Copy link
Copy Markdown
Owner

Changes

1. rustfmt.toml — stable options only

Removed 14 unstable options that were silently ignored by stable rustfmt. Kept stable-only config:

  • edition = "2021", max_width = 120, fn_params_layout = "Compressed", etc.
  • cargo fmt --all --check now passes clean on stable 1.94.1

2. Codebase reformatted (303 files, whitespace only)

One-time normalization to stable rustfmt. Primary changes:

  • K&R brace style (was Allman via brace_style = "AlwaysNextLine")
  • Macro bodies reformatted (was suppressed via format_macro_bodies = false)
  • Import layout normalized
  • Line wrapping at 120 cols

3. Burn crate references fixed

  • tracel-ai/burnAdaWorldAPI/burn@9b2b671 in crates/burn/Cargo.toml
  • Submodule URL updated in .gitmodules
  • crates/burn excluded from workspace resolver (rand 0.10 vs workspace rand 0.9 conflict)

Verification

  • cargo fmt --all --check0 diffs (was 4473)
  • cargo clippy --features native -- -D warnings — clean
  • cargo test --lib -p ndarray — 1819 passed, 0 failed, 36 ignored
  • cargo check — workspace resolves cleanly
Open in Web Open in Cursor 

cursoragent and others added 3 commits May 1, 2026 12:55
Removed 14 unstable options (brace_style, indent_style, format_macro_bodies,
skip_macro_invocations, etc.) that were silently ignored by stable rustfmt.
Updated edition from 2018 to 2021. Stable config only.

Co-authored-by: AdaWorldAPI <AdaWorldAPI@users.noreply.github.com>
One-time reformatting of 303 source files to match the stable-only
rustfmt.toml. Primary changes: K&R brace style (was Allman), macro body
formatting, import layout, line wrapping at 120 cols.

No functional changes — whitespace only.

Co-authored-by: AdaWorldAPI <AdaWorldAPI@users.noreply.github.com>
- Replace tracel-ai/burn git refs with AdaWorldAPI/burn@9b2b671
- Update submodule URL to AdaWorldAPI/burn
- Exclude crates/burn from workspace (rand 0.10 vs 0.9 conflict)
  Burn is built standalone via `cargo check -p burn --manifest-path crates/burn/Cargo.toml`

Co-authored-by: AdaWorldAPI <AdaWorldAPI@users.noreply.github.com>
@AdaWorldAPI AdaWorldAPI marked this pull request as ready for review May 1, 2026 13:43
@AdaWorldAPI AdaWorldAPI merged commit 3b1ef9d into master May 1, 2026
8 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.

2 participants