| ############################################################################### |
| # @generated |
| # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To |
| # regenerate this file, run the following: |
| # |
| # bazel run @//crate_universe/3rdparty:crates_vendor |
| ############################################################################### |
| |
| # buildifier: disable=bzl-visibility |
| load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") |
| load( |
| "@rules_rust//rust:defs.bzl", |
| "rust_library", |
| ) |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| # licenses([ |
| # "TODO", # MIT OR Apache-2.0 |
| # ]) |
| |
| rust_library( |
| name = "cpufeatures", |
| srcs = glob( |
| include = [ |
| "**/*.rs", |
| ], |
| exclude = [ |
| ], |
| ), |
| aliases = select({ |
| "//conditions:default": { |
| }, |
| }), |
| compile_data = glob( |
| include = ["**"], |
| exclude = [ |
| "**/* *", |
| "BUILD.bazel", |
| "BUILD", |
| "WORKSPACE.bazel", |
| "WORKSPACE", |
| ], |
| ) + select_with_or({ |
| "//conditions:default": [ |
| ], |
| }), |
| crate_features = [ |
| ], |
| crate_root = "src/lib.rs", |
| data = select_with_or({ |
| "//conditions:default": [ |
| ], |
| }), |
| edition = "2018", |
| proc_macro_deps = [ |
| ] + select({ |
| "//conditions:default": [ |
| ], |
| }), |
| rustc_env = { |
| }, |
| rustc_env_files = select_with_or({ |
| "//conditions:default": [ |
| ], |
| }), |
| rustc_flags = [ |
| # In most cases, warnings in 3rd party crates are not interesting as |
| # they're out of the control of consumers. The flag here silences |
| # warnings. For more details see: |
| # https://doc.rust-lang.org/rustc/lints/levels.html |
| "--cap-lints=allow", |
| ], |
| tags = [ |
| "cargo-bazel", |
| "manual", |
| "noclippy", |
| "norustfmt", |
| ], |
| version = "0.2.5", |
| deps = [ |
| ] + select({ |
| "@rules_rust//rust/platform:aarch64-apple-darwin": [ |
| "@cui__libc-0.2.139//:libc", # aarch64-apple-darwin |
| ], |
| "@rules_rust//rust/platform:aarch64-linux-android": [ |
| "@cui__libc-0.2.139//:libc", # aarch64-linux-android |
| ], |
| "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ |
| "@cui__libc-0.2.139//:libc", # cfg(all(target_arch = "aarch64", target_os = "linux")) |
| ], |
| "//conditions:default": [ |
| ], |
| }), |
| ) |