2023-04-25 15:06:30 +02:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
|
|
|
rust_protobuf_host {
|
|
|
|
name: "libaconfig_protos",
|
|
|
|
protos: ["protos/aconfig.proto"],
|
|
|
|
crate_name: "aconfig_protos",
|
|
|
|
source_stem: "aconfig_protos",
|
|
|
|
use_protobuf3: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
rust_defaults {
|
|
|
|
name: "aconfig.defaults",
|
|
|
|
edition: "2021",
|
|
|
|
clippy_lints: "android",
|
|
|
|
lints: "android",
|
|
|
|
srcs: ["src/main.rs"],
|
|
|
|
rustlibs: [
|
|
|
|
"libaconfig_protos",
|
2023-04-26 13:16:41 +02:00
|
|
|
"libanyhow",
|
2023-04-27 16:05:58 +02:00
|
|
|
"libclap",
|
2023-04-25 15:06:30 +02:00
|
|
|
"libprotobuf",
|
2023-04-27 16:05:58 +02:00
|
|
|
"libserde",
|
|
|
|
"libserde_json",
|
2023-05-10 06:02:33 +02:00
|
|
|
"libtinytemplate",
|
2023-04-25 15:06:30 +02:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
rust_binary_host {
|
|
|
|
name: "aconfig",
|
|
|
|
defaults: ["aconfig.defaults"],
|
|
|
|
}
|
|
|
|
|
|
|
|
rust_test_host {
|
|
|
|
name: "aconfig.test",
|
|
|
|
defaults: ["aconfig.defaults"],
|
|
|
|
}
|