1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5rust_defaults { 6 name: "zipfuse.defaults", 7 crate_name: "zipfuse", 8 defaults: ["avf_build_flags_rust"], 9 srcs: ["src/main.rs"], 10 edition: "2021", 11 prefer_rlib: true, 12 rustlibs: [ 13 "libanyhow", 14 "libclap", 15 "libfuse_rust", 16 "liblibc", 17 "liblog_rust", 18 "librustutils", 19 "libscopeguard", 20 "libzip", 21 ], 22 // libfuse_rust, etc don't support 32-bit targets 23 multilib: { 24 lib32: { 25 enabled: false, 26 }, 27 }, 28} 29 30rust_binary { 31 name: "zipfuse", 32 defaults: ["zipfuse.defaults"], 33 bootstrap: true, 34} 35 36rust_test { 37 name: "ZipFuseTest", 38 stem: "zipfuse.test", 39 defaults: ["zipfuse.defaults"], 40 test_suites: ["general-tests"], 41 compile_multilib: "first", 42 rustlibs: [ 43 "libnix", 44 "libtempfile", 45 ], 46 data: [":zipfuse"], 47} 48