commit | 6c8d52f6ebdd68a856f241c2effcb878d6b9198c | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Mon Mar 30 18:28:52 2020 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Tue Mar 31 10:08:06 2020 -0700 |
tree | 2652576ac3dc6b315674a9ff60f026b5f36a5e31 | |
parent | e95677343a7d375e5efc63d15fd4bd67a777e07a [diff] |
Pass --no-default-features to cargo build * When --features is specified, pass --no-default-features to cargo. * When a dependent Rust package is imported to AOSP, if not all "default" features are needed, run cargo2android.py with empty or a list of specific features. Test: cargo2android.py --run # use default features Test: cargo2android.py --run --features='' # no default Test: cargo2android.py --run --features='default,std' Change-Id: I854f1ecb7d7466490ff34e229ec14a07c1273c6d