blob: a75eb35a2a03ddddcde96bd57301b1cdc5c8e334 [file] [log] [blame]
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -07001Since 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.
Haibo Huang72fec012020-07-10 20:24:04 -070011 w.write_generated_by("rust-protobuf", "2.16.2");
Chih-Hung Hsieh92ff6052020-06-10 20:18:39 -070012
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.