Last active
February 22, 2024 21:02
-
-
Save william-smith-skydio/f7821eb732c539f878fdfb00986230db to your computer and use it in GitHub Desktop.
rules_rust https://github.com/bazelbuild/rules_rust/issues/2510 reproducer
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
build --@rules_rust//:rustc_output_diagnostics=true |
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
7.0.2 |
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
load("@rules_rust//rust:defs.bzl", "rust_test") | |
load("@rules_rust//rust:defs.bzl", "rust_clippy") | |
rust_test( | |
name = "some_test", | |
srcs = ["some_test.rs"], | |
edition = "2021", | |
tags = ["no-sandbox"], | |
) | |
rust_clippy( | |
name = "some_test.clippy", | |
testonly = True, | |
deps = [":some_test"], | |
) |
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
#[test] | |
fn foobar() {} |
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
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |
http_archive( | |
name = "rules_rust", | |
integrity = "sha256-GuRaQT0LlDOYcyDfKtQQ22oV+vtsiM8P0b87qsvoJts=", | |
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.39.0/rules_rust-v0.39.0.tar.gz"], | |
) | |
load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains") | |
rules_rust_dependencies() | |
rust_register_toolchains() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment