Some IDEs can help with type visualization. Here is an example from VS Code (a slightly modified example from the The Rust Programming Language book): ...
Some IDEs can help with type visualization. Here is an example from VS Code (a slightly modified example from the The Rust Programming Language book): ...
I'm exploring ways that I can nicely format const tables of data to be more compact and easier to read. For example, I have [[u64; 64]; 2] where rustf ...
pvec is my vec with the type Player for each struct in pvec I want to print their name and score, but I cannot figure out how to print the name withou ...
I would like to call macros with a single multi-line string argument, formatted like so: css!(r" background: grey; color: white; "); Howeve ...
I've been messing around with nightly rustfmt and all its options (so many more than the stable version). So, just out of curiosity: if I want to use ...
I noticed bazel doesn't pick up rustfmt.toml from the project/target folder. What is the way to edit fmt parameters for bazel build? ...
I want to write a simple call to assert! like this assert!(idents.len() == 1, "Multi-part table references not supported"); But this keeps ...
I am running into an unexpected issue when it comes to toolchains in CLion. I want to use the stable channel for the compiler while using the nightly ...
I am using the Rust extension on vscode and NOT rust-analyzer. However, when I am saving a file, vscode is using rustfmt to format my file but it does ...
#[rustfmt::skip] allows you to skip a "block" of code while formatting, but this requires putting skip on each {} instead of Clang-style on/off Consi ...
I'm trying to use syn to create an AST from a Rust file and then using quote to write it to another. However, when I write it, it puts extra spaces be ...
I have a rustfmt.toml file with the line group_imports = "StdExternalCrate" in it, which according to the documentation should be a valid option. Howe ...
I want to construct the string "test: OK", but this doesn't work. How can I do it? ...
How do I run rustfmt automatically when I save a file in IntelliJ or CLion? ...
The official way to get Rustfmt to skip an item is #[rustfmt::skip], however I want it to skip an entire file. I tried this: However you get this e ...