Migrate 3 crates to monorepo.
num-bigint
bindgen
userfaultfd-sys
Bug: http://b/339424309
Test: treehugger
Change-Id: Id45acbb23c3951d4b8c60e7b2a87efa162c21d59
diff --git a/Android.bp b/Android.bp
index 2054852..96beb97 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,310 +1 @@
-// This file is generated by cargo_embargo.
-// Do not modify this file because the changes will be overridden on upgrade.
-
-package {
- default_applicable_licenses: ["external_rust_crates_num-bigint_license"],
- default_team: "trendy_team_android_rust",
-}
-
-license {
- name: "external_rust_crates_num-bigint_license",
- visibility: [":__subpackages__"],
- license_kinds: ["SPDX-license-identifier-Apache-2.0"],
- license_text: ["LICENSE"],
-}
-
-genrule {
- name: "copy_num-bigint_build_out",
- srcs: ["out/*"],
- cmd: "cp $(in) $(genDir)",
- out: ["radix_bases.rs"],
-}
-
-rust_library {
- name: "libnum_bigint",
- host_supported: true,
- crate_name: "num_bigint",
- cargo_env_compat: true,
- cargo_pkg_version: "0.4.4",
- crate_root: "src/lib.rs",
- srcs: [":copy_num-bigint_build_out"],
- edition: "2018",
- features: [
- "default",
- "std",
- ],
- cfgs: [
- "has_try_from",
- "u64_digit",
- ],
- rustlibs: [
- "libnum_integer",
- "libnum_traits",
- ],
- apex_available: [
- "//apex_available:platform",
- "com.android.virt",
- ],
- product_available: true,
- vendor_available: true,
-}
-
-rust_test {
- name: "num-bigint_test_src_lib",
- host_supported: true,
- crate_name: "num_bigint",
- cargo_env_compat: true,
- cargo_pkg_version: "0.4.4",
- crate_root: "src/lib.rs",
- srcs: [":copy_num-bigint_build_out"],
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "default",
- "std",
- ],
- cfgs: [
- "has_try_from",
- "u64_digit",
- ],
- rustlibs: [
- "libnum_integer",
- "libnum_traits",
- ],
-}
-
-rust_test {
- name: "num-bigint_test_tests_bigint",
- host_supported: true,
- crate_name: "bigint",
- cargo_env_compat: true,
- cargo_pkg_version: "0.4.4",
- crate_root: "tests/bigint.rs",
- srcs: [":copy_num-bigint_build_out"],
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "default",
- "std",
- ],
- cfgs: [
- "has_try_from",
- "u64_digit",
- ],
- rustlibs: [
- "libnum_bigint",
- "libnum_integer",
- "libnum_traits",
- ],
-}
-
-rust_test {
- name: "num-bigint_test_tests_bigint_bitwise",
- host_supported: true,
- crate_name: "bigint_bitwise",
- cargo_env_compat: true,
- cargo_pkg_version: "0.4.4",
- crate_root: "tests/bigint_bitwise.rs",
- srcs: [":copy_num-bigint_build_out"],
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "default",
- "std",
- ],
- cfgs: [
- "has_try_from",
- "u64_digit",
- ],
- rustlibs: [
- "libnum_bigint",
- "libnum_integer",
- "libnum_traits",
- ],
-}
-
-rust_test {
- name: "num-bigint_test_tests_bigint_scalar",
- host_supported: true,
- crate_name: "bigint_scalar",
- cargo_env_compat: true,
- cargo_pkg_version: "0.4.4",
- crate_root: "tests/bigint_scalar.rs",
- srcs: [":copy_num-bigint_build_out"],
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "default",
- "std",
- ],
- cfgs: [
- "has_try_from",
- "u64_digit",
- ],
- rustlibs: [
- "libnum_bigint",
- "libnum_integer",
- "libnum_traits",
- ],
-}
-
-rust_test {
- name: "num-bigint_test_tests_biguint",
- host_supported: true,
- crate_name: "biguint",
- cargo_env_compat: true,
- cargo_pkg_version: "0.4.4",
- crate_root: "tests/biguint.rs",
- srcs: [":copy_num-bigint_build_out"],
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "default",
- "std",
- ],
- cfgs: [
- "has_try_from",
- "u64_digit",
- ],
- rustlibs: [
- "libnum_bigint",
- "libnum_integer",
- "libnum_traits",
- ],
-}
-
-rust_test {
- name: "num-bigint_test_tests_biguint_scalar",
- host_supported: true,
- crate_name: "biguint_scalar",
- cargo_env_compat: true,
- cargo_pkg_version: "0.4.4",
- crate_root: "tests/biguint_scalar.rs",
- srcs: [":copy_num-bigint_build_out"],
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "default",
- "std",
- ],
- cfgs: [
- "has_try_from",
- "u64_digit",
- ],
- rustlibs: [
- "libnum_bigint",
- "libnum_integer",
- "libnum_traits",
- ],
-}
-
-rust_test {
- name: "num-bigint_test_tests_fuzzed",
- host_supported: true,
- crate_name: "fuzzed",
- cargo_env_compat: true,
- cargo_pkg_version: "0.4.4",
- crate_root: "tests/fuzzed.rs",
- srcs: [":copy_num-bigint_build_out"],
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "default",
- "std",
- ],
- cfgs: [
- "has_try_from",
- "u64_digit",
- ],
- rustlibs: [
- "libnum_bigint",
- "libnum_integer",
- "libnum_traits",
- ],
-}
-
-rust_test {
- name: "num-bigint_test_tests_modpow",
- host_supported: true,
- crate_name: "modpow",
- cargo_env_compat: true,
- cargo_pkg_version: "0.4.4",
- crate_root: "tests/modpow.rs",
- srcs: [":copy_num-bigint_build_out"],
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "default",
- "std",
- ],
- cfgs: [
- "has_try_from",
- "u64_digit",
- ],
- rustlibs: [
- "libnum_bigint",
- "libnum_integer",
- "libnum_traits",
- ],
-}
-
-rust_test {
- name: "num-bigint_test_tests_roots",
- host_supported: true,
- crate_name: "roots",
- cargo_env_compat: true,
- cargo_pkg_version: "0.4.4",
- crate_root: "tests/roots.rs",
- srcs: [":copy_num-bigint_build_out"],
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "default",
- "std",
- ],
- cfgs: [
- "has_try_from",
- "u64_digit",
- ],
- rustlibs: [
- "libnum_bigint",
- "libnum_integer",
- "libnum_traits",
- ],
-}
+// This crate has been migrated to external/rust/android-crates-io.
diff --git a/TEST_MAPPING b/TEST_MAPPING
deleted file mode 100644
index 0a8b0db..0000000
--- a/TEST_MAPPING
+++ /dev/null
@@ -1,66 +0,0 @@
-// Generated by update_crate_tests.py for tests that depend on this crate.
-{
- "imports": [
- {
- "path": "external/rust/crates/oid-registry"
- }
- ],
- "presubmit": [
- {
- "name": "num-bigint_test_src_lib"
- },
- {
- "name": "num-bigint_test_tests_bigint"
- },
- {
- "name": "num-bigint_test_tests_bigint_bitwise"
- },
- {
- "name": "num-bigint_test_tests_bigint_scalar"
- },
- {
- "name": "num-bigint_test_tests_biguint"
- },
- {
- "name": "num-bigint_test_tests_biguint_scalar"
- },
- {
- "name": "num-bigint_test_tests_fuzzed"
- },
- {
- "name": "num-bigint_test_tests_modpow"
- },
- {
- "name": "num-bigint_test_tests_roots"
- }
- ],
- "presubmit-rust": [
- {
- "name": "num-bigint_test_src_lib"
- },
- {
- "name": "num-bigint_test_tests_bigint"
- },
- {
- "name": "num-bigint_test_tests_bigint_bitwise"
- },
- {
- "name": "num-bigint_test_tests_bigint_scalar"
- },
- {
- "name": "num-bigint_test_tests_biguint"
- },
- {
- "name": "num-bigint_test_tests_biguint_scalar"
- },
- {
- "name": "num-bigint_test_tests_fuzzed"
- },
- {
- "name": "num-bigint_test_tests_modpow"
- },
- {
- "name": "num-bigint_test_tests_roots"
- }
- ]
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
deleted file mode 100644
index 29ed98c..0000000
--- a/cargo_embargo.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "apex_available": [
- "//apex_available:platform",
- "com.android.virt"
- ],
- "cfg_blocklist": [
- "use_addcarry"
- ],
- "package": {
- "num-bigint": {
- // Code generated by build.rs is built into the library.
- "copy_out": true
- }
- },
- "tests": true
-}