1// This file is generated by cargo2android.py --run --device --tests --dependencies --global_defaults=crosvm_defaults --add_workspace. 2// Do not modify this file as changes will be overridden on upgrade. 3 4package { 5 // See: http://go/android-license-faq 6 // A large-scale-change added 'default_applicable_licenses' to import 7 // all of the 'license_kinds' from "external_crosvm_license" 8 // to get the below license kinds: 9 // SPDX-license-identifier-BSD 10 default_applicable_licenses: ["external_crosvm_license"], 11} 12 13rust_library { 14 name: "libsync_rust", 15 defaults: ["crosvm_defaults"], 16 stem: "libsync", 17 host_supported: true, 18 crate_name: "sync", 19 srcs: ["src/lib.rs"], 20 edition: "2018", 21} 22 23rust_defaults { 24 name: "sync_defaults", 25 defaults: ["crosvm_defaults"], 26 crate_name: "sync", 27 srcs: ["src/lib.rs"], 28 test_suites: ["general-tests"], 29 auto_gen_config: true, 30 edition: "2018", 31} 32 33rust_test_host { 34 name: "sync_host_test_src_lib", 35 defaults: ["sync_defaults"], 36 test_options: { 37 unit_test: true, 38 }, 39} 40 41rust_test { 42 name: "sync_device_test_src_lib", 43 defaults: ["sync_defaults"], 44} 45