diff options
| author | 2021-08-12 17:05:39 +0000 | |
|---|---|---|
| committer | 2021-08-12 17:05:39 +0000 | |
| commit | dd7107c84b12a367329334e3e8514d9da75174e2 (patch) | |
| tree | f6064de1251e336daca0712090c8d9ddc1ded77b /rust/rust.go | |
| parent | fc30cfc7ae35ac92d2e7b423b23c1bba8fa3f005 (diff) | |
| parent | a9a1fc07473ef512d3ae84f4c368d5e3752649e6 (diff) | |
Merge "rust: Add support to emit certain Cargo env vars."
Diffstat (limited to 'rust/rust.go')
| -rw-r--r-- | rust/rust.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/rust.go b/rust/rust.go index e18f8cc1b..4ceeef1d1 100644 --- a/rust/rust.go +++ b/rust/rust.go @@ -434,6 +434,12 @@ type compiler interface { // copied. This is equivalent to Cargo's OUT_DIR variable. CargoOutDir() android.OptionalPath + // CargoPkgVersion returns the value of the Cargo_pkg_version property. + CargoPkgVersion() string + + // CargoEnvCompat returns whether Cargo environment variables should be used. + CargoEnvCompat() bool + inData() bool install(ctx ModuleContext) relativeInstallPath() string |