1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-05-16 23:55:42 +02:00
2022-12-21 16:38:28 +01:00

388 B

Rust Binaries

Let us start with a simple application. At the root of an AOSP checkout, create the following files:

hello_rust/Android.bp:

{{#include binary/Android.bp}}

hello_rust/src/main.rs:

{{#include binary/src/main.rs:main}}

You can now build, push, and run the binary:

{{#include ../build_all.sh:hello_rust}}
Hello from Rust!