1*d4726bddSHONG Yifan############################################################################### 2*d4726bddSHONG Yifan# @generated 3*d4726bddSHONG Yifan# This file is auto-generated by the cargo-bazel tool. 4*d4726bddSHONG Yifan# 5*d4726bddSHONG Yifan# DO NOT MODIFY: Local changes may be replaced in future executions. 6*d4726bddSHONG Yifan############################################################################### 7*d4726bddSHONG Yifan"""Rules for defining repositories for remote `crates_vendor` repositories""" 8*d4726bddSHONG Yifan 9*d4726bddSHONG Yifanload("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") 10*d4726bddSHONG Yifan 11*d4726bddSHONG Yifan# buildifier: disable=bzl-visibility 12*d4726bddSHONG Yifanload("@rules_rust//bindgen/3rdparty/crates:defs.bzl", _crate_repositories = "crate_repositories") 13*d4726bddSHONG Yifan 14*d4726bddSHONG Yifan# buildifier: disable=bzl-visibility 15*d4726bddSHONG Yifanload("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") 16*d4726bddSHONG Yifan 17*d4726bddSHONG Yifandef crate_repositories(): 18*d4726bddSHONG Yifan """Generates repositories for vendored crates. 19*d4726bddSHONG Yifan 20*d4726bddSHONG Yifan Returns: 21*d4726bddSHONG Yifan A list of repos visible to the module through the module extension. 22*d4726bddSHONG Yifan """ 23*d4726bddSHONG Yifan maybe( 24*d4726bddSHONG Yifan crates_vendor_remote_repository, 25*d4726bddSHONG Yifan name = "rules_rust_bindgen", 26*d4726bddSHONG Yifan build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.bazel"), 27*d4726bddSHONG Yifan defs_module = Label("@rules_rust//bindgen/3rdparty/crates:defs.bzl"), 28*d4726bddSHONG Yifan ) 29*d4726bddSHONG Yifan 30*d4726bddSHONG Yifan direct_deps = [struct(repo = "rules_rust_bindgen", is_dev_dep = False)] 31*d4726bddSHONG Yifan direct_deps.extend(_crate_repositories()) 32*d4726bddSHONG Yifan return direct_deps 33