-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Description
Problem
Right now cargo allows quite some configuration already when it comes to setting up a build, however, to support android (and iOS, and consoles) properly, it would need to have extensibility for two additional steps.
- Be able to package all build artifacts together into a single package (for example - an apk), a program would need to be able to be invoked with all the outputs of Tracking issues for the
-Zmultitargetfeature #8176 - Be able to sign the final output of that step, this could most likely be done in the same tool, so I'm just mentioning it here
Right now cargo-apk needs to perform these steps itself, however I would hope to eventually be able to get rid of cargo-apk as an intermediate tool and instead to be able to use vanilla cargo to be able to build and run apk's.
Proposed Solution
I propose an additional stage that runs after the linker which simply invokes a binary with the filename(s) for the previous (multi)target build. This tool should be able to generate a package, that can then be picked up by a (custom) runner.
Notes
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`