Skip to content

Allow for a way to package and sign executables #10430

@Jasper-Bekkers

Description

@Jasper-Bekkers

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 -Zmultitarget feature #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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions