Skip to content
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

fotmat.stable should invoke cargo fmt using default rustfmt #160

Closed
orenbenkiki opened this issue Dec 7, 2018 · 6 comments
Closed

fotmat.stable should invoke cargo fmt using default rustfmt #160

orenbenkiki opened this issue Dec 7, 2018 · 6 comments
Assignees
Milestone

Comments

@orenbenkiki
Copy link

Shouldn't tasks.format-stable be modified to invoke a simple cargo fmt, using the default rustfmt, now that it is stable at version 1.0.0 as part of the rust 2018 / 1.31.0 release? The current recipe fails since the -write-mode parameter is no longer recognized.

@sagiegurari
Copy link
Owner

true. in the past, they kept changing their cli and were not backward compatible (as you can see).
I'll update the makefile to resolve that.

@sagiegurari sagiegurari self-assigned this Dec 7, 2018
@sagiegurari sagiegurari modified the milestones: 0.15.4, 0.16.0 Dec 7, 2018
@orenbenkiki
Copy link
Author

That was fast! :-)

Yes, invoking rustfmt in CI builds and in general used to be a huge PITA due to the breaking API changes. Happily, these days are finally behind us. I'm going over my old crates and updating them to the new toolchain - e.g., adding check-format and clippy to verify-project. Speaking of which, I had to create the clippy task, it would be nice if it existed by default.

@sagiegurari
Copy link
Owner

clippy already exists.

[tasks.clippy]
description = "Runs clippy code linter."
category = "Test"
install_crate = { crate_name = "clippy", rustup_component_name = "clippy-preview", binary = "cargo-clippy", test_arg = "--help" }
command = "cargo"
args = ["clippy"]

@orenbenkiki
Copy link
Author

Ugh, I missed that. Thanks!

@sagiegurari
Copy link
Owner

pushed to branch 0.16.0 so you can install from that dev branch and test it.

@sagiegurari
Copy link
Owner

release as part of 0.16.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants