blob: 19bdfb5a4dfabaff170e0bf95249efa1a3c80d34 [file] [log] [blame] [edit]
package {
default_applicable_licenses: ["external_rust_pica_license"],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "external_rust_pica_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"LICENSE",
],
}
genrule {
name: "libpica_uci_packets",
defaults: ["pdl_rust_legacy_generator_defaults"],
srcs: ["src/uci_packets.pdl"],
out: ["uci_packets.rs"],
}
rust_library_host {
name: "libpica",
crate_name: "pica",
srcs: [
"src/lib.rs",
":libpica_uci_packets",
],
proc_macros: ["libnum_derive"],
rustlibs: [
"libanyhow",
"libbytes",
"libfutures",
"libglam",
"libhex",
"liblog_rust",
"libnum_traits",
"libpdl_runtime",
"libthiserror",
"libserde",
"libtokio",
],
}
rust_binary_host {
name: "pica",
srcs: ["src/bin/main.rs"],
proc_macros: ["libnum_derive"],
rustlibs: [
"libanyhow",
"libenv_logger",
"libfutures",
"liblog_rust",
"libpica",
"libclap",
"libtokio",
],
}