blob: a7aceeebad19bed41b29447b3c2eb82a3a3c83c0 [file] [log] [blame]
Ted Bauer4dbf58a2024-02-08 18:46:52 +00001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5rust_defaults {
6 name: "aflags.defaults",
7 edition: "2021",
8 clippy_lints: "android",
9 lints: "android",
10 srcs: ["src/main.rs"],
11 rustlibs: [
Ted Bauer206d44a2024-03-15 17:04:06 +000012 "libaconfig_device_paths",
Ted Bauerb1edaae2024-09-11 19:07:44 +000013 "libaconfig_flags",
Ted Bauer4dbf58a2024-02-08 18:46:52 +000014 "libaconfig_protos",
Dennis Shenad030fa2024-10-03 16:45:13 +000015 "libaconfigd_protos_rust",
Ted Bauer6d4db662024-03-06 18:08:32 -050016 "libaconfig_storage_read_api",
17 "libaconfig_storage_file",
Ted Bauer4dbf58a2024-02-08 18:46:52 +000018 "libanyhow",
19 "libclap",
Ted Bauera98448f2024-03-06 14:01:19 -050020 "libnix",
Ted Bauer4dbf58a2024-02-08 18:46:52 +000021 "libprotobuf",
22 "libregex",
Dennis Shene472adf2024-10-02 19:02:05 +000023 // TODO: b/371021174 remove this fake dependency once we find a proper strategy to
24 // deal with test aconfig libs are not present in storage because they are never used
25 // by the actual build
26 "libaconfig_test_rust_library",
Ted Bauer4dbf58a2024-02-08 18:46:52 +000027 ],
28}
29
30rust_binary {
31 name: "aflags",
Ted Bauerb1edaae2024-09-11 19:07:44 +000032 host_supported: true,
Ted Bauer4dbf58a2024-02-08 18:46:52 +000033 defaults: ["aflags.defaults"],
34}
35
36rust_test_host {
37 name: "aflags.test",
38 defaults: ["aflags.defaults"],
39 test_suites: ["general-tests"],
40}