mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-16 23:55:42 +02:00
388 B
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!