2020-11-01 05:26:58 +01:00
|
|
|
"""
|
|
|
|
@generated
|
|
|
|
cargo-raze crate build file.
|
|
|
|
|
|
|
|
DO NOT EDIT! Replaced on runs of cargo-raze
|
|
|
|
"""
|
|
|
|
|
2021-03-27 09:39:02 +01:00
|
|
|
# buildifier: disable=load
|
|
|
|
load("@bazel_skylib//lib:selects.bzl", "selects")
|
|
|
|
|
2020-11-01 05:26:58 +01:00
|
|
|
# buildifier: disable=load
|
|
|
|
load(
|
2021-10-26 00:16:40 +02:00
|
|
|
"@rules_rust//rust:defs.bzl",
|
2020-11-01 05:26:58 +01:00
|
|
|
"rust_binary",
|
|
|
|
"rust_library",
|
2021-10-26 00:16:40 +02:00
|
|
|
"rust_proc_macro",
|
2020-11-01 05:26:58 +01:00
|
|
|
"rust_test",
|
|
|
|
)
|
|
|
|
|
|
|
|
package(default_visibility = [
|
|
|
|
# Public for visibility by "@raze__crate__version//" targets.
|
|
|
|
#
|
|
|
|
# Prefer access through "//cargo", which limits external
|
|
|
|
# visibility to explicit Cargo.toml dependencies.
|
|
|
|
"//visibility:public",
|
|
|
|
])
|
|
|
|
|
|
|
|
licenses([
|
|
|
|
"restricted", # no license
|
|
|
|
])
|
|
|
|
|
2020-11-24 07:57:37 +01:00
|
|
|
# Generated Targets
|
2021-03-27 09:39:02 +01:00
|
|
|
# buildifier: disable=out-of-order-load
|
2020-11-24 07:57:37 +01:00
|
|
|
# buildifier: disable=load-on-top
|
2020-11-01 05:26:58 +01:00
|
|
|
load(
|
2021-03-27 09:39:02 +01:00
|
|
|
"@rules_rust//cargo:cargo_build_script.bzl",
|
2020-11-01 05:26:58 +01:00
|
|
|
"cargo_build_script",
|
|
|
|
)
|
|
|
|
|
|
|
|
cargo_build_script(
|
|
|
|
name = "ring_build_script",
|
|
|
|
srcs = glob(["**/*.rs"]),
|
2020-11-10 00:47:24 +01:00
|
|
|
build_script_env = {
|
|
|
|
},
|
|
|
|
crate_features = [
|
|
|
|
"alloc",
|
|
|
|
"default",
|
|
|
|
"dev_urandom_fallback",
|
|
|
|
"once_cell",
|
|
|
|
],
|
2020-11-01 05:26:58 +01:00
|
|
|
crate_root = "build.rs",
|
2020-11-10 00:47:24 +01:00
|
|
|
data = glob(["**"]),
|
2020-11-01 05:26:58 +01:00
|
|
|
edition = "2018",
|
2021-03-27 09:39:02 +01:00
|
|
|
links = "ring-asm",
|
2020-11-10 00:47:24 +01:00
|
|
|
rustc_flags = [
|
|
|
|
"--cap-lints=allow",
|
|
|
|
],
|
|
|
|
tags = [
|
|
|
|
"cargo-raze",
|
|
|
|
"manual",
|
|
|
|
],
|
2021-02-03 11:29:48 +01:00
|
|
|
version = "0.16.20",
|
2020-11-10 00:47:24 +01:00
|
|
|
visibility = ["//visibility:private"],
|
2020-11-01 05:26:58 +01:00
|
|
|
deps = [
|
2021-11-18 11:54:00 +01:00
|
|
|
"@raze__cc__1_0_72//:cc",
|
2020-11-01 05:26:58 +01:00
|
|
|
] + selects.with_or({
|
2020-11-24 07:57:37 +01:00
|
|
|
# cfg(any(target_arch = "x86", target_arch = "x86_64", all(any(target_arch = "aarch64", target_arch = "arm"), any(target_os = "android", target_os = "fuchsia", target_os = "linux"))))
|
2020-11-01 05:26:58 +01:00
|
|
|
(
|
2021-03-27 09:39:02 +01:00
|
|
|
"@rules_rust//rust/platform:x86_64-apple-darwin",
|
|
|
|
"@rules_rust//rust/platform:x86_64-pc-windows-msvc",
|
|
|
|
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
|
2021-10-26 00:16:40 +02:00
|
|
|
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
|
|
|
|
"@rules_rust//rust/platform:x86_64-apple-ios",
|
2020-11-01 05:26:58 +01:00
|
|
|
): [
|
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}) + selects.with_or({
|
|
|
|
# cfg(any(target_os = "android", target_os = "linux"))
|
|
|
|
(
|
2021-03-27 09:39:02 +01:00
|
|
|
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
|
|
|
|
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
|
2020-11-01 05:26:58 +01:00
|
|
|
): [
|
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}) + selects.with_or({
|
|
|
|
# cfg(target_os = "windows")
|
|
|
|
(
|
2021-03-27 09:39:02 +01:00
|
|
|
"@rules_rust//rust/platform:x86_64-pc-windows-msvc",
|
2020-11-01 05:26:58 +01:00
|
|
|
): [
|
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
2020-11-10 00:47:24 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
rust_library(
|
|
|
|
name = "ring",
|
|
|
|
srcs = glob(["**/*.rs"]),
|
|
|
|
aliases = {
|
|
|
|
},
|
|
|
|
crate_features = [
|
|
|
|
"alloc",
|
|
|
|
"default",
|
|
|
|
"dev_urandom_fallback",
|
|
|
|
"once_cell",
|
|
|
|
],
|
|
|
|
crate_root = "src/lib.rs",
|
2020-12-15 11:28:10 +01:00
|
|
|
data = [],
|
2020-12-01 07:07:46 +01:00
|
|
|
compile_data = glob(["src/**/*.der"]),
|
2020-11-10 00:47:24 +01:00
|
|
|
edition = "2018",
|
2020-11-01 05:26:58 +01:00
|
|
|
rustc_flags = [
|
|
|
|
"--cap-lints=allow",
|
|
|
|
],
|
|
|
|
tags = [
|
|
|
|
"cargo-raze",
|
|
|
|
"manual",
|
|
|
|
],
|
2021-02-03 11:29:48 +01:00
|
|
|
version = "0.16.20",
|
2020-11-10 00:47:24 +01:00
|
|
|
# buildifier: leave-alone
|
2020-11-01 05:26:58 +01:00
|
|
|
deps = [
|
|
|
|
":ring_build_script",
|
|
|
|
"@raze__untrusted__0_7_1//:untrusted",
|
|
|
|
] + selects.with_or({
|
2020-11-24 07:57:37 +01:00
|
|
|
# cfg(any(target_arch = "x86", target_arch = "x86_64", all(any(target_arch = "aarch64", target_arch = "arm"), any(target_os = "android", target_os = "fuchsia", target_os = "linux"))))
|
2020-11-01 05:26:58 +01:00
|
|
|
(
|
2021-03-27 09:39:02 +01:00
|
|
|
"@rules_rust//rust/platform:x86_64-apple-darwin",
|
|
|
|
"@rules_rust//rust/platform:x86_64-pc-windows-msvc",
|
|
|
|
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
|
2021-10-26 00:16:40 +02:00
|
|
|
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
|
|
|
|
"@rules_rust//rust/platform:x86_64-apple-ios",
|
2020-11-01 05:26:58 +01:00
|
|
|
): [
|
|
|
|
"@raze__spin__0_5_2//:spin",
|
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}) + selects.with_or({
|
|
|
|
# cfg(any(target_os = "android", target_os = "linux"))
|
|
|
|
(
|
2021-03-27 09:39:02 +01:00
|
|
|
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
|
|
|
|
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
|
2020-11-01 05:26:58 +01:00
|
|
|
): [
|
2021-12-03 11:04:47 +01:00
|
|
|
"@raze__libc__0_2_108//:libc",
|
2021-10-26 00:16:40 +02:00
|
|
|
"@raze__once_cell__1_8_0//:once_cell",
|
2020-11-01 05:26:58 +01:00
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}) + selects.with_or({
|
|
|
|
# cfg(target_os = "windows")
|
|
|
|
(
|
2021-03-27 09:39:02 +01:00
|
|
|
"@rules_rust//rust/platform:x86_64-pc-windows-msvc",
|
2020-11-01 05:26:58 +01:00
|
|
|
): [
|
|
|
|
"@raze__winapi__0_3_9//:winapi",
|
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
|
|
|
)
|
2020-11-10 00:47:24 +01:00
|
|
|
|
|
|
|
# Unsupported target "aead_tests" with type "test" omitted
|
|
|
|
|
|
|
|
# Unsupported target "agreement_tests" with type "test" omitted
|
|
|
|
|
|
|
|
# Unsupported target "constant_time_tests" with type "test" omitted
|
|
|
|
|
|
|
|
# Unsupported target "digest_tests" with type "test" omitted
|
|
|
|
|
|
|
|
# Unsupported target "ecdsa_tests" with type "test" omitted
|
|
|
|
|
|
|
|
# Unsupported target "ed25519_tests" with type "test" omitted
|
|
|
|
|
|
|
|
# Unsupported target "hkdf_tests" with type "test" omitted
|
|
|
|
|
|
|
|
# Unsupported target "hmac_tests" with type "test" omitted
|
|
|
|
|
|
|
|
# Unsupported target "pbkdf2_tests" with type "test" omitted
|
|
|
|
|
|
|
|
# Unsupported target "quic_tests" with type "test" omitted
|
|
|
|
|
|
|
|
# Unsupported target "rand_tests" with type "test" omitted
|
|
|
|
|
2020-11-01 05:26:58 +01:00
|
|
|
# Unsupported target "rsa_tests" with type "test" omitted
|
2020-11-10 00:47:24 +01:00
|
|
|
|
2020-11-01 05:26:58 +01:00
|
|
|
# Unsupported target "signature_tests" with type "test" omitted
|