blob: 65d08c9764e6401f0a088aa366af68cfd15bdb93 [file] [log] [blame]
rust_defaults {
name: "authfs_defaults",
crate_name: "authfs",
srcs: [
"src/main.rs",
],
edition: "2018",
rustlibs: [
"libanyhow",
"libauthfs_crypto_bindgen",
"libcfg_if",
"libfuse_rust",
"liblibc",
"libstructopt",
"libthiserror",
],
target: {
darwin: {
enabled: false,
},
},
shared_libs: ["libcrypto"],
defaults: ["crosvm_defaults"],
}
// TODO(b/172687320): remove once there is a canonical bindgen.
rust_bindgen {
name: "libauthfs_crypto_bindgen",
wrapper_src: "src/crypto.hpp",
crate_name: "authfs_crypto_bindgen",
source_stem: "bindings",
shared_libs: [
"libcrypto",
],
bindgen_flags: ["--size_t-is-usize"],
cflags: ["-D BORINGSSL_NO_CXX"],
}
rust_binary {
name: "authfs",
defaults: ["authfs_defaults"],
}
// TODO(victorhsieh): Enable the test once "undefined symbol: _Unwind_Resume" is fixed, then add to
// TEST_MAPPING.
rust_test {
name: "authfs_device_test_src_lib",
defaults: ["authfs_defaults"],
}