blob: 7f71ea6a6f540c1bd5be9a44808c01e78354e7eb [file] [log] [blame]
// This file is generated by cargo2android.py --config cargo2android.json.
// Do not modify this file as changes will be overridden on upgrade.
package {
default_applicable_licenses: ["external_rust_crates_zerocopy_license"],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "external_rust_crates_zerocopy_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-BSD",
],
license_text: [
"LICENSE",
],
}
rust_library {
name: "libzerocopy",
host_supported: true,
crate_name: "zerocopy",
cargo_env_compat: true,
cargo_pkg_version: "0.6.1",
srcs: ["src/lib.rs"],
edition: "2018",
rustlibs: [
"libbyteorder",
],
proc_macros: ["libzerocopy_derive"],
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
product_available: true,
vendor_available: true,
}
rust_test {
name: "zerocopy_test_src_lib",
host_supported: true,
crate_name: "zerocopy",
cargo_env_compat: true,
cargo_pkg_version: "0.6.1",
srcs: ["src/lib.rs"],
test_suites: ["general-tests"],
auto_gen_config: true,
test_options: {
unit_test: true,
},
edition: "2018",
rustlibs: [
"libbyteorder",
"librand",
],
proc_macros: ["libzerocopy_derive"],
}
rust_library_rlib {
name: "libzerocopy_nostd",
crate_name: "zerocopy",
cargo_env_compat: true,
cargo_pkg_version: "0.6.1",
srcs: ["src/lib.rs"],
edition: "2018",
no_stdlibs: true,
rustlibs: [
"libbyteorder_nostd",
],
proc_macros: ["libzerocopy_derive"],
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
}