Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 1 | # Copyright lowRISC contributors. |
| 2 | # Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | |
Alexander Williams | 0496998 | 2022-06-10 09:09:01 -0700 | [diff] [blame] | 5 | load("@rules_rust//rust:defs.bzl", "rust_doc", "rust_library", "rust_test") |
Chris Frantz | a941319 | 2022-08-04 21:03:00 -0700 | [diff] [blame] | 6 | load("//rules:ujson.bzl", "ujson_rust") |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 7 | |
| 8 | package(default_visibility = ["//visibility:public"]) |
| 9 | |
Chris Frantz | a941319 | 2022-08-04 21:03:00 -0700 | [diff] [blame] | 10 | ujson_rust( |
| 11 | name = "e2e_command", |
Chris Frantz | 3f69969 | 2022-09-30 12:42:22 -0700 | [diff] [blame] | 12 | srcs = ["//sw/device/lib/testing/json:command"], |
Chris Frantz | a941319 | 2022-08-04 21:03:00 -0700 | [diff] [blame] | 13 | defines = ["opentitanlib=crate"], |
| 14 | ) |
| 15 | |
Chris Frantz | b0db1f5 | 2022-10-04 17:55:11 -0700 | [diff] [blame] | 16 | ujson_rust( |
| 17 | name = "gpio", |
| 18 | srcs = ["//sw/device/lib/testing/json:gpio"], |
| 19 | defines = ["opentitanlib=crate"], |
| 20 | ) |
| 21 | |
| 22 | ujson_rust( |
| 23 | name = "pinmux_config", |
| 24 | srcs = ["//sw/device/lib/testing/json:pinmux_config"], |
| 25 | defines = ["opentitanlib=crate"], |
| 26 | ) |
| 27 | |
Chris Frantz | d220d02 | 2023-03-02 15:14:21 +0000 | [diff] [blame] | 28 | ujson_rust( |
| 29 | name = "spi_passthru", |
| 30 | srcs = ["//sw/device/lib/testing/json:spi_passthru"], |
| 31 | defines = ["opentitanlib=crate"], |
| 32 | ) |
| 33 | |
Chris Frantz | 53b4a1e | 2022-07-29 14:21:19 -0700 | [diff] [blame] | 34 | filegroup( |
| 35 | name = "config", |
| 36 | srcs = glob(["src/app/config/*.json"]), |
| 37 | ) |
| 38 | |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 39 | rust_library( |
| 40 | name = "opentitanlib", |
| 41 | srcs = [ |
| 42 | "src/app/command.rs", |
Chris Frantz | 53b4a1e | 2022-07-29 14:21:19 -0700 | [diff] [blame] | 43 | "src/app/config/mod.rs", |
| 44 | "src/app/config/structs.rs", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 45 | "src/app/mod.rs", |
Jes B. Klinke | 3f05591 | 2022-02-11 10:49:35 -0800 | [diff] [blame] | 46 | "src/backend/cw310.rs", |
| 47 | "src/backend/hyperdebug.rs", |
| 48 | "src/backend/mod.rs", |
Jes B. Klinke | 426665c | 2022-02-18 12:01:26 -0800 | [diff] [blame] | 49 | "src/backend/proxy.rs", |
Michał Mazurek | e60214b | 2022-03-31 17:10:53 +0200 | [diff] [blame] | 50 | "src/backend/ti50emulator.rs", |
Jes B. Klinke | 3f05591 | 2022-02-11 10:49:35 -0800 | [diff] [blame] | 51 | "src/backend/ultradebug.rs", |
| 52 | "src/backend/verilator.rs", |
Chris Frantz | cfc6ac6 | 2022-04-27 19:46:45 -0700 | [diff] [blame] | 53 | "src/bootstrap/eeprom.rs", |
Chris Frantz | 0b548fa | 2021-11-22 14:08:11 -0800 | [diff] [blame] | 54 | "src/bootstrap/legacy.rs", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 55 | "src/bootstrap/mod.rs", |
| 56 | "src/bootstrap/primitive.rs", |
Jes B. Klinke | a948fc3 | 2022-01-25 15:44:27 -0800 | [diff] [blame] | 57 | "src/bootstrap/rescue.rs", |
Chris Frantz | 5093115 | 2022-09-01 00:52:57 +0000 | [diff] [blame] | 58 | "src/chip/alert.rs", |
| 59 | "src/chip/boolean.rs", |
| 60 | "src/chip/mod.rs", |
Alphan Ulusoy | 968524e | 2022-01-10 16:20:20 -0500 | [diff] [blame] | 61 | "src/crypto/mod.rs", |
Jon Flatley | 2f90f92 | 2022-01-11 15:08:04 -0500 | [diff] [blame] | 62 | "src/crypto/rsa.rs", |
Alphan Ulusoy | 968524e | 2022-01-10 16:20:20 -0500 | [diff] [blame] | 63 | "src/crypto/sha256.rs", |
Chris Frantz | b1c5710 | 2022-10-20 14:43:33 -0700 | [diff] [blame] | 64 | "src/dif/lc_ctrl.rs", |
Dan McArdle | ce67558 | 2023-01-03 15:30:06 -0500 | [diff] [blame] | 65 | "src/dif/rstmgr.rs", |
Chris Frantz | b1c5710 | 2022-10-20 14:43:33 -0700 | [diff] [blame] | 66 | "src/dif/mod.rs", |
Jon Flatley | 6676995 | 2022-01-25 10:50:21 -0500 | [diff] [blame] | 67 | "src/image/image.rs", |
| 68 | "src/image/manifest.rs", |
| 69 | "src/image/manifest_def.rs", |
| 70 | "src/image/mod.rs", |
Timothy Trippel | 841959f | 2022-03-21 17:01:00 -0700 | [diff] [blame] | 71 | "src/io/emu.rs", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 72 | "src/io/gpio.rs", |
Drew Macrae | feec67e | 2022-01-26 13:05:12 -0800 | [diff] [blame] | 73 | "src/io/i2c.rs", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 74 | "src/io/mod.rs", |
| 75 | "src/io/spi.rs", |
| 76 | "src/io/uart.rs", |
| 77 | "src/lib.rs", |
Jon Flatley | 3a344e9 | 2022-08-18 16:30:54 -0400 | [diff] [blame] | 78 | "src/otp/alert_handler.rs", |
| 79 | "src/otp/alert_handler_regs.rs", |
Jon Flatley | 48f64de | 2022-01-06 09:53:40 -0500 | [diff] [blame] | 80 | "src/otp/lc_state.rs", |
| 81 | "src/otp/mod.rs", |
Jon Flatley | 48f64de | 2022-01-06 09:53:40 -0500 | [diff] [blame] | 82 | "src/otp/otp_img.rs", |
Chris Frantz | a4008df | 2022-04-14 18:15:50 -0700 | [diff] [blame] | 83 | "src/proxy/errors.rs", |
Jes B. Klinke | 9f70b8c | 2022-02-18 12:07:22 -0800 | [diff] [blame] | 84 | "src/proxy/handler.rs", |
Michał Mazurek | 50a7588 | 2022-02-15 21:22:31 +0100 | [diff] [blame] | 85 | "src/proxy/mod.rs", |
| 86 | "src/proxy/protocol.rs", |
Timothy Trippel | 841959f | 2022-03-21 17:01:00 -0700 | [diff] [blame] | 87 | "src/proxy/socket_server.rs", |
| 88 | "src/spiflash/flash.rs", |
| 89 | "src/spiflash/mod.rs", |
| 90 | "src/spiflash/sfdp.rs", |
Miles Dai | dc38005 | 2022-07-21 12:56:51 -0400 | [diff] [blame] | 91 | "src/test_utils/bootstrap.rs", |
Chris Frantz | a941319 | 2022-08-04 21:03:00 -0700 | [diff] [blame] | 92 | "src/test_utils/e2e_command.rs", |
Chris Frantz | ac63faf | 2022-10-20 14:35:54 -0700 | [diff] [blame] | 93 | "src/test_utils/epmp.rs", |
Chris Frantz | b0db1f5 | 2022-10-04 17:55:11 -0700 | [diff] [blame] | 94 | "src/test_utils/gpio.rs", |
Chris Frantz | d220d02 | 2023-03-02 15:14:21 +0000 | [diff] [blame] | 95 | "src/test_utils/spi_passthru.rs", |
Miles Dai | dc38005 | 2022-07-21 12:56:51 -0400 | [diff] [blame] | 96 | "src/test_utils/init.rs", |
| 97 | "src/test_utils/load_bitstream.rs", |
| 98 | "src/test_utils/mod.rs", |
Chris Frantz | 54ec457 | 2022-08-04 21:01:05 -0700 | [diff] [blame] | 99 | "src/test_utils/rpc.rs", |
Chris Frantz | 3215669 | 2022-06-21 22:03:26 -0700 | [diff] [blame] | 100 | "src/test_utils/status.rs", |
Brian Granaghan | 4012e16 | 2022-12-07 20:26:27 +0000 | [diff] [blame] | 101 | "src/tpm/access.rs", |
Jes B. Klinke | cae4c4c | 2022-05-24 16:33:02 -0700 | [diff] [blame] | 102 | "src/tpm/driver.rs", |
| 103 | "src/tpm/mod.rs", |
Brian Granaghan | 4012e16 | 2022-12-07 20:26:27 +0000 | [diff] [blame] | 104 | "src/tpm/status.rs", |
Jes B. Klinke | 6aad69a | 2022-02-15 10:36:40 -0800 | [diff] [blame] | 105 | "src/transport/common/mod.rs", |
Chris Frantz | 37ce1ee | 2023-02-28 00:28:48 +0000 | [diff] [blame] | 106 | "src/transport/common/fpga.rs", |
Jes B. Klinke | 6aad69a | 2022-02-15 10:36:40 -0800 | [diff] [blame] | 107 | "src/transport/common/uart.rs", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 108 | "src/transport/cw310/gpio.rs", |
| 109 | "src/transport/cw310/mod.rs", |
| 110 | "src/transport/cw310/spi.rs", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 111 | "src/transport/cw310/usb.rs", |
Jes B. Klinke | 6aad69a | 2022-02-15 10:36:40 -0800 | [diff] [blame] | 112 | "src/transport/errors.rs", |
Jes B. Klinke | c571bde | 2022-02-02 14:51:54 -0800 | [diff] [blame] | 113 | "src/transport/hyperdebug/c2d2.rs", |
Jes B. Klinke | 3a7f942 | 2023-01-19 12:43:34 -0800 | [diff] [blame] | 114 | "src/transport/hyperdebug/dfu.rs", |
Jes B. Klinke | 4a932b2 | 2021-10-06 14:31:17 -0700 | [diff] [blame] | 115 | "src/transport/hyperdebug/gpio.rs", |
Drew Macrae | feec67e | 2022-01-26 13:05:12 -0800 | [diff] [blame] | 116 | "src/transport/hyperdebug/i2c.rs", |
Jes B. Klinke | 4a932b2 | 2021-10-06 14:31:17 -0700 | [diff] [blame] | 117 | "src/transport/hyperdebug/mod.rs", |
| 118 | "src/transport/hyperdebug/spi.rs", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 119 | "src/transport/mod.rs", |
Michał Mazurek | 42d224b | 2022-06-13 14:38:47 +0200 | [diff] [blame] | 120 | "src/transport/proxy/emu.rs", |
Jes B. Klinke | 426665c | 2022-02-18 12:01:26 -0800 | [diff] [blame] | 121 | "src/transport/proxy/gpio.rs", |
| 122 | "src/transport/proxy/i2c.rs", |
| 123 | "src/transport/proxy/mod.rs", |
| 124 | "src/transport/proxy/spi.rs", |
| 125 | "src/transport/proxy/uart.rs", |
Michał Mazurek | e60214b | 2022-03-31 17:10:53 +0200 | [diff] [blame] | 126 | "src/transport/ti50emulator/emu.rs", |
| 127 | "src/transport/ti50emulator/gpio.rs", |
| 128 | "src/transport/ti50emulator/i2c.rs", |
| 129 | "src/transport/ti50emulator/mod.rs", |
| 130 | "src/transport/ti50emulator/spi.rs", |
| 131 | "src/transport/ti50emulator/uart.rs", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 132 | "src/transport/ultradebug/gpio.rs", |
| 133 | "src/transport/ultradebug/mod.rs", |
| 134 | "src/transport/ultradebug/mpsse.rs", |
| 135 | "src/transport/ultradebug/spi.rs", |
| 136 | "src/transport/ultradebug/uart.rs", |
| 137 | "src/transport/verilator/mod.rs", |
Chris Frantz | 5fafe01 | 2022-09-26 17:57:10 -0700 | [diff] [blame] | 138 | "src/transport/verilator/gpio.rs", |
Chris Frantz | 2fb6d64 | 2022-05-11 13:30:05 -0700 | [diff] [blame] | 139 | "src/transport/verilator/stdout.rs", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 140 | "src/transport/verilator/subprocess.rs", |
| 141 | "src/transport/verilator/transport.rs", |
| 142 | "src/transport/verilator/uart.rs", |
Chris Frantz | 6c93ea7 | 2022-04-11 11:54:51 -0700 | [diff] [blame] | 143 | "src/uart/console.rs", |
| 144 | "src/uart/mod.rs", |
Alphan Ulusoy | 011a908 | 2022-01-05 10:32:47 -0500 | [diff] [blame] | 145 | "src/util/bigint.rs", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 146 | "src/util/bitfield.rs", |
| 147 | "src/util/file.rs", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 148 | "src/util/mod.rs", |
Jes B. Klinke | 356f07b | 2023-02-16 14:13:22 -0800 | [diff] [blame] | 149 | "src/util/nix.rs", |
Jon Flatley | 68e7dfd | 2022-01-31 11:26:57 -0500 | [diff] [blame] | 150 | "src/util/num_de.rs", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 151 | "src/util/parse_int.rs", |
Jon Flatley | 48f64de | 2022-01-06 09:53:40 -0500 | [diff] [blame] | 152 | "src/util/present.rs", |
Chris Frantz | d799b32 | 2022-04-13 12:02:04 -0700 | [diff] [blame] | 153 | "src/util/rom_detect.rs", |
Chris Frantz | ce4e1f0 | 2022-08-22 21:39:39 -0700 | [diff] [blame] | 154 | "src/util/unknown.rs", |
Jes B. Klinke | ce2fecc | 2021-11-05 09:40:38 -0700 | [diff] [blame] | 155 | "src/util/usb.rs", |
Alphan Ulusoy | 906e260 | 2022-09-12 06:17:47 -0400 | [diff] [blame] | 156 | "src/util/usr_access.rs", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 157 | "src/util/voltage.rs", |
Chris Frantz | 5093115 | 2022-09-01 00:52:57 +0000 | [diff] [blame] | 158 | ] + select({ |
| 159 | "//sw/device:is_english_breakfast": [], |
| 160 | "//conditions:default": [ |
| 161 | "src/chip/earlgrey.rs", |
Chris Frantz | b0db1f5 | 2022-10-04 17:55:11 -0700 | [diff] [blame] | 162 | "src/test_utils/pinmux_config.rs", |
Chris Frantz | 5093115 | 2022-09-01 00:52:57 +0000 | [diff] [blame] | 163 | ], |
| 164 | }), |
Chris Frantz | 53b4a1e | 2022-07-29 14:21:19 -0700 | [diff] [blame] | 165 | compile_data = [ |
| 166 | ":config", |
Chris Frantz | b0db1f5 | 2022-10-04 17:55:11 -0700 | [diff] [blame] | 167 | ":gpio", |
Chris Frantz | a941319 | 2022-08-04 21:03:00 -0700 | [diff] [blame] | 168 | ":e2e_command", |
Chris Frantz | b0db1f5 | 2022-10-04 17:55:11 -0700 | [diff] [blame] | 169 | ":pinmux_config", |
Chris Frantz | d220d02 | 2023-03-02 15:14:21 +0000 | [diff] [blame] | 170 | ":spi_passthru", |
Jes B. Klinke | 3a7f942 | 2023-01-19 12:43:34 -0800 | [diff] [blame] | 171 | "@hyperdebug_firmware//file", |
Chris Frantz | 53b4a1e | 2022-07-29 14:21:19 -0700 | [diff] [blame] | 172 | ], |
Jes B. Klinke | 3a7f942 | 2023-01-19 12:43:34 -0800 | [diff] [blame] | 173 | crate_features = [ |
| 174 | "include_hyperdebug_firmware", |
| 175 | ] + select({ |
Chris Frantz | 5093115 | 2022-09-01 00:52:57 +0000 | [diff] [blame] | 176 | "//sw/device:is_english_breakfast": ["english_breakfast"], |
| 177 | "//conditions:default": [], |
| 178 | }), |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 179 | proc_macro_deps = [ |
| 180 | "//sw/host/opentitanlib/opentitantool_derive", |
Chris Frantz | 9559402 | 2023-02-13 17:59:54 +0000 | [diff] [blame] | 181 | "@crate_index//:serde_derive", |
| 182 | "@lowrisc_serde_annotate//annotate_derive:annotate_derive", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 183 | ], |
Chris Frantz | a941319 | 2022-08-04 21:03:00 -0700 | [diff] [blame] | 184 | rustc_env = { |
| 185 | "e2e_command": "$(location :e2e_command)", |
Chris Frantz | b0db1f5 | 2022-10-04 17:55:11 -0700 | [diff] [blame] | 186 | "gpio": "$(location :gpio)", |
| 187 | "pinmux_config": "$(location :pinmux_config)", |
Chris Frantz | d220d02 | 2023-03-02 15:14:21 +0000 | [diff] [blame] | 188 | "spi_passthru": "$(location :spi_passthru)", |
Jes B. Klinke | 3a7f942 | 2023-01-19 12:43:34 -0800 | [diff] [blame] | 189 | "hyperdebug_firmware": "$(location @hyperdebug_firmware//file)", |
Chris Frantz | a941319 | 2022-08-04 21:03:00 -0700 | [diff] [blame] | 190 | }, |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 191 | deps = [ |
Chris Frantz | 5093115 | 2022-09-01 00:52:57 +0000 | [diff] [blame] | 192 | "//sw/host/opentitanlib/bindgen", |
Chris Frantz | 1a6f700 | 2023-02-14 20:14:11 +0000 | [diff] [blame] | 193 | "@crate_index//:anyhow", |
Chris Frantz | da46e84 | 2023-03-06 19:22:49 +0000 | [diff] [blame] | 194 | "@crate_index//:arrayvec", |
Chris Frantz | 1a6f700 | 2023-02-14 20:14:11 +0000 | [diff] [blame] | 195 | "@crate_index//:bitflags", |
| 196 | "@crate_index//:bitvec", |
| 197 | "@crate_index//:byteorder", |
| 198 | "@crate_index//:chrono", |
| 199 | "@crate_index//:crc", |
| 200 | "@crate_index//:deser-hjson", |
| 201 | "@crate_index//:directories", |
| 202 | "@crate_index//:env_logger", |
| 203 | "@crate_index//:erased-serde", |
| 204 | "@crate_index//:hex", |
| 205 | "@crate_index//:humantime", |
| 206 | "@crate_index//:humantime-serde", |
| 207 | "@crate_index//:indicatif", |
| 208 | "@crate_index//:lazy_static", |
| 209 | "@crate_index//:log", |
| 210 | "@crate_index//:memoffset", |
| 211 | "@crate_index//:mio", |
| 212 | "@crate_index//:mio-signals", |
| 213 | "@crate_index//:nix", |
| 214 | "@crate_index//:num-bigint-dig", |
| 215 | "@crate_index//:num-traits", |
| 216 | "@crate_index//:num_enum", |
| 217 | "@crate_index//:rand", |
| 218 | "@crate_index//:raw_tty", |
| 219 | "@crate_index//:regex", |
| 220 | "@crate_index//:rsa", |
| 221 | "@crate_index//:rusb", |
| 222 | "@crate_index//:serde", |
| 223 | "@crate_index//:serde_json", |
| 224 | "@crate_index//:serialport", |
| 225 | "@crate_index//:sha2", |
| 226 | "@crate_index//:shellwords", |
| 227 | "@crate_index//:structopt", |
| 228 | "@crate_index//:thiserror", |
| 229 | "@crate_index//:typetag", |
| 230 | "@crate_index//:zerocopy", |
Chris Frantz | 9559402 | 2023-02-13 17:59:54 +0000 | [diff] [blame] | 231 | "@lowrisc_safe_ftdi//:safe_ftdi", |
| 232 | "@lowrisc_serde_annotate//:serde_annotate", |
Miguel Young de la Sota | 4e08b95 | 2022-04-11 11:26:30 -0400 | [diff] [blame] | 233 | ], |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 234 | ) |
| 235 | |
| 236 | rust_test( |
| 237 | name = "opentitanlib_test", |
| 238 | compile_data = [ |
Chris Frantz | 617a406 | 2022-08-15 22:01:20 -0700 | [diff] [blame] | 239 | ":e2e_command", |
Chris Frantz | b0db1f5 | 2022-10-04 17:55:11 -0700 | [diff] [blame] | 240 | ":gpio", |
| 241 | ":pinmux_config", |
Jes B. Klinke | 3a7f942 | 2023-01-19 12:43:34 -0800 | [diff] [blame] | 242 | "@hyperdebug_firmware//file", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 243 | "src/bootstrap/simple.bin", |
| 244 | "src/spiflash/SFDP_MX66L1G.bin", |
| 245 | ], |
| 246 | crate = ":opentitanlib", |
| 247 | data = [ |
Jon Flatley | 6676995 | 2022-01-25 10:50:21 -0500 | [diff] [blame] | 248 | "src/image/testdata/hello.txt", |
| 249 | "src/image/testdata/manifest.hjson", |
Jon Flatley | d9a7c02 | 2022-05-24 10:44:29 -0400 | [diff] [blame] | 250 | "src/image/testdata/manifest_missing.hjson", |
Jon Flatley | e6b98b8 | 2022-04-26 11:23:24 -0400 | [diff] [blame] | 251 | "src/image/testdata/test_image.bin", |
Jon Flatley | 6676995 | 2022-01-25 10:50:21 -0500 | [diff] [blame] | 252 | "src/image/testdata/world.txt", |
Jon Flatley | abf1af6 | 2022-01-28 13:38:00 -0500 | [diff] [blame] | 253 | "src/otp/testdata/lc_ctrl_state.hjson", |
| 254 | "src/otp/testdata/otp_ctrl_img_dev.hjson", |
| 255 | "src/otp/testdata/otp_ctrl_mmap.hjson", |
| 256 | "src/otp/testdata/output.vmem", |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 257 | ], |
Chris Frantz | 617a406 | 2022-08-15 22:01:20 -0700 | [diff] [blame] | 258 | rustc_env = { |
| 259 | "e2e_command": "$(location :e2e_command)", |
Chris Frantz | b0db1f5 | 2022-10-04 17:55:11 -0700 | [diff] [blame] | 260 | "gpio": "$(location :gpio)", |
| 261 | "pinmux_config": "$(location :pinmux_config)", |
Chris Frantz | 617a406 | 2022-08-15 22:01:20 -0700 | [diff] [blame] | 262 | }, |
Chris Frantz | 903bcec | 2021-11-09 16:43:29 -0800 | [diff] [blame] | 263 | ) |
Alexander Williams | 0496998 | 2022-06-10 09:09:01 -0700 | [diff] [blame] | 264 | |
| 265 | rust_doc( |
| 266 | name = "opentitanlib_doc", |
| 267 | crate = ":opentitanlib", |
| 268 | ) |