-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move nightly toolchain scripts to xtasks #1790
base: main
Are you sure you want to change the base?
Conversation
This is an emerging pattern many other projects are using and allows us to develop them with current rust-analyzer and friends, which rust scripts - requiring the nightly toolchain - do not.
Despite .editorconfig files using a TOML-like syntax, seems I won't be able to use the |
Looks like
I like this pattern, particularly as it avoids nightly rust as much as possible. In general, I prefer writing scripts using the toolchain if possible anyway, since they can be cross-platform that way. |
I'm not sure about this approach either. As our repo grows, putting more and more into the workspace - especially with dependencies not generally needed by other crates (which we want to reduce anyway) - is going to make things slower and slower. Rust scripts will stabilize eventually and editor support should come along with that, so this may not be worth it. |
Looks like it's active as well. I did find a crate for helping assert files against an Could also use something like https://docs.rs/file-header/latest/file_header/fn.check_headers_recursively.html, which looks to be maintained. The path predicate could use a list of files passed to the command line including globs or, if none, check every The advantage of a lint e.g., using dylint is that feedback is immediate in most editors. |
Another option for linting is super-linter. I've worked with some projects that use it. It's essentially a bundle of linters. It can be a bit of a heavy option but has the advantage of just setting a style baseline for everything. |
This is an emerging pattern many other projects are using and allows us to develop them with current rust-analyzer and friends, which rust scripts - requiring the nightly toolchain - do not.