Use `prettyplease` to format macro output
Dependencies
- [2]
3C3CHSY5Implement `to_syn` for groups containing simple text messages - [3]
O77KA6C4Create `fluent_embed` crate - [*]
UKFEFT6LCreate basic `Output` proc-macro
Change contents
- replacement in fluent_embed/examples/groups.rs at line 15
dbg!(syn_expressions);let file_contents = quote! {#(#syn_expressions)*;};let mock_file = syn::parse_file(file_contents.to_string().as_str()).unwrap();let formatted = prettyplease::unparse(&mock_file);println!("{formatted}"); - edit in fluent_embed/Cargo.toml at line 15[3.1578]
[dev-dependencies]prettyplease = "0.2.16" - edit in Cargo.lock at line 20
"prettyplease", - edit in Cargo.lock at line 45[5.4501][5.4501]
name = "prettyplease"version = "0.2.16"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "a41cf62165e97c7f814d2221421dbb9afcbcdb0a88068e5ea206e19951c2cbb5"dependencies = ["proc-macro2","syn",][[package]]