1Since we do not run build.rs during an Android build, 2we need to set up the version number in src/lib.rs 3until we have a smarter way to patch it based on new 4version number in Cargo.toml. 5 6To update this package, please make sure that the following code 7in src/lib.rs is up to data. 8 9 // Hack: hard code version number here because Android.bp 10 // rust modules cannot pass it though env variable yet. 11 w.write_generated_by("rust-protobuf", "2.16.2"); 12 13If there are non-trivial changes in build.rs or src/lib.rs, 14please rerun cargo2android.py and verify the differences in 15Android.bp and src/lib.rs. 16