| |
| // TODO: Add a module for the tests. The tests require libfiletime, which is not in android. |
| |
| rust_library_host { |
| name: "libn2", |
| crate_name: "n2", |
| srcs: ["src/lib.rs"], |
| edition: "2018", |
| cargo_env_compat: true, |
| // n2 prints the value of CARGO_PKG_VERSION when using the --version argument, we need to set |
| // this property to define the environment variable, but don't actually care about the value. |
| cargo_pkg_version: "android", |
| rustlibs: [ |
| "libanyhow", |
| "libargh", |
| "liblibc", |
| "librustc_hash", |
| ], |
| } |
| |
| rust_binary_host { |
| name: "n2", |
| crate_name: "n2", |
| srcs: ["src/main.rs"], |
| edition: "2018", |
| rustlibs: [ |
| "libn2", |
| "libanyhow", |
| "libargh", |
| "liblibc", |
| "librustc_hash", |
| ], |
| } |