blob: a75eb35a2a03ddddcde96bd57301b1cdc5c8e334 [file] [log] [blame]
Since we do not run build.rs during an Android build,
we need to set up the version number in src/lib.rs
until we have a smarter way to patch it based on new
version number in Cargo.toml.
To update this package, please make sure that the following code
in src/lib.rs is up to data.
// Hack: hard code version number here because Android.bp
// rust modules cannot pass it though env variable yet.
w.write_generated_by("rust-protobuf", "2.16.2");
If there are non-trivial changes in build.rs or src/lib.rs,
please rerun cargo2android.py and verify the differences in
Android.bp and src/lib.rs.