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