Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 1 | workspace(name = "rules_rust_examples_ios_build") |
| 2 | |
| 3 | local_repository( |
| 4 | name = "rules_rust", |
| 5 | path = "../../", |
| 6 | ) |
| 7 | |
| 8 | load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains") |
| 9 | |
| 10 | rules_rust_dependencies() |
| 11 | |
| 12 | rust_register_toolchains( |
| 13 | edition = "2018", |
| 14 | extra_target_triples = [ |
| 15 | "aarch64-apple-ios-sim", |
| 16 | "x86_64-apple-ios", |
| 17 | ], |
| 18 | ) |
| 19 | |
| 20 | load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies") |
| 21 | |
| 22 | crate_universe_dependencies(bootstrap = True) |
| 23 | |
| 24 | load( |
| 25 | "//3rdparty/crates:crates.bzl", |
| 26 | ios_build_crate_repositories = "crate_repositories", |
| 27 | ) |
| 28 | |
| 29 | ios_build_crate_repositories() |
| 30 | |
| 31 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 32 | |
| 33 | # Used for Bazel CI |
| 34 | http_archive( |
| 35 | name = "bazelci_rules", |
| 36 | sha256 = "eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e", |
| 37 | strip_prefix = "bazelci_rules-1.0.0", |
| 38 | url = "https://github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz", |
| 39 | ) |
| 40 | |
| 41 | load("@bazelci_rules//:rbe_repo.bzl", "rbe_preconfig") |
| 42 | |
| 43 | # Creates a default toolchain config for RBE. |
| 44 | # Use this as is if you are using the rbe_ubuntu16_04 container, |
| 45 | # otherwise refer to RBE docs. |
| 46 | rbe_preconfig( |
| 47 | name = "buildkite_config", |
| 48 | toolchain = "ubuntu1804-bazel-java11", |
| 49 | ) |
| 50 | |
| 51 | load( |
| 52 | "@build_bazel_apple_support//lib:repositories.bzl", |
| 53 | "apple_support_dependencies", |
| 54 | ) |
| 55 | |
| 56 | apple_support_dependencies() |