Closed marsam closed 2 years ago
hm ok, let me see if i can only run rustfmt on the generated code if it's available. (also thanks for using millet! :D)
updated millet to depend on a recent version of language-util, which just writes files without piping through rustfmt if rustfmt couldn't be spawned: https://github.com/azdavis/language-util/commit/966da5f9a9791ac555a18ebcc39459e7f0d47dd8
then tested it locally by
Hi:
Thank you for your work in Millet, I'm using it with Emacs and it works great.
I packaged Millet in nixpkgs but while packaging it, I got an error when I tried to build it without having rustfmt installed. The error was a bit cryptic, but I could solved it adding rustfmt to the dependencies. It happens because
syntax-gen
depends on it https://github.com/azdavis/language-util/blob/8ec2dc509c88951102ad3e751820443059a363af/crates/syntax-gen/src/util.rs#L37I think it could be great if the readme had a mention of the dependency of rustfmt or making it optional.
Environment
0.2.5
, but it also affects HEAD (68b417d)Steps to reproduce
millet
without havingrustfmt
installedExpected behavior
Build Millet sucessfully
Actual behavior