Commit graph

9 commits

Author SHA1 Message Date
the letter L
551bc326d3
chore: add edition 2024 to rustfmt.toml (#7591)
Some checks are pending
Benchmarks / Bench (push) Waiting to run
CI on main / Format Rust Files (push) Waiting to run
CI on main / Lint Rust Files (push) Waiting to run
CI on main / Check Dependencies (push) Waiting to run
CI on main / Test (push) Waiting to run
CI on main / Test262 Coverage (push) Waiting to run
Release / Release (push) Waiting to run
Release / version (push) Blocked by required conditions
Release / Package darwin-arm64 (push) Blocked by required conditions
Release / Package darwin-x64 (push) Blocked by required conditions
Release / Package linux-arm64-musl (push) Blocked by required conditions
Release / Package linux-x64-musl (push) Blocked by required conditions
Release / Package win32-arm64 (push) Blocked by required conditions
Release / Package win32-x64 (push) Blocked by required conditions
Release / Package linux-arm64 (push) Blocked by required conditions
Release / Package linux-x64 (push) Blocked by required conditions
Release / Build WASM (push) Blocked by required conditions
Release / Package JavaScript APIs (push) Blocked by required conditions
Release / Publish CLI (push) Blocked by required conditions
Release / Publish JS API (push) Blocked by required conditions
Repository dispatch on main / Build @biomejs/wasm-web (push) Waiting to run
Repository dispatch on main / Repository dispatch (push) Blocked by required conditions
Co-authored-by: turbocrime <turbocrime@users.noreply.github.com>
2025-09-25 11:21:10 +09:00
Jelle van der Waa
82125819e1
chore: set 2024 as default Rustfmt style edition (#5528) 2025-03-31 17:36:48 +02:00
Naoki Ikeguchi
9b2d5db56e
chore: switch to Rustfmt 2024 style edition (#5236) 2025-03-02 20:33:02 +09:00
Naoki Ikeguchi
bf675cfd98
build: upgrade to Rust 2024 edition (#5224) 2025-03-02 10:18:47 +00:00
Micha Reiser
e6409b8f31
refactor(Formatter): Move Format, Formatter, to rome_formatter (#2559)
This PR moves the shared traits `Format`, `Formatter`, `IntoFormatElement`, and the extension traits to `rome_formatter`. 

I introduce two new traits to work around Rust's orphan rule. 

* `AsFormat`: Has a single `format()` method that returns an object that knows how to format `self` (by reference)
* `IntoFormat`: Has a single `into_format()` that returns an object that knows how to format `self` (takes ownership)

An object that isn't able to implement `Format` itself because of Rust's orphan rule can implement `AsFormat`  and `IntoFormat`. 

This PR changes the node formatting by making them implement `AsFormat` and `IntoFormat` instead of implementing `Format`. The formatting is implemented by a `Format*` new-type that has a single static `::format` method. This new type has been necessary to have a way to share the formatting logic between `AsFormat` and `IntoFormat`.
2022-05-11 18:03:56 +02:00
IWANABETHATGUY
87e71eb411
chore: format rust doc comments (#2573) 2022-05-11 12:30:01 +02:00
Yasser Elassal
409979ff13
chore: switch from tabs to spaces (#1941)
* chore: switch from tabs to spaces

* Fix lexer tests

* Run xtask syntax

* Replace more tabs

* Replace even more tabs

* Run xtask codegen and update rast files

* Run cargo format again

* Update editorconfig

* Replace more tabs

* Replace tabs in xtask
2022-01-14 15:04:03 -06:00
Micha Reiser
4128bb1134
refactor!: Wrap many-child inside of a list node (#1728)
Automatically wraps many-child nodes, for example, the elements of an array, in a List node.
2021-11-08 07:42:47 +01:00
Emanuele Stoppa
e1036202b7
feat: CLI and formatter crates (#1665)
Co-authored-by: Micha Reiser <micha@rome.tools>
2021-09-23 11:25:03 +01:00