fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
adc80a30
0.8.1
1"""A module defining dependencies of the `cargo-bazel` Rust target""" 2 3load ( "@rules_rust//rust:defs.bzl" , "rust_common" ) 4load ( "//crate_universe:deps_bootstrap.bzl" , "cargo_bazel_bootstrap" ) 5load ( "//crate_universe/3rdparty:third_party_deps.bzl" , "third_party_deps" ) 6load ( "//crate_universe/3rdparty/crates:crates.bzl" , _vendor_crate_repositories = "crate_repositories" ) 7load ( "//crate_universe/private:vendor_utils.bzl" , "crates_vendor_deps" ) 8load ( "//crate_universe/tools/cross_installer:cross_installer_deps.bzl" , "cross_installer_deps" ) 9 10def crate_universe_dependencies ( rust_version = rust_common . default_version , bootstrap = False ): 11"""Define dependencies of the `cargo-bazel` Rust target 12 13Args: 14rust_version (str, optional): The version of rust to use when generating dependencies. 15bootstrap (bool, optional): If true, a `cargo_bootstrap_repository` target will be generated. 16""" 17third_party_deps () 18 19if bootstrap : 20cargo_bazel_bootstrap ( rust_version = rust_version ) 21 22_vendor_crate_repositories () 23 24crates_vendor_deps () 25cross_installer_deps ()