Skip to content

chore: standardize formatting with stylua and rustfmt#1

Merged
marcosdanielr merged 2 commits into
mainfrom
chore/code-formatting
Jul 9, 2026
Merged

chore: standardize formatting with stylua and rustfmt#1
marcosdanielr merged 2 commits into
mainfrom
chore/code-formatting

Conversation

@marcosdanielr

Copy link
Copy Markdown
Member

Introduces automated formatting for both the Lua and Rust sources.

What

  • Add stylua.toml pinned to the existing style (4-space indent, double quotes, expanded blocks).
  • Add rustfmt.toml (edition 2024).
  • Add make fmt / make fmt-check targets.
  • Add a fmt CI job that fails on unformatted Lua or Rust.
  • Apply the formatters across bcryptlua.lua, spec/, and src/.

Notes

  • Formatting-only sweep is isolated in its own commit; tooling/config in another.

Pin stylua to spaces/double-quotes to match the existing style, add
make fmt / fmt-check targets, and a CI job that fails on unformatted
Lua or Rust.
@marcosdanielr marcosdanielr merged commit f1294da into main Jul 9, 2026
4 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.

1 participant