And add tests. Bug: 481594013 Bug: 481981256 Test: atest unpack-module-sdks-test Change-Id: Ib2d2dbae85c164723070b90a541d69af8df91ca4
37 lines
740 B
Plaintext
37 lines
740 B
Plaintext
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
rust_defaults {
|
|
name: "unpack-module-sdks-defaults",
|
|
edition: "2021",
|
|
clippy_lints: "android",
|
|
lints: "android",
|
|
use_expansive_default_srcs: false,
|
|
rustlibs: [
|
|
"libanyhow",
|
|
"libclap",
|
|
"libglob",
|
|
"libregex",
|
|
"libserde",
|
|
"libserde_json",
|
|
"libzip",
|
|
],
|
|
crate_root: "src/main.rs",
|
|
}
|
|
|
|
rust_binary_host {
|
|
name: "unpack-module-sdks",
|
|
defaults: ["unpack-module-sdks-defaults"],
|
|
srcs: ["src/*.rs"],
|
|
}
|
|
|
|
rust_test_host {
|
|
name: "unpack-module-sdks-test",
|
|
defaults: ["unpack-module-sdks-defaults"],
|
|
srcs: [
|
|
"src/*.rs",
|
|
],
|
|
test_suites: ["general-tests"],
|
|
}
|