1*d4726bddSHONG Yifanworkspace(name = "ios_examples") 2*d4726bddSHONG Yifan 3*d4726bddSHONG Yifan# Users of `rules_rust` will commonly be unable to load it 4*d4726bddSHONG Yifan# using a `local_repository`. Instead, to setup the rules, 5*d4726bddSHONG Yifan# please see https://bazelbuild.github.io/rules_rust/#setup 6*d4726bddSHONG Yifanlocal_repository( 7*d4726bddSHONG Yifan name = "rules_rust", 8*d4726bddSHONG Yifan path = "../..", 9*d4726bddSHONG Yifan) 10*d4726bddSHONG Yifan 11*d4726bddSHONG Yifanload("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains") 12*d4726bddSHONG Yifan 13*d4726bddSHONG Yifanrules_rust_dependencies() 14*d4726bddSHONG Yifan 15*d4726bddSHONG Yifanrust_register_toolchains( 16*d4726bddSHONG Yifan edition = "2018", 17*d4726bddSHONG Yifan extra_target_triples = [ 18*d4726bddSHONG Yifan "aarch64-apple-ios-sim", 19*d4726bddSHONG Yifan "x86_64-apple-ios", 20*d4726bddSHONG Yifan "aarch64-apple-darwin", 21*d4726bddSHONG Yifan "x86_64-apple-darwin", 22*d4726bddSHONG Yifan ], 23*d4726bddSHONG Yifan) 24*d4726bddSHONG Yifan 25*d4726bddSHONG Yifanload("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 26*d4726bddSHONG Yifan 27*d4726bddSHONG Yifanhttp_archive( 28*d4726bddSHONG Yifan name = "build_bazel_rules_apple", 29*d4726bddSHONG Yifan sha256 = "ed432a2d5929452748bd53a4ff9e652f2332283eb3d7ffad6cb63aab96a06301", 30*d4726bddSHONG Yifan url = "https://github.com/bazelbuild/rules_apple/releases/download/3.4.0/rules_apple.3.4.0.tar.gz", 31*d4726bddSHONG Yifan) 32*d4726bddSHONG Yifan 33*d4726bddSHONG Yifanload( 34*d4726bddSHONG Yifan "@build_bazel_rules_apple//apple:repositories.bzl", 35*d4726bddSHONG Yifan "apple_rules_dependencies", 36*d4726bddSHONG Yifan) 37*d4726bddSHONG Yifan 38*d4726bddSHONG Yifanapple_rules_dependencies() 39*d4726bddSHONG Yifan 40*d4726bddSHONG Yifanload( 41*d4726bddSHONG Yifan "@build_bazel_rules_swift//swift:repositories.bzl", 42*d4726bddSHONG Yifan "swift_rules_dependencies", 43*d4726bddSHONG Yifan) 44*d4726bddSHONG Yifan 45*d4726bddSHONG Yifanswift_rules_dependencies() 46*d4726bddSHONG Yifan 47*d4726bddSHONG Yifanload( 48*d4726bddSHONG Yifan "@build_bazel_apple_support//lib:repositories.bzl", 49*d4726bddSHONG Yifan "apple_support_dependencies", 50*d4726bddSHONG Yifan) 51*d4726bddSHONG Yifan 52*d4726bddSHONG Yifanapple_support_dependencies() 53