diff options
author | 2023-11-22 20:37:27 +0000 | |
---|---|---|
committer | 2023-11-22 20:37:27 +0000 | |
commit | b103659c0b9e883401d482168731d194b2c6657c (patch) | |
tree | 9561013968ca2af25b30e9bf8dd1e4de5416912d /rust/rust.go | |
parent | f7474880a152b8423231b70d597c8a949ae2ab01 (diff) | |
parent | db72f7ed803df370951f7a03bd6f6fcad1b357e2 (diff) |
Merge changes I0caddbf6,Iee20b060,I6c92580b,I45028945,Ia7dd5220, ... into main
* changes:
rust: Resolve crate roots outside rust-project
rust: Cache crateRootPath to avoid ctx
rust: internalize srcPathFromModuleSrcs
rust: move crateRootPath to compiler
rust: Privatize Cargo* methods on compiler
rust: Move compiler interface to compiler.go
Diffstat (limited to 'rust/rust.go')
-rw-r--r-- | rust/rust.go | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/rust/rust.go b/rust/rust.go index 15144acad..d4d33c71d 100644 --- a/rust/rust.go +++ b/rust/rust.go @@ -487,44 +487,6 @@ type RustLibrary struct { CrateName string } -type compiler interface { - initialize(ctx ModuleContext) - compilerFlags(ctx ModuleContext, flags Flags) Flags - cfgFlags(ctx ModuleContext, flags Flags) Flags - featureFlags(ctx ModuleContext, flags Flags) Flags - compilerProps() []interface{} - compile(ctx ModuleContext, flags Flags, deps PathDeps) buildOutput - compilerDeps(ctx DepsContext, deps Deps) Deps - crateName() string - rustdoc(ctx ModuleContext, flags Flags, deps PathDeps) android.OptionalPath - - // Output directory in which source-generated code from dependencies is - // 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 - everInstallable() bool - - nativeCoverage() bool - - Disabled() bool - SetDisabled() - - stdLinkage(ctx *depsContext) RustLinkage - noStdlibs() bool - - unstrippedOutputFilePath() android.Path - strippedOutputFilePath() android.OptionalPath -} - type exportedFlagsProducer interface { exportLinkDirs(...string) exportLinkObjects(...string) |