mirror of https://github.com/bazelbuild/rules_rust
Migrate rules_rust main repository to defs.bzl and smaller rules (#987)
This commit is contained in:
parent
555b521a16
commit
bab14a4751
|
@ -1,5 +1,5 @@
|
|||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
load("//rust:rust.bzl", "rust_binary")
|
||||
load("//rust:defs.bzl", "rust_binary")
|
||||
load(":toolchain.bzl", "rust_proto_toolchain")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
|
|
@ -2,10 +2,7 @@ load(
|
|||
"//cargo:cargo_build_script.bzl",
|
||||
"cargo_build_script",
|
||||
)
|
||||
load(
|
||||
"//rust:rust.bzl",
|
||||
"rust_test",
|
||||
)
|
||||
load("//rust:defs.bzl", "rust_test")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
"""Tests for the cargo_build_script rule"""
|
||||
|
||||
load("//cargo:cargo_build_script.bzl", "cargo_build_script")
|
||||
load("//rust:rust.bzl", "rust_test")
|
||||
load("//rust:defs.bzl", "rust_test")
|
||||
|
||||
# Test that tools are built in the exec configuration.
|
||||
cargo_build_script(
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
load(
|
||||
"//rust:rust.bzl",
|
||||
"rust_doc_test",
|
||||
"rust_library",
|
||||
"rust_test",
|
||||
)
|
||||
load("//rust:defs.bzl", "rust_doc_test", "rust_library", "rust_test")
|
||||
|
||||
rust_library(
|
||||
name = "mod1",
|
||||
|
|
|
@ -1,10 +1,4 @@
|
|||
load(
|
||||
"@rules_rust//rust:rust.bzl",
|
||||
"rust_binary",
|
||||
"rust_clippy",
|
||||
"rust_library",
|
||||
"rust_test",
|
||||
)
|
||||
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_clippy", "rust_library", "rust_test")
|
||||
|
||||
package(default_visibility = ["//test:__subpackages__"])
|
||||
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
load(
|
||||
"//rust:rust.bzl",
|
||||
"rust_library",
|
||||
"rust_test",
|
||||
)
|
||||
load("//rust:defs.bzl", "rust_library", "rust_test")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
load(
|
||||
"//rust:rust.bzl",
|
||||
"rust_library",
|
||||
)
|
||||
load("//rust:defs.bzl", "rust_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
load(
|
||||
"//rust:rust.bzl",
|
||||
"rust_library",
|
||||
)
|
||||
load("//rust:defs.bzl", "rust_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
load(
|
||||
"//rust:rust.bzl",
|
||||
"rust_library",
|
||||
)
|
||||
load("//rust:defs.bzl", "rust_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
load(
|
||||
"//rust:rust.bzl",
|
||||
"rust_library",
|
||||
"rust_test",
|
||||
)
|
||||
load("//rust:defs.bzl", "rust_library", "rust_test")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
load(
|
||||
"//rust:rust.bzl",
|
||||
"rust_library",
|
||||
"rust_test",
|
||||
)
|
||||
load("//rust:defs.bzl", "rust_library", "rust_test")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
load("//cargo:cargo_build_script.bzl", "cargo_build_script")
|
||||
load("//rust:defs.bzl", "rust_test_suite")
|
||||
load(
|
||||
"//rust:rust.bzl",
|
||||
"rust_library",
|
||||
"rust_test",
|
||||
)
|
||||
load("//rust:defs.bzl", "rust_library", "rust_test", "rust_test_suite")
|
||||
|
||||
cargo_build_script(
|
||||
name = "build_script",
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
load(
|
||||
"//rust:rust.bzl",
|
||||
"rust_library",
|
||||
"rust_test",
|
||||
)
|
||||
load("//rust:defs.bzl", "rust_library", "rust_test")
|
||||
|
||||
rust_library(
|
||||
name = "mod1",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library")
|
||||
load("//rust:defs.bzl", "rust_binary", "rust_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
load(
|
||||
"@rules_rust//rust:rust.bzl",
|
||||
"rust_binary",
|
||||
)
|
||||
load("//rust:defs.bzl", "rust_binary")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
load(
|
||||
"//rust:rust.bzl",
|
||||
"rust_binary",
|
||||
"rust_test",
|
||||
)
|
||||
load("//rust:defs.bzl", "rust_binary", "rust_test")
|
||||
|
||||
rust_binary(
|
||||
name = "hello-world",
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
load(
|
||||
"//rust:rust.bzl",
|
||||
"rust_binary",
|
||||
"rust_test",
|
||||
)
|
||||
load("//rust:defs.bzl", "rust_binary", "rust_test")
|
||||
|
||||
rust_binary(
|
||||
name = "hello-world",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
load("//cargo:cargo_build_script.bzl", "cargo_build_script")
|
||||
load("//rust:rust.bzl", "rust_binary", "rust_library")
|
||||
load("//rust:defs.bzl", "rust_binary", "rust_library")
|
||||
|
||||
# sets link alias
|
||||
cargo_build_script(
|
||||
|
@ -13,7 +13,6 @@ cargo_build_script(
|
|||
rust_library(
|
||||
name = "dll_user",
|
||||
srcs = ["dll_user.rs"],
|
||||
crate_type = "lib",
|
||||
edition = "2018",
|
||||
deps = [
|
||||
":buildscript",
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
load(
|
||||
"//rust:rust.bzl",
|
||||
"rust_binary",
|
||||
"rust_test",
|
||||
)
|
||||
load("//rust:defs.bzl", "rust_binary", "rust_test")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
load("//rust:rust.bzl", "rust_binary")
|
||||
load("//rust:defs.bzl", "rust_binary")
|
||||
|
||||
rust_binary(
|
||||
name = "dir_zipper",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
load("//rust:rust.bzl", "rust_library", "rust_test")
|
||||
load("//rust:defs.bzl", "rust_library", "rust_test")
|
||||
|
||||
rust_library(
|
||||
name = "label",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
load("//rust:rust.bzl", "rust_binary")
|
||||
load("//rust:defs.bzl", "rust_binary")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
|
|
Loading…
Reference in New Issue