diff --git a/Cargo.toml b/Cargo.toml index 72c942848..953c9bd5c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,7 @@ targets = [ "x86_64-apple-ios", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu", + "aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-unknown-linux-gnu", ] diff --git a/cargo/BUILD.reqwest.native.bazel b/cargo/BUILD.reqwest.native.bazel index 44adf7219..7e4630b41 100644 --- a/cargo/BUILD.reqwest.native.bazel +++ b/cargo/BUILD.reqwest.native.bazel @@ -88,6 +88,7 @@ rust_library( ] + selects.with_or({ # cfg(not(target_arch = "wasm32")) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.ahash-0.7.4.bazel b/cargo/remote/BUILD.ahash-0.7.4.bazel index 78126fe7a..7e829634a 100644 --- a/cargo/remote/BUILD.ahash-0.7.4.bazel +++ b/cargo/remote/BUILD.ahash-0.7.4.bazel @@ -60,6 +60,7 @@ cargo_build_script( ] + selects.with_or({ # cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi")) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", @@ -101,6 +102,7 @@ rust_library( ] + selects.with_or({ # cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi")) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.atty-0.2.14.bazel b/cargo/remote/BUILD.atty-0.2.14.bazel index 1fc983494..81afc0d6a 100644 --- a/cargo/remote/BUILD.atty-0.2.14.bazel +++ b/cargo/remote/BUILD.atty-0.2.14.bazel @@ -56,6 +56,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.coarsetime-0.1.19.bazel b/cargo/remote/BUILD.coarsetime-0.1.19.bazel index 9e09e37d6..de8204749 100644 --- a/cargo/remote/BUILD.coarsetime-0.1.19.bazel +++ b/cargo/remote/BUILD.coarsetime-0.1.19.bazel @@ -55,6 +55,7 @@ rust_library( ] + selects.with_or({ # cfg(not(target_os = "wasi")) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.dirs-sys-next-0.1.2.bazel b/cargo/remote/BUILD.dirs-sys-next-0.1.2.bazel index 1f71a0256..fb0945f5b 100644 --- a/cargo/remote/BUILD.dirs-sys-next-0.1.2.bazel +++ b/cargo/remote/BUILD.dirs-sys-next-0.1.2.bazel @@ -54,6 +54,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.getrandom-0.1.16.bazel b/cargo/remote/BUILD.getrandom-0.1.16.bazel index 8e1b3d7a3..e8516e82c 100644 --- a/cargo/remote/BUILD.getrandom-0.1.16.bazel +++ b/cargo/remote/BUILD.getrandom-0.1.16.bazel @@ -60,6 +60,7 @@ cargo_build_script( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", @@ -100,6 +101,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.getrandom-0.2.3.bazel b/cargo/remote/BUILD.getrandom-0.2.3.bazel index 66e6eb178..520f8af59 100644 --- a/cargo/remote/BUILD.getrandom-0.2.3.bazel +++ b/cargo/remote/BUILD.getrandom-0.2.3.bazel @@ -58,6 +58,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.hyper-0.14.13.bazel b/cargo/remote/BUILD.hyper-0.14.13.bazel index a79bc2b0a..c4b72a490 100644 --- a/cargo/remote/BUILD.hyper-0.14.13.bazel +++ b/cargo/remote/BUILD.hyper-0.14.13.bazel @@ -122,6 +122,7 @@ rust_library( ] + selects.with_or({ # cfg(any(target_os = "linux", target_os = "macos")) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", diff --git a/cargo/remote/BUILD.mio-0.7.13.bazel b/cargo/remote/BUILD.mio-0.7.13.bazel index 11556abbe..09b2e9937 100644 --- a/cargo/remote/BUILD.mio-0.7.13.bazel +++ b/cargo/remote/BUILD.mio-0.7.13.bazel @@ -67,6 +67,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.native-tls-0.2.8.bazel b/cargo/remote/BUILD.native-tls-0.2.8.bazel index 2b7105dec..21dc9cc2b 100644 --- a/cargo/remote/BUILD.native-tls-0.2.8.bazel +++ b/cargo/remote/BUILD.native-tls-0.2.8.bazel @@ -59,6 +59,7 @@ cargo_build_script( ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", @@ -114,6 +115,7 @@ rust_library( ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", diff --git a/cargo/remote/BUILD.num-format-0.4.0.bazel b/cargo/remote/BUILD.num-format-0.4.0.bazel index 45483a0fc..5017c04e9 100644 --- a/cargo/remote/BUILD.num-format-0.4.0.bazel +++ b/cargo/remote/BUILD.num-format-0.4.0.bazel @@ -58,6 +58,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.parking_lot_core-0.8.5.bazel b/cargo/remote/BUILD.parking_lot_core-0.8.5.bazel index 397f20aff..4afd86a6a 100644 --- a/cargo/remote/BUILD.parking_lot_core-0.8.5.bazel +++ b/cargo/remote/BUILD.parking_lot_core-0.8.5.bazel @@ -59,6 +59,7 @@ cargo_build_script( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", @@ -105,6 +106,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.rand-0.7.3.bazel b/cargo/remote/BUILD.rand-0.7.3.bazel index 4fd937fa3..3488447a2 100644 --- a/cargo/remote/BUILD.rand-0.7.3.bazel +++ b/cargo/remote/BUILD.rand-0.7.3.bazel @@ -79,6 +79,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.rand-0.8.4.bazel b/cargo/remote/BUILD.rand-0.8.4.bazel index 038786cb0..c114eb96a 100644 --- a/cargo/remote/BUILD.rand-0.8.4.bazel +++ b/cargo/remote/BUILD.rand-0.8.4.bazel @@ -65,6 +65,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.reqwest-0.11.3.bazel b/cargo/remote/BUILD.reqwest-0.11.3.bazel index cf9390dd8..570395de6 100644 --- a/cargo/remote/BUILD.reqwest-0.11.3.bazel +++ b/cargo/remote/BUILD.reqwest-0.11.3.bazel @@ -98,6 +98,7 @@ rust_library( ] + selects.with_or({ # cfg(not(target_arch = "wasm32")) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.ring-0.16.20.bazel b/cargo/remote/BUILD.ring-0.16.20.bazel index 9739a6806..34e72b119 100644 --- a/cargo/remote/BUILD.ring-0.16.20.bazel +++ b/cargo/remote/BUILD.ring-0.16.20.bazel @@ -84,6 +84,7 @@ cargo_build_script( }) + selects.with_or({ # cfg(any(unix, windows)) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", @@ -156,6 +157,7 @@ rust_library( }) + selects.with_or({ # cfg(any(unix, windows)) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.rustls-native-certs-0.5.0.bazel b/cargo/remote/BUILD.rustls-native-certs-0.5.0.bazel index 24e94c417..7778db4b6 100644 --- a/cargo/remote/BUILD.rustls-native-certs-0.5.0.bazel +++ b/cargo/remote/BUILD.rustls-native-certs-0.5.0.bazel @@ -70,6 +70,7 @@ rust_library( }) + selects.with_or({ # cfg(target_os = "macos") ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-darwin", ): [ "@raze__security_framework__2_4_2//:security_framework", diff --git a/cargo/remote/BUILD.socket2-0.4.2.bazel b/cargo/remote/BUILD.socket2-0.4.2.bazel index 2f9e05336..57d1c2025 100644 --- a/cargo/remote/BUILD.socket2-0.4.2.bazel +++ b/cargo/remote/BUILD.socket2-0.4.2.bazel @@ -54,6 +54,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.tempfile-3.2.0.bazel b/cargo/remote/BUILD.tempfile-3.2.0.bazel index c9b97850f..332d3b879 100644 --- a/cargo/remote/BUILD.tempfile-3.2.0.bazel +++ b/cargo/remote/BUILD.tempfile-3.2.0.bazel @@ -57,6 +57,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.tokio-1.12.0.bazel b/cargo/remote/BUILD.tokio-1.12.0.bazel index 5fb933b39..df07b1090 100644 --- a/cargo/remote/BUILD.tokio-1.12.0.bazel +++ b/cargo/remote/BUILD.tokio-1.12.0.bazel @@ -76,6 +76,7 @@ cargo_build_script( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", @@ -143,6 +144,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/cargo/remote/BUILD.tokio-native-tls-0.3.0.bazel b/cargo/remote/BUILD.tokio-native-tls-0.3.0.bazel index 1984b91ac..d11597fca 100644 --- a/cargo/remote/BUILD.tokio-native-tls-0.3.0.bazel +++ b/cargo/remote/BUILD.tokio-native-tls-0.3.0.bazel @@ -68,6 +68,7 @@ rust_library( }) + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", diff --git a/cargo/remote/BUILD.utime-0.3.1.bazel b/cargo/remote/BUILD.utime-0.3.1.bazel index 0b75bc3bd..7d844b9eb 100644 --- a/cargo/remote/BUILD.utime-0.3.1.bazel +++ b/cargo/remote/BUILD.utime-0.3.1.bazel @@ -54,6 +54,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/pylib/rsbridge/BUILD.bazel b/pylib/rsbridge/BUILD.bazel index b3579abae..a1c1019c0 100644 --- a/pylib/rsbridge/BUILD.bazel +++ b/pylib/rsbridge/BUILD.bazel @@ -21,6 +21,7 @@ rust_library( rustc_flags = selects.with_or({ ( "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-darwin", ): [ "-Clink-arg=-undefined", "-Clink-arg=dynamic_lookup",