Migrate 25 crates to monorepo.
miette
mime
mio
mls-rs-codec
mls-rs-codec-derive
mls-rs-core
mockall
named-lock
nom
no-panic
num_cpus
num-integer
num-traits
oorandom
os_str_bytes
p9
p9_wire_format_derive
parking_lot
parking_lot_core
pathdiff
pdl-runtime
pest
pest_derive
pest_generator
pest_meta
Bug: 339424309
Test: treehugger
Change-Id: I33446b9e7d19469378876a8f474e551aaabf325b
diff --git a/Android.bp b/Android.bp
index fbaaed2..96beb97 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,46 +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_cpus_license"],
-}
-
-license {
- name: "external_rust_crates_num_cpus_license",
- visibility: [":__subpackages__"],
- license_kinds: ["SPDX-license-identifier-Apache-2.0"],
- license_text: ["LICENSE"],
-}
-
-rust_library {
- name: "libnum_cpus",
- host_supported: true,
- crate_name: "num_cpus",
- cargo_env_compat: true,
- cargo_pkg_version: "1.16.0",
- crate_root: "src/lib.rs",
- edition: "2015",
- rustlibs: ["liblibc"],
- apex_available: [
- "//apex_available:platform",
- "//apex_available:anyapex",
- ],
- product_available: true,
- vendor_available: true,
- min_sdk_version: "29",
-}
-
-rust_test {
- name: "num_cpus_test_src_lib",
- crate_name: "num_cpus",
- cargo_env_compat: true,
- cargo_pkg_version: "1.16.0",
- crate_root: "src/lib.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: false,
- },
- edition: "2015",
- rustlibs: ["liblibc"],
-}
+// This crate has been migrated to external/rust/android-crates-io.
diff --git a/TEST_MAPPING b/TEST_MAPPING
deleted file mode 100644
index e6f36fd..0000000
--- a/TEST_MAPPING
+++ /dev/null
@@ -1,78 +0,0 @@
-// Generated by update_crate_tests.py for tests that depend on this crate.
-{
- "imports": [
- {
- "path": "external/rust/crates/anyhow"
- },
- {
- "path": "external/rust/crates/async-stream"
- },
- {
- "path": "external/rust/crates/base64"
- },
- {
- "path": "external/rust/crates/futures-channel"
- },
- {
- "path": "external/rust/crates/futures-executor"
- },
- {
- "path": "external/rust/crates/futures-test"
- },
- {
- "path": "external/rust/crates/futures-util"
- },
- {
- "path": "external/rust/crates/hashbrown"
- },
- {
- "path": "external/rust/crates/ryu"
- },
- {
- "path": "external/rust/crates/tinytemplate"
- },
- {
- "path": "external/rust/crates/tinyvec"
- },
- {
- "path": "external/rust/crates/tokio"
- },
- {
- "path": "external/rust/crates/tokio-test"
- },
- {
- "path": "external/rust/crates/unicode-xid"
- },
- {
- "path": "external/uwb/src"
- },
- {
- "path": "packages/modules/DnsResolver"
- },
- {
- "path": "packages/modules/Virtualization/authfs"
- },
- {
- "path": "packages/modules/Virtualization/virtualizationmanager"
- },
- {
- "path": "packages/modules/Virtualization/zipfuse"
- },
- {
- "path": "system/security/keystore2"
- },
- {
- "path": "system/security/keystore2/legacykeystore"
- }
- ],
- "presubmit": [
- {
- "name": "num_cpus_test_src_lib"
- }
- ],
- "presubmit-rust": [
- {
- "name": "num_cpus_test_src_lib"
- }
- ]
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
deleted file mode 100644
index e86010a..0000000
--- a/cargo_embargo.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "min_sdk_version": "29",
- "package": {
- "num_cpus": {
- "no_presubmit": true,
- "patch": "patches/Android.bp.patch"
- }
- },
- "run_cargo": false,
- "tests": true
-}