| workspace(name = "ios_examples") |
| |
| # Users of `rules_rust` will commonly be unable to load it |
| # using a `local_repository`. Instead, to setup the rules, |
| # please see https://bazelbuild.github.io/rules_rust/#setup |
| local_repository( |
| name = "rules_rust", |
| path = "../..", |
| ) |
| |
| load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains") |
| |
| rules_rust_dependencies() |
| |
| rust_register_toolchains( |
| edition = "2018", |
| extra_target_triples = [ |
| "aarch64-apple-ios-sim", |
| "x86_64-apple-ios", |
| ], |
| ) |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| http_archive( |
| name = "build_bazel_rules_apple", |
| sha256 = "a6141240657093fa7ccc7ca1ee5a62408dd9996d1bf47bc2369b8b9faefb2698", |
| url = "https://github.com/bazelbuild/rules_apple/releases/download/2.3.0/rules_apple.2.3.0.tar.gz", |
| ) |
| |
| load( |
| "@build_bazel_rules_apple//apple:repositories.bzl", |
| "apple_rules_dependencies", |
| ) |
| |
| apple_rules_dependencies() |
| |
| load( |
| "@build_bazel_rules_swift//swift:repositories.bzl", |
| "swift_rules_dependencies", |
| ) |
| |
| swift_rules_dependencies() |
| |
| load( |
| "@build_bazel_apple_support//lib:repositories.bzl", |
| "apple_support_dependencies", |
| ) |
| |
| apple_support_dependencies() |