diff options
author | Per Larsen <perlarsen@google.com> | 2024-04-25 12:14:31 +0000 |
---|---|---|
committer | Per Larsen <perlarsen@google.com> | 2024-04-26 10:42:46 +0000 |
commit | 1491992359e999fe0d0e4f999dde4db32b1d56bd (patch) | |
tree | 2d299b043f2114395b90873118b3011121555413 | |
parent | ba0ee18f61b1bb6c55431c33f584e2e4b5568ce9 (diff) | |
download | num-traits-master.tar.gz |
Test: build.py
Bug: None
Change-Id: I4dc97ac48c0d7c0a3a13f9153c0d545d00addd0f
-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 |