Migrate 25 crates to monorepo.
sec1
semver
serde_cbor
serde_derive
shared_library
slab
smallvec
smccc
socket2
spin
spki
strsim
strum
strum_macros
sync_wrapper
syn-mid
synstructure
tempfile
termcolor
termtree
textwrap
thiserror
thread_local
tinytemplate
tokio-macros
Bug: 339424309
Test: treehugger
Change-Id: I64e7ea5141eb49f9bb53e7a98a7f89ac0192367e
diff --git a/Android.bp b/Android.bp
index 84d39dc..96beb97 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,85 +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_spin_license"],
-}
-
-license {
- name: "external_rust_crates_spin_license",
- visibility: [":__subpackages__"],
- license_kinds: ["SPDX-license-identifier-MIT"],
- license_text: ["LICENSE"],
-}
-
-rust_library {
- name: "libspin",
- host_supported: true,
- crate_name: "spin",
- cargo_env_compat: true,
- cargo_pkg_version: "0.9.8",
- crate_root: "src/lib.rs",
- edition: "2015",
- features: [
- "mutex",
- "once",
- "spin_mutex",
- "std",
- ],
- apex_available: [
- "//apex_available:platform",
- "//apex_available:anyapex",
- ],
- product_available: true,
- vendor_available: true,
- min_sdk_version: "29",
-}
-
-rust_test {
- name: "spin_test_src_lib",
- host_supported: true,
- crate_name: "spin",
- cargo_env_compat: true,
- cargo_pkg_version: "0.9.8",
- crate_root: "src/lib.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2015",
- features: [
- "mutex",
- "once",
- "spin_mutex",
- "std",
- ],
- rustlibs: ["libcriterion"],
-}
-
-rust_library_rlib {
- name: "libspin_nostd",
- crate_name: "spin",
- cargo_env_compat: true,
- cargo_pkg_version: "0.9.8",
- crate_root: "src/lib.rs",
- edition: "2015",
- features: [
- "mutex",
- "once",
- "spin_mutex",
- ],
- apex_available: [
- "//apex_available:platform",
- "//apex_available:anyapex",
- ],
- prefer_rlib: true,
- no_stdlibs: true,
- stdlibs: [
- "libcompiler_builtins.rust_sysroot",
- "libcore.rust_sysroot",
- ],
- product_available: true,
- vendor_available: true,
- min_sdk_version: "29",
-}
+// This crate has been migrated to external/rust/android-crates-io.
diff --git a/TEST_MAPPING b/TEST_MAPPING
deleted file mode 100644
index c028b97..0000000
--- a/TEST_MAPPING
+++ /dev/null
@@ -1,27 +0,0 @@
-// Generated by update_crate_tests.py for tests that depend on this crate.
-{
- "imports": [
- {
- "path": "external/rust/crates/quiche"
- },
- {
- "path": "external/rust/crates/ring"
- },
- {
- "path": "external/rust/crates/webpki"
- },
- {
- "path": "packages/modules/DnsResolver"
- }
- ],
- "presubmit": [
- {
- "name": "spin_test_src_lib"
- }
- ],
- "presubmit-rust": [
- {
- "name": "spin_test_src_lib"
- }
- ]
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
deleted file mode 100644
index 928ccdf..0000000
--- a/cargo_embargo.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "min_sdk_version": "29",
- "run_cargo": false,
- "variants": [
- {
- "features": [
- "once",
- "mutex",
- "spin_mutex",
- "std"
- ],
- "tests": true
- },
- {
- "features": [
- "once",
- "mutex",
- "spin_mutex"
- ],
- "module_name_overrides": {
- "libspin": "libspin_nostd"
- },
- "package": {
- "spin": {
- "force_rlib": true,
- "host_supported": false,
- "no_std": true
- }
- }
- },
- {
- "generate_androidbp": false,
- "generate_rulesmk": true,
- "features": [
- ],
- "package": {
- "spin": {
- "no_std": true
- }
- }
- }
- ]
-}