blob: 93d2ac71672916d5e24f27133cda92a056e3c873 [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.
11 w.write_generated_by("rust-protobuf", "2.14.0");
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.