tweag / nickel

Better configuration for less
https://nickel-lang.org/
MIT License
2.43k stars 93 forks source link

Building nls with `--no-default-features` fails. #2062

Closed jneem closed 1 month ago

jneem commented 1 month ago

Some APIs changed, and the external formatter doesn't build anymore. We should either fix it (and check in CI that it builds) or remove the option to use an external formatter.

I seem to remember that it was originally made configurable because of some difficulty building pre-releases of topiary. Maybe we don't need the external formatting option anymore?

yannham commented 1 month ago

Indeed, I believe this was a fallback when the NLS version published on crates.io didn't include Topiary. The only reason that I could see for using an external formatter is when you have both Nickel and NLS installed; in this case maybe it's a bit wasteful to have Topiary compiled and included in both, and NLS should use nickel format instead? But this is a different motivation, so IMHO it's ok to remove the external formatter feature for now and then decide.