Chih-Hung Hsieh | 92ff605 | 2020-06-10 20:18:39 -0700 | [diff] [blame^] | 1 | Since we do not run build.rs during an Android build, |
| 2 | we need to set up the version number in src/lib.rs |
| 3 | until we have a smarter way to patch it based on new |
| 4 | version number in Cargo.toml. |
| 5 | |
| 6 | To update this package, please make sure that the following code |
| 7 | in 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.14.0"); |
| 12 | |
| 13 | If there are non-trivial changes in build.rs or src/lib.rs, |
| 14 | please rerun cargo2android.py and verify the differences in |
| 15 | Android.bp and src/lib.rs. |