blob: 3c23802f9cbbf7526a45f94a2426d1466c1b2d40 [file] [log] [blame]
workspace(name = "io_bazel_rules_rust")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "bazel_skylib",
sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
urls = [
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
],
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
new_git_repository(
name = "libc",
build_file = "@io_bazel_rules_rust//:libc.BUILD",
remote = "https://github.com/rust-lang/libc",
tag = "0.2.20",
)
load("@io_bazel_rules_rust//proto:repositories.bzl", "rust_proto_repositories")
rust_proto_repositories()
load("@io_bazel_rules_rust//bindgen:repositories.bzl", "rust_bindgen_repositories")
rust_bindgen_repositories()
load("@io_bazel_rules_rust//wasm_bindgen:repositories.bzl", "rust_wasm_bindgen_repositories")
rust_wasm_bindgen_repositories()
# --- end stardoc
http_archive(
name = "bazel_toolchains",
sha256 = "d8c2f20deb2f6143bac792d210db1a4872102d81529fe0ea3476c1696addd7ff",
strip_prefix = "bazel-toolchains-0.28.3",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/0.28.3.tar.gz",
"https://github.com/bazelbuild/bazel-toolchains/archive/0.28.3.tar.gz",
],
)
load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
# Creates toolchain configuration for remote execution with BuildKite CI
# for rbe_ubuntu1604
rbe_autoconfig(
name = "buildkite_config",
)
load("@io_bazel_rules_rust//:workspace.bzl", "bazel_version")
bazel_version(name = "bazel_version")
# Load all dependencies for examples
local_repository(
name = "examples",
path = "examples",
)
load("@examples//:examples_repositories.bzl", examples_repositories = "repositories")
examples_repositories()
load("@examples//:examples_deps.bzl", examples_deps = "deps")
examples_deps()
load("@examples//:examples_extra_deps.bzl", examples_extra_deps = "extra_deps")
examples_extra_deps()
load("@examples//hello_sys:workspace.bzl", "remote_deps")
remote_deps()
# Load all dependencies for docs
local_repository(
name = "docs",
path = "docs",
)
load("@docs//:docs_repositories.bzl", docs_repositories = "repositories")
docs_repositories()
load("@docs//:docs_deps.bzl", docs_deps = "deps")
docs_deps(is_top_level = True)