1# Copyright 2022 The Pigweed Authors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); you may not 4# use this file except in compliance with the License. You may obtain a copy of 5# the License at 6# 7# https://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12# License for the specific language governing permissions and limitations under 13# the License. 14 15load("@rules_rust//rust:defs.bzl", "rust_docs") 16load("//pw_build:compatibility.bzl", "incompatible_with_mcu") 17 18rust_docs( 19 name = "docs", 20 21 # These need to be kept in dependency order for inter-crate linking to 22 # work. 23 # 24 # TODO: b/295227522 - Add support to `rust_docs` to automatically processs 25 # crates in topological order. 26 crates = [ 27 "//pw_bytes/rust:pw_bytes", 28 "//pw_format/rust:pw_format_core", 29 "//pw_format/rust:pw_format", 30 "//pw_status/rust:pw_status", 31 "//pw_stream/rust:pw_stream", 32 "//pw_varint/rust:pw_varint", 33 "//pw_tokenizer/rust:pw_tokenizer_core", 34 "//pw_tokenizer/rust:pw_tokenizer", 35 "//pw_log/rust:pw_log_backend_println", 36 "//pw_log/rust:pw_log_backend_printf_docs", 37 "//pw_log/rust:pw_log_backend_api", 38 "//pw_log/rust:pw_log", 39 "//pw_base64/rust:pw_base64", 40 ], 41 target_compatible_with = incompatible_with_mcu(), 42) 43