blob: 3c5849baca2720708da7df40fdf322e0e5d63d88 [file] [log] [blame]
Victor Hsieh1fe51c42020-11-05 11:08:10 -08001rust_defaults {
2 name: "authfs_defaults",
3 crate_name: "authfs",
4 srcs: [
5 "src/lib.rs",
6 ],
7 edition: "2018",
8 rustlibs: [
Victor Hsiehec184562020-11-06 13:50:31 -08009 "libanyhow",
Victor Hsiehd1cb0d72020-11-06 13:49:55 -080010 "libauthfs_crypto_bindgen",
Victor Hsieh1fe51c42020-11-05 11:08:10 -080011 "liblibc",
Victor Hsiehd1cb0d72020-11-06 13:49:55 -080012 "libthiserror",
Victor Hsieh1fe51c42020-11-05 11:08:10 -080013 ],
14 host_supported: true,
Victor Hsiehd1cb0d72020-11-06 13:49:55 -080015 shared_libs: ["libcrypto"],
Victor Hsieh1fe51c42020-11-05 11:08:10 -080016 clippy_lints: "android",
17}
18
Victor Hsiehd1cb0d72020-11-06 13:49:55 -080019// TODO(b/172687320): remove once there is a canonical bindgen.
20rust_bindgen {
21 name: "libauthfs_crypto_bindgen",
22 wrapper_src: "src/crypto.hpp",
23 crate_name: "authfs_crypto_bindgen",
24 source_stem: "bindings",
25 shared_libs: [
26 "libcrypto",
27 ],
28 bindgen_flags: ["--size_t-is-usize"],
29 cflags: ["-D BORINGSSL_NO_CXX"],
30 host_supported: true,
31}
32
Victor Hsieh1fe51c42020-11-05 11:08:10 -080033rust_library {
34 name: "libauthfs",
35 defaults: ["authfs_defaults"],
36}
37
38rust_test_host {
39 name: "authfs_host_test_src_lib",
40 test_suites: ["general-tests"],
41 defaults: ["authfs_defaults"],
42}
43
44// TODO(victorhsieh): Enable the test once "undefined symbol: _Unwind_Resume" is fixed, then add to
45// TEST_MAPPING.
46//rust_test {
47// name: "authfs_device_test_src_lib",
48// defaults: ["authfs_defaults"],
49//}