Skip to content

Instantly share code, notes, and snippets.

@william-smith-skydio
Last active February 22, 2024 21:02
Show Gist options
  • Save william-smith-skydio/f7821eb732c539f878fdfb00986230db to your computer and use it in GitHub Desktop.
Save william-smith-skydio/f7821eb732c539f878fdfb00986230db to your computer and use it in GitHub Desktop.
build --@rules_rust//:rustc_output_diagnostics=true
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"],
)
#[test]
fn foobar() {}
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