forked from lowRISC/opentitan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
45 lines (38 loc) · 1.05 KB
/
BUILD.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
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
load("//rules:cargo.bzl", "cargo_raze")
load("@rules_rust//rust:defs.bzl", "rust_analyzer")
package(default_visibility = ["//visibility:public"])
exports_files([
"WORKSPACE",
"python-requirements.txt",
])
filegroup(
name = "cores",
srcs = [
"check_tool_requirements.core",
"topgen.core",
"topgen-reg-only.core",
],
)
alias(
name = "gen_rust_project",
actual = "@rules_rust//tools/rust_analyzer:gen_rust_project",
)
# Do not use directly, run `:gen_rust_project` instead.
rust_analyzer(
name = "rust_analyzer",
targets = [
"//sw/host/opentitanlib:opentitanlib",
"//sw/host/opentitanlib/opentitantool_derive:opentitantool_derive",
"//sw/host/opentitansession:opentitansession",
"//sw/host/opentitantool:opentitantool",
],
)
cargo_raze(
name = "cargo_raze",
cargo = [
"third_party/rust/crates/Cargo.toml",
],
)