Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 1 | workspace(name = "ios_examples") |
| 2 | |
| 3 | # Users of `rules_rust` will commonly be unable to load it |
| 4 | # using a `local_repository`. Instead, to setup the rules, |
| 5 | # please see https://bazelbuild.github.io/rules_rust/#setup |
| 6 | local_repository( |
| 7 | name = "rules_rust", |
| 8 | path = "../..", |
| 9 | ) |
| 10 | |
| 11 | load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains") |
| 12 | |
| 13 | rules_rust_dependencies() |
| 14 | |
| 15 | rust_register_toolchains( |
| 16 | edition = "2018", |
| 17 | extra_target_triples = [ |
| 18 | "aarch64-apple-ios-sim", |
| 19 | "x86_64-apple-ios", |
| 20 | ], |
| 21 | ) |
| 22 | |
| 23 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 24 | |
| 25 | http_archive( |
| 26 | name = "build_bazel_rules_apple", |
| 27 | sha256 = "a6141240657093fa7ccc7ca1ee5a62408dd9996d1bf47bc2369b8b9faefb2698", |
| 28 | url = "https://github.com/bazelbuild/rules_apple/releases/download/2.3.0/rules_apple.2.3.0.tar.gz", |
| 29 | ) |
| 30 | |
| 31 | load( |
| 32 | "@build_bazel_rules_apple//apple:repositories.bzl", |
| 33 | "apple_rules_dependencies", |
| 34 | ) |
| 35 | |
| 36 | apple_rules_dependencies() |
| 37 | |
| 38 | load( |
| 39 | "@build_bazel_rules_swift//swift:repositories.bzl", |
| 40 | "swift_rules_dependencies", |
| 41 | ) |
| 42 | |
| 43 | swift_rules_dependencies() |
| 44 | |
| 45 | load( |
| 46 | "@build_bazel_apple_support//lib:repositories.bzl", |
| 47 | "apple_support_dependencies", |
| 48 | ) |
| 49 | |
| 50 | apple_support_dependencies() |