ModulesΒ§
- pm2_
send π - proc_macro2 types are not send, even when compiled outside of a proc-macro crate this mod converts the token tree to a minimal Send model that only retains the info needed to implement the custom formatting
StructsΒ§
- FmtArgs
- FmtFrag
Request π - FmtFrag
Server π - rustfmt does not provide a crate and does not implement a server. It only operates in one-shot calls and it is slow.
- FmtFrag
Server πData - FmtHistory π
ConstantsΒ§
- FMT_
VERSION π - Bump this for every change that can affect format result.
StaticsΒ§
- SHOW_
RUSTFMT_ πERRORS
FunctionsΒ§
- custom_
fmt_ πdocs - custom_
fmt_ πmd - Applies rustfmt and custom format for all Rust code blocks in the Markdown file
- custom_
fmt_ πrs - Applies custom format for all macro bodies in file, if changed writes the file and returns the file path for reformat.
- replace_
bitflags π - replace_
command π - replace_
event_ πargs - replace_
event_ πproperty - replace_
expr_ πvar - replace_
simple_ πident_ list - wrap simple list of idents
- replace_
static_ πref - replace_
struct_ πlike - replace_
when_ πvar - replace_
widget π - Escape widget macro syntax
- replace_
widget_ πimpl - run
- rustfmt_
files π - rustfmt_
stdin π - try_
fmt_ πchild_ macros - Find βmacro_ident! {}β and
try_fmt_macrothe macro body if it is not marked skip - try_
fmt_ πmacro - workspace_
root π