forked from abrisco/cargo-bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE.bazel
104 lines (81 loc) · 2.81 KB
/
WORKSPACE.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
workspace(name = "cargo_bazel")
load("//:deps.bzl", "cargo_bazel_deps")
cargo_bazel_deps()
RUST_VERSION = "1.56.1"
load("@rules_rust//rust:repositories.bzl", "rust_repositories")
rust_repositories(version = RUST_VERSION)
load("//:deps_bootstrap.bzl", "cargo_bazel_bootstrap")
cargo_bazel_bootstrap(rust_version = RUST_VERSION)
load("//:defs.bzl", "crate", "crates_repository")
crates_repository(
name = "crate_index",
extras = {
"chrono-tz": [crate.extras(
build_script_data_glob = ["**/tz/**"],
)],
"crossbeam-utils": [crate.extras(
build_script_data_glob = ["**/*.rs"],
)],
"deunicode": [crate.extras(
compile_data_glob = [
"**/*.txt",
"**/*.bin",
],
)],
"libgit2-sys": [crate.extras(
gen_build_script = False,
deps = ["@libgit2"],
)],
"libz-sys": [crate.extras(
gen_build_script = False,
deps = ["@zlib"],
)],
"tera": [crate.extras(
compile_data_glob = ["**/*.pest"],
)],
"unic-ucd-segment": [crate.extras(
compile_data_glob = ["**/*.rsv"],
)],
"unic-ucd-version": [crate.extras(
compile_data_glob = ["**/*.rsv"],
)],
"unicode-linebreak": [crate.extras(
build_script_data_glob = [
"**/*.rs",
"**/*.txt",
],
)],
},
generator = "@cargo_bazel_bootstrap//:cargo-bazel",
isolated = False,
lockfile = "//:Cargo.Bazel.lock",
manifests = ["//:Cargo.toml"],
)
load("@crate_index//:defs.bzl", "crate_repositories")
crate_repositories()
load("//tools/cross_installer:cross_installer_deps.bzl", "cross_installer_deps")
cross_installer_deps()
###############################################################################
# Load docs dependencies
load("//docs:docs_deps.bzl", "docs_deps")
docs_deps()
load("//docs:docs_deps_transitive.bzl", "docs_deps_transitive")
docs_deps_transitive()
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# For distro archive
http_archive(
name = "rules_pkg",
sha256 = "a89e203d3cf264e564fcb96b6e06dd70bc0557356eb48400ce4b5d97c2c3720d",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.5.1/rules_pkg-0.5.1.tar.gz",
"https://github.com/bazelbuild/rules_pkg/releases/download/0.5.1/rules_pkg-0.5.1.tar.gz",
],
)
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()
# For internal tooling
http_archive(
name = "rules_python",
sha256 = "cd6730ed53a002c56ce4e2f396ba3b3be262fd7cb68339f0377a45e8227fe332",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.5.0/rules_python-0.5.0.tar.gz",
)