diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-05-07 23:11:30 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-05-07 23:11:30 +0000 |
commit | e17819409a83608d5b25eaf5454a3784098167a5 (patch) | |
tree | 2d299b043f2114395b90873118b3011121555413 | |
parent | 89e5112038cf91cb47e96d5248a75787e0d07b2f (diff) | |
parent | 1491992359e999fe0d0e4f999dde4db32b1d56bd (diff) | |
download | num-traits-sdk-release.tar.gz |
Snap for 11812660 from 1491992359e999fe0d0e4f999dde4db32b1d56bd to sdk-releasesdk-release
Change-Id: I72544129a078bf15e4e5771c7c20791aedd887ce
-rw-r--r-- | cargo2rulesmk.json | 3 | ||||
-rw-r--r-- | cargo_embargo.json | 11 | ||||
-rw-r--r-- | rules.mk | 24 |
3 files changed, 37 insertions, 1 deletions
diff --git a/cargo2rulesmk.json b/cargo2rulesmk.json new file mode 100644 index 0000000..c4a89e2 --- /dev/null +++ b/cargo2rulesmk.json @@ -0,0 +1,3 @@ +{ + "features": "" +} diff --git a/cargo_embargo.json b/cargo_embargo.json index 1e1f4d3..aa3ec87 100644 --- a/cargo_embargo.json +++ b/cargo_embargo.json @@ -7,5 +7,14 @@ "com.android.virt" ], "min_sdk_version": "29", - "tests": true + "tests": true, + "variants": [ + {}, + { + "generate_androidbp": false, + "generate_rulesmk": true, + "tests": false, + "features": [] + } +] } diff --git a/rules.mk b/rules.mk new file mode 100644 index 0000000..53c851c --- /dev/null +++ b/rules.mk @@ -0,0 +1,24 @@ +# This file is generated by cargo_embargo. +# Do not modify this file after the LOCAL_DIR line +# because the changes will be overridden on upgrade. +# Content before the first line starting with LOCAL_DIR is preserved. + +LOCAL_DIR := $(GET_LOCAL_DIR) +MODULE := $(LOCAL_DIR) +MODULE_CRATE_NAME := num_traits +MODULE_RUST_CRATE_TYPES := rlib +MODULE_SRCS := $(LOCAL_DIR)/src/lib.rs +MODULE_RUST_EDITION := 2018 +MODULE_RUSTFLAGS += \ + --cfg 'has_div_euclid' \ + --cfg 'has_float_to_from_bytes' \ + --cfg 'has_int_to_from_bytes' \ + --cfg 'has_is_subnormal' \ + --cfg 'has_leading_trailing_ones' \ + --cfg 'has_reverse_bits' \ + --cfg 'has_to_int_unchecked' + +MODULE_LIBRARY_DEPS := \ + + +include make/library.mk |