| rust_library { |
| name: "libuprobestats_rs", |
| crate_name: "uprobestats_rs", |
| defaults: ["uprobestats_rust_defaults"], |
| srcs: ["lib.rs"], |
| rustlibs: [ |
| "libdynamic_instrumentation_manager", |
| "liblog_rust", |
| "liblogger", |
| "libprotobuf", |
| "libuprobestats_bpf", |
| "libuprobestats_bpf_bindgen", |
| "libuprobestats_proto", |
| "librustutils", |
| "libserde_json", |
| "libstatslog_uprobestats_rs", |
| "libstatssocket_rs", |
| "libuprobestats_mainline_flags_rust", |
| "libzerocopy", |
| ], |
| shared_libs: ["libuprobestats_bpf_cc"], |
| } |
| |
| rust_binary { |
| name: "uprobestats_rs", |
| stem: "uprobestats", |
| enabled: select(release_flag("RELEASE_UPROBESTATS_RUST"), { |
| true: true, |
| false: false, |
| }), |
| srcs: ["main.rs"], |
| defaults: ["uprobestats_rust_defaults"], |
| prefer_rlib: true, |
| rustlibs: [ |
| "libuprobestats_rs", |
| "libuprobestats_proto", |
| "libprotobuf", |
| "libbinder_rs", |
| "liblog_rust", |
| "liblogger", |
| "libuprobestats_bpf", |
| "libuprobestats_bpf_bindgen", |
| "librustutils", |
| "libuprobestats_mainline_flags_rust", |
| ], |
| } |
| |
| rust_test { |
| name: "uprobestats_rs_test", |
| srcs: ["lib.rs"], |
| defaults: ["uprobestats_rust_defaults"], |
| rustlibs: [ |
| "libuprobestats_rs", |
| "libdynamic_instrumentation_manager", |
| "liblog_rust", |
| "liblogger", |
| "libprotobuf", |
| "libstatslog_uprobestats_rs", |
| "libstatssocket_rs", |
| "libuprobestats_bpf", |
| "libuprobestats_bpf_bindgen", |
| "libuprobestats_mainline_flags_rust", |
| "libuprobestats_proto", |
| "librustutils", |
| "libserde_json", |
| "libzerocopy", |
| ], |
| } |