fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
59fab4e7
0.6.0
1"""A module is used to assist in bootstrapping cargo-bazel""" 2 3load ( "//cargo:defs.bzl" , "cargo_bootstrap_repository" ) 4load ( "//crate_universe/private:srcs.bzl" , "CARGO_BAZEL_SRCS" ) 5 6# buildifier: disable=bzl-visibility 7load ( "//rust/private:common.bzl" , "rust_common" ) 8 9def cargo_bazel_bootstrap ( name = "cargo_bazel_bootstrap" , rust_version = rust_common . default_version ): 10"""An optional repository which bootstraps `cargo-bazel` for use with `crates_repository` 11 12Args: 13name (str, optional): The name of the `cargo_bootstrap_repository`. 14rust_version (str, optional): The rust version to use. Defaults to the default of `cargo_bootstrap_repository`. 15""" 16cargo_bootstrap_repository ( 17name = name , 18srcs = CARGO_BAZEL_SRCS , 19binary = "cargo-bazel" , 20cargo_lockfile = "@rules_rust//crate_universe:Cargo.lock" , 21cargo_toml = "@rules_rust//crate_universe:Cargo.toml" , 22version = rust_version , 23# The increased timeout helps avoid flakes in CI 24timeout = 900 , 25)