forked from bazelbuild/rules_rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update clippy and rustfmt aspects to require CrateInfo providers (baz…
…elbuild#1772) * Update clippy and rustfmt aspects to require CrateInfo providers * Updated rustfmt rules to work with `rust_shared/static_library` * Regenerate documentation
- Loading branch information
1 parent
8556420
commit 49906eb
Showing
13 changed files
with
226 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,9 @@ | ||
load("@rules_rust//rust:defs.bzl", "rust_binary", "rustfmt_test") | ||
load(":rustfmt_integration_test_suite.bzl", "rustfmt_integration_test_suite") | ||
|
||
exports_files([ | ||
"test_rustfmt.toml", | ||
]) | ||
|
||
rust_binary( | ||
name = "formatted_2018", | ||
srcs = ["srcs/2018/formatted.rs"], | ||
edition = "2018", | ||
) | ||
|
||
rustfmt_test( | ||
name = "test_formatted_2018", | ||
targets = [":formatted_2018"], | ||
) | ||
|
||
rust_binary( | ||
name = "unformatted_2018", | ||
srcs = ["srcs/2018/unformatted.rs"], | ||
edition = "2018", | ||
tags = ["norustfmt"], | ||
) | ||
|
||
rustfmt_test( | ||
name = "test_unformatted_2018", | ||
tags = ["manual"], | ||
targets = [":unformatted_2018"], | ||
) | ||
|
||
rust_binary( | ||
name = "formatted_2015", | ||
srcs = ["srcs/2015/formatted.rs"], | ||
edition = "2015", | ||
) | ||
|
||
rustfmt_test( | ||
name = "test_formatted_2015", | ||
targets = [":formatted_2015"], | ||
) | ||
|
||
rust_binary( | ||
name = "unformatted_2015", | ||
srcs = ["srcs/2015/unformatted.rs"], | ||
edition = "2015", | ||
tags = ["norustfmt"], | ||
) | ||
|
||
rustfmt_test( | ||
name = "test_unformatted_2015", | ||
tags = ["manual"], | ||
targets = [":unformatted_2015"], | ||
) | ||
|
||
sh_binary( | ||
name = "test_runner", | ||
srcs = ["rustfmt_failure_test.sh"], | ||
rustfmt_integration_test_suite( | ||
name = "rustfmt_integration_test_suite", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.